快速学习编程语言
We as developers always need to stay up to date with new frameworks, tools, and new languages.
作为开发人员,我们始终需要与新框架,工具和新语言保持同步。
So having a strategy that you can use to get to know a new language, framework or tool is beneficial in the long run.
因此,从长远来看,拥有一种可以用来了解新的语言,框架或工具的策略是有益的。
Since I started with programming I have been writing scripts. All kinds of scripts, from simple utils scripts to web scrapers and command-line tools.
自从开始编程以来,我一直在编写脚本。 各种各样的脚本,从简单的utils脚本到网络抓取工具和命令行工具。
Because of this I use writing scripts as a strategy to learn a new programming language. Over the years I added APIs and web-apps to my learning strategy.
因此,我使用编写脚本作为学习新编程语言的策略。 多年来,我在学习策略中添加了API和网络应用。
For example, when I wanted to learn Elixir I wrote a script. When I wanted to learn C# I wrote an API and web app.
例如,当我想学习Elixir时,我写了一个脚本。 当我想学习C#时,我写了一个API和网络应用程序。
您如何找到自己的策略? (How can you find your strategy?)
Find a topic or idea that you would like to build or work on
查找您要建立或从事的主题或想法
I can spend hours on a CLI program/tool to make my code look perfect and also optimize the interaction as a user of the program or tool.
我可以花几个小时在CLI程序/工具上,以使我的代码看起来更完美,并且还可以作为程序或工具的用户来优化交互。
You need to find something that you love to spend hours tinkering on. This way you can easily motivate yourself to get started with it and keep up the momentum.
您需要找到一些自己喜欢的东西,以便花费大量时间进行修补。 这样,您可以轻松激励自己开始使用它并保持发展势头。
2. Keep the final result in mind
2.牢记最终结果
You could get stuck or blocked when you try and create something without having a final result in mind.
当您尝试创建某些东西时可能会陷入困境或受阻,而不考虑最终结果。
For instance, if you want to learn a new programming language, the final result could be that you want your knowledge of the new programming language to be as good as (or even better than) the programming Languages you already know.
例如,如果您想学习一种新的编程语言,最终结果可能是您希望对新的编程语言的了解与您已经知道的编程语言一样好(甚至更好)。
For me, when I wanted to learn C#, I decided to write a REST API as this is one of my go-to strategies. Writing a REST API is very straight forward and the tutorials for that are easy to find.
对我来说,当我想学习C#时,我决定编写REST API,因为这是我的首选策略之一。 编写REST API非常简单明了,有关该教程的内容很容易找到。
3. Think about the future
3.考虑未来
Ask yourself the following question:
问问自己以下问题:
Why do I want to learn X?
为什么我要学习X?
Will this allow you to progress in your current job or set you up to - move into a new job?- move into that much wanted new job?- move into a different branch/area of work?
这是否会让您继续当前的工作或使您适应-转到新工作?-转到急需的新工作?-转到其他工作分支/领域?
Will it just be for occasional use as a hobby or are you going to be using it on a daily basis?
它是只是偶尔用作一种爱好还是您将每天使用它?
Do you want to learn “Insert new JavaScript Framework here”? Is it going to solve a problem you face or will it make your development experience easier?
您是否要学习“在此处插入新JavaScript框架”? 是要解决您面临的问题,还是会让您的开发经验变得更轻松?
I ask myself these questions every time a new Langauge or Framework pops up. This is also how I opted to learn ReactJS rather than VueJS — firstly, I like ReactJS, and secondly, I use reactJS on a daily basis at work.
每当出现新的Langauge或Framework时,我都会问自己这些问题。 这也是我选择学习ReactJS而不是VueJS的方式-首先,我喜欢ReactJS,其次,我每天在工作中使用reactJS。
结论 (Conclusion)
Find a programming topic you like, define the final result, and GO!Keep the final result in mind while developing and never give up, you may rest, but not give up!
找到您喜欢的编程主题,定义最终结果,然后开始!在开发过程中牢记最终结果,永不放弃,您可以休息,但不放弃!
翻译自: https://medium.com/@koenverburg/how-to-learn-a-new-programming-language-quickly-fa7771c0d3eb
快速学习编程语言