4 ms·
One of the harder things for beginners to grasp when learning a second or third programming language is that language is not just syntax. You see it all the tim
by globular-toast 5y ago
One of the harder things for beginners to grasp when learning a second or third programming language is that language is not just syntax. You see it all the time in Python in particular: people writing code like it's C or Java. It's no different to grabbing a French dictionary and transliterating your English sentence to French word by word. It just doesn't work and, in some cases, is completely wrong. Grokking a language means so much more than knowing the key words for doing all the stuff you used to do in your old language.
- lwouis 5y agoFollowing your analogy, you will notice that grammar is similar in many European languages. You can rely on subject-verb-object for instance. Most popular languages these days have aligned patterns for common collections operations. Python stands out IMO. I wrote a bit more details in a parent comment (https://news.ycombinator.com/item?id=27782030 https://news.ycombinator.com/item?id=27782030)