Ask HN: Learn another programming language
Hi HN. I want to know how do you learn more programming languages. When I want to learn a new one I only find really basic pages, with stuff like int, strings, etc.. And if I try to learn with a personal project sometimes I have a bad time with code I can't understand. What I mean is that I know language A, but I want to learn B too, so I know how to program, but not in that language. Thanks!
2 comments
[ 3.4 ms ] story [ 14.2 ms ] threadSometimes I end up rewriting/refactoring from one language into another. This is great approach to learning a new language. However, consider that languages has different idioms, make sure you try to learn the best approaches in your selected language and refactor for those idioms. For example, it is generally a bad idea to write python like you would write C, etc.
If you do not have a project that would be interesting to refactor, take any other idea you have laying around do write that in your selected new language.
In the end, it is better to learn by doing.