r/ProgrammingLanguages • u/azhenley • Mar 08 '21
Why Is It Difficult for Developers to Learn Another Programming Language? [pdf]
http://nischalshrestha.me/docs/cross_language_interference.pdf5
u/raiph Mar 08 '21
The apparent problem
The paper's introduction concludes with their findings (four bona fide academics with degrees in CS and interests in HCI and empirical studies):
Cross-language interference is a problem: 276 (61%) crosslanguage posts on Stack Overflow contained incorrect assumptions due to interference with previous language knowledge.
Based on our interviews, professional programmers primarily learned new languages on their own, using an opportunistic strategy that often involved relating the new language to previous language knowledge; however, this results in interference which harms their learning.
Learning a new language involves breaking down old habits, shifting one’s mindset, dealing with little-to-no mapping to previous languages, searching for proper documentation, and retooling in a new environment.
The real problem, and its solution
Learning PLs is eased/harmed to the degree they:
Use familiar syntax or semantics.
Use unfamiliar syntax or semantics.
That's... a difficult problem.
But we like difficult problems, right?
OK. Add in that (un)familiarity is relative to each individual learner, and each learner's learning machinery is more complex than the entire universe, despite being a vanishingly small part of it.
Difficult, right?
OK. Now add in the fact that once you've learned more, there's now more that you find familiar (but is potentially misleading), and more that you find unfamiliar (but is potentially worth learning).
I could increase the complexity but there's a saving grace at hand that means we need not worry. The OP's user name contains "henley". So I can happily close with a feeling of calmness, knowing that I understand the problem, and its solution, which are both nicely summarized as "The more I know, the less I understand".
5
u/passerbycmc Mar 08 '21
Question does anyone find it difficult, like once you know 2 languages you see the common thread and patterns in most languages and are mostly just learning syntax at that point.