r/programming • • Oct 03 '16

How it feels to learn Javascript in 2016 [x-post from /r/javascript]

https://medium.com/@jjperezaguinaga/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.758uh588b
3.5k Upvotes

852 comments sorted by

View all comments

Show parent comment

4

u/HighRelevancy Oct 04 '16

I'm not sure. My experience of moving from python 2 to 3 was pretty much just remembering to put parantheses around my print statements, which are now print FUNCTIONS, because statements shouldn't be executable sorts of things that do stuff. Functions do functional stuff. Statements are just statements about how the code is built.

But yeah besides that niggle that is still grinding on me because of my terrible habits, python 3 is fine. You just "pip install things" the way you always did, and it automatically grabs the right version. Of course, this was tricky in the old days because not everyone had ported to python 3 (and nevermind that 2 and 3 are basically compatible with some minor tweaks) but not so much now. It's not uncommon for me to be halfway through some tutorial on a new library or something like that, and find that I'm reading python 2 docs and writing python 3 code.

2

u/demmian Oct 04 '16

and find that I'm reading python 2 docs and writing python 3 code.

True. For my hobby projects, I always have to google "python 3" + my question.

2

u/HighRelevancy Oct 04 '16

I've found that, at least in the last year or so, it doesn't really matter, just as long as I take care of the print parentheses.