开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
今日推荐开源项目:《新人欢迎会 railsgirls.github.io》
今日推荐英文原文:《Don’t Buy Into the Ludicrous Idea That Programming is Hard》

今日推荐开源项目:《新人欢迎会 railsgirls.github.io》传送门:GitHub链接
推荐理由:组织一个技术交流会来聚集那些对技术感兴趣的人来交流——并不仅限于女性或是什么人,在技术面前大家应该都是平等的。这个项目介绍了 Rail 相关的学习教程,以及组织一场技术交流会的方法。与兴趣相投的人一起交流技术可以交换灵感,是稳赚不赔的买卖,而组织一场交流会正好可以提供这个平台,不管是新人还是老手都能够从中获利,何乐而不为呢。
今日推荐英文原文:《Don’t Buy Into the Ludicrous Idea That Programming is Hard》作者:David J. Meyer
原文链接:https://medium.com/better-programming/dont-buy-into-the-lunatic-idea-that-programming-is-hard-eef404de6164
推荐理由:事实上,编程语言没有想象中的难学

Don’t Buy Into the Ludicrous Idea That Programming is Hard

It is easier to learn a programming language than you think!

Learning a programming language can be a daunting task. I’m here to tell you it’s not as bad as you might think. Growing up I always thought it was silly that Java, Python, and C were considered “languages.” But now that I’m older, I realize there are quite a few similarities between learning a programming language and a real language. If you struggle with learning languages, then this might sound even more daunting now. However, there is still hope for you because learning a new programming language is 100 times easier than learning a new spoken language!

If you don’t believe me, take a look at my credentials. First, I have learned around seven programming languages over the past five years. My experience with spoken language is not impressive at all. Over my entire 23 years of life, I have learned English, beginner level Spanish, and at one time I knew how to say “Hi” in Italian. Learning a new programming language may be similar to learning a spoken language, but it is shocking how much easier it is to do.

Photo by Ben White on Unsplash

The Similarities Between Programming and Speaking

Whenever I meet people that are tri-lingual they always tell me that it is easier to learn a new language after learning a secondary language. They tell me that to learn a new language you first need to learn how to learn. This is the exact same in programming.

Every programming language consists of two parts: grammar and syntax. Grammar is the most important part here because it crosses over into multiple languages. If you learn Spanish, it is easier to pick up any of the other romantic languages because they all share similar grammar. All you have to learn are the specific vocab words to match a certain grammar rule. This is the exact same in code.

Photo by Jessica To'oto'o on Unsplash

If you learn how to program in Python, then you will need to learn some basic programming grammar principles. You will learn things like functions, variables, branching, classes, and sync/async. Once you learn those, it is super easy to translate those same concepts in Java or C. All you need to do is look up the specific syntax. I still do this today!

I have programmed for years in Java, C, and Python, but there are still times I forget the specific syntax for functions in Python. I know what a function is and how it works, but I might forget the keyword to use.

So why is learning a programming language this much easier?

Photo by Kasya Shahovskaya on Unsplash

There are 3 main reasons why programming languages are easier to learn than spoken language.
  • When you forget the syntax, you can always look it up on the spot. If you are programming, then you are on a computer. If you are on a computer you most likely have internet access. Therefore, you can always look up the syntax.
  • There are fewer grammar and syntax rules than in a spoken language. Some programming languages have maybe 50 keywords you need to know. No one would suggest fluency of a language after learning a mere 50 vocabulary words!
  • Programming languages are NOT spoken. For me, the hardest part of learning Spanish is speaking it. I can read and write, but listening and communicating is a different beast. Luckily, with coding, we don’t deal with this issue. Code is always written.
If you are scared to learn a programming language, don’t be. Coding is actually super easy to learn and there are so many resources out there to do so. You do NOT need a college degree to learn this stuff. From my own personal experience, college only helped me with motivation.
If you have any self-motivation at all, then you can easily learn how to code.
If you want to learn how to program but don’t know where to start, don’t worry about it. I was the exact same way before college and because of my fears, I didn’t learn anything.

The joy of programming is that once you learn the basics from one language, then you can easily pick up other languages!

Photo by Peter Conlan on Unsplash

There are easier languages that help learn those skills quicker, though. Python only has 33 keywords versus Java’s 50. Python is pretty simple to pick up and start making things happen instantly. It is also one of the most versatile languages you can use for almost anything. BUT…you can totally learn Java for your first language and learn those same skills too.

Programming is really not as daunting or difficult as it seems. It is a ton of fun too! Especially if you like solving puzzles. I honestly don’t know why this industry pays us so much!
下载开源日报APP:https://openingsource.org/2579/
加入我们:https://openingsource.org/about/join/
关注我们:https://openingsource.org/about/love/