学编程的学习技巧
Programming is a skill that more and more people have been learning over the past few years. In addition to the hundreds of thousands of Americans who work as computer programmers in the USA, there are thousands and thousands more who program for fun or in their spare time.
编程是过去几年中越来越多的人学习的一项技能。 除了 成千上万的美国人在美国 从事计算机编程工作外,还有成千上万的人在业余时间或业余时间进行编程。
However, learning this skill can sometimes feel like an uphill battle with a lot to learn and think about. In an effort to help you out, we have decided to craft an article all about providing you with some tips to help you learn programming faster.
但是,学习此技能有时会像一场艰苦的战斗,需要学习和思考很多东西。 为了帮助您,我们决定撰写一篇有关为您提供一些技巧的文章,以帮助您更快地学习编程。
考虑您将学习哪种语言 (Consider Which Language You Will Learn)
Before even learning to program, you need to choose which programming language you will learn. Now, there is no rule about only having to learn a single language, but when you are just starting, there are some that are easier to learn and might make a better option to start with, such as Python and Java.
在学习编程之前,您需要选择要学习的编程语言。 现在,没有关于只学习一种语言的规则,但是当您刚开始学习时,有一些更容易学习并且可能是更好的选择,例如Python和Java。
If you start with a very complex and tough-to-learn language, it may deter you from continuing and getting somewhere with programming. Of course, the language you will learn will also depend on what you want to use the code for, but you can’t discount how important it is to start with something you can handle.
如果您从一门非常复杂且难以学习的语言入手,那么它可能会阻止您继续进行编程。 当然,您将学习的语言也将取决于您要使用该代码的目的,但是您不能低估从开始可以处理的事情起的重要性。
实践,实践和更多实践 (Practice, Practice and More Practice)
You can read all the books you want and watch all the videos you can, but in order to get better at programming, you have to actually get down and practice. The quicker you actually start playing around with the code and practicing, the better. It might be frustrating and hard right off the bat, but the more you practice the better you will get.
您可以阅读所需的所有书籍,并可以观看所有的视频,但是要想更好地编程,就必须认真练习。 实际上,您越快开始玩代码并进行练习,就越好。 这可能令人沮丧并且一发不可收拾,但是练习的次数越多,您就会越好。
Also, practice is an ongoing thing that you should continue doing even after you have learned to program. If you go a long time without programming, you could lose the skills, which is never a good thing. Because of this, you should spend some time keeping fresh and practicing frequently.
同样,练习是一项持续不断的事情,即使您已经学会编程,也应该继续这样做。 如果长时间不进行编程,可能会失去技能,这永远不是一件好事。 因此,您应该花一些时间保持新鲜感并经常练习。
首先学习基础知识 (Learn the Fundamentals First)
While you might want to dive into the advanced concepts and material right away, you need to dip your toes in before diving in the deep end. No matter how simple or easy the fundamentals might seem, it is important to learn them first. If not, you might find yourself scratching your head once you do reach those more advanced steps. The better you understand the basics, the easier the more advanced concepts will be to grasp.
尽管您可能希望立即深入研究高级概念和材料,但在深入进行深入研究之前,您需要先浸入脚趾。 无论基本面看起来多么简单或容易,重要的是要首先学习它们。 如果不是这样,一旦您完成这些更高级的步骤,您可能会发现自己抓挠了头。 您越了解基础知识,就越容易掌握更高级的概念。
玩游戏和学习教程 (Play Games and Work Through Tutorials)
When you are just sitting down and coding for hours on end, it can get a bit monotonous. It may not keep you engaged, and some people might have troubles keeping it up. If that sounds like you, then you might want to either play some games or work through tutorials.
当您坐下来编码数小时时,它可能会变得单调。 它可能不会使您参与其中,并且某些人可能会遇到麻烦。 如果听起来像您,那么您可能想要玩一些游戏或通读教程。
There are several simple and basic coding-related games out there that are not only fun but can also help you learn. Also, there are thousands of tutorials for every different programming language under the sun, which can all help you learn without it being too dull.
那里有几种简单且与编码有关的基本游戏,它们不仅很有趣,而且可以帮助您学习。 另外,在阳光下,每种编程语言都有成千上万的教程,可以帮助您学习而又不会太枯燥。
确定登录 (Be Sure to Log )
While you might not think about it, logging is one of the most important tools any programmer or developer will have. Logging is all about getting more data about what your code is doing, which can help with debugging and programming itself. It is also helpful in managing complex programming.
尽管您可能没有考虑过,日志记录是任何程序员或开发人员都会拥有的最重要的工具之一。 日志记录就是获取有关代码执行情况的更多数据,这可以帮助调试和编程本身。 它还有助于管理复杂的程序。
Of course, if you are going to log, you will need some log management to keep things well managed. Check out this link to learn more about log management: Configuring centralized logging from Python apps · Papertrail log management
当然,如果您要记录日志,则需要进行一些日志管理以使事情得到很好的管理。 查看此链接以了解有关日志管理的更多信息: 从Python应用程序配置集中式日志·Papertrail日志管理
不要害怕寻求帮助 (Don’t Be Scared to Seek Out Help)
While most coding work is done alone, that doesn’t mean you need to learn alone. The internet is full of literally thousands of different resources that can help you learn about coding. Whether this is posting a question on a subreddit, participating in a forum discussion or even personally reaching out to a programmer you know.
尽管大多数编码工作都是单独完成的,但这并不意味着您需要独自学习。 互联网上充斥着数以千计的不同资源,可以帮助您学习编码。 这是在subreddit上发布问题,参与论坛讨论,还是亲自联系您认识的程序员。
Some people hate asking for help, but the quicker you get over that fear, the quicker you will be able to learn to code and program effectively. Many people are eager to help out newcomers, so you should easily be able to find help and answers to your questions.
有些人讨厌寻求帮助,但是您越早克服这种恐惧,您就能越快地学会有效地编码和编程。 许多人都渴望帮助新来的人,因此您应该可以轻松找到问题的帮助和答案。
休息一下,不要让自己筋疲力尽 (Take Some Breaks and Don’t Burn Yourself Out)
When working on code and trying to learn how to program better, you can often be sitting down at a desk or computer for hours and hours at a time. As you could imagine, this can be terrible for your body and it is recommended that you get up and take some breaks.
在编写代码并尝试学习如何更好地编程时,您通常经常一次坐在办公桌或计算机上几个小时。 如您所料,这 对您的身体可能会很糟糕, 建议您起身休息一下。
In addition to that, it is easy to get discouraged or “stuck” when trying to learn or fix a problem. Sometimes, all it takes is a few minutes of clarity and stretching to get you back on track. This could save you a lot of time and energy in the long run, as well.
除此之外,在尝试学习或解决问题时很容易灰心或“卡住”。 有时,只需花费几分钟的时间就可以使您回到正轨,并保持清晰。 从长远来看,这也可以节省大量时间和精力。
In conclusion, we hope that this article has been able to help you learn a few more tips and tricks to increase how quickly you are able to learn to program. Of course, these tips aren’t guaranteed to turn you into the fastest coder ever, but they definitely should help.
总之,我们希望本文能够帮助您学习更多的提示和技巧,以增加学习编程的速度。 当然,不能保证这些技巧可以使您成为有史以来最快的编码器,但是它们绝对可以提供帮助。
翻译自: https://www.thecrazyprogrammer.com/2018/10/7-critical-tips-to-learn-programming-faster.html
学编程的学习技巧