News for hackers. Stuff that matters.
Re:Ask HN: How did you learn a new programming language as a... by schwartzworld on Monday April 18, 2022 @10:38AM (#31071249)
If you are experienced in JavaScript, switching to Python is not that hard to do. The languages' similarities outweigh their differences. I have been accused of writing Python with a heavy JavaScript accent.

The harder part of that transition is environment issues. Switching between Node environments is a solved problem. Include an .nvmrc in your project and you're done. It's very much not a solved problem in python-land.

>Do you know an interactive website that explains different language features or design patterns using JS code fragments and their Python / Go equivalents?

https://rosettacode.org/wiki/Rosetta_Code

Re:Ask HN: How did you learn a new programming language as a... by iamandras on Monday April 18, 2022 @12:19PM (#31072759)
Thanks for the link suggestion. Yeah, I've already checked several things in Python and it seems similar. I'm a bit worried about the differences in implementing different design patterns for example. So not really the basics like variables, loops, modules etc.
Re:Ask HN: How did you learn a new programming language as a... by AbundantSalmon on Monday April 18, 2022 @01:49PM (#31074066)
Not sure what your requirements are but `virtualenv` would be the standard for python environments outside of `venv` which is in the standard library. I would have considered it solved.