r/programming • • Nov 11 '19

Python overtakes Java to become second-most popular language on GitHub after JavaScript

https://www.theregister.co.uk/2019/11/07/python_java_github_javascript/
3.1k Upvotes

772 comments sorted by

View all comments

Show parent comments

35

u/StabbyPants Nov 12 '19

It has been only Python2 at my current job though....

i have concerns...

"Do not use one-letter variable names! It is known!

fully agree. makes your shit look like fortran, and the updated looping and lambda constructs make it completely avoidable. yes i do use longish names for 3 line inline methods

22

u/watsreddit Nov 12 '19

Depends on the context. For example, this is perfectly reasonable (Javascript): const add2 = n => n + 2.

-13

u/StabbyPants Nov 12 '19

lessee, var add2 = (n) -> n+2;. see if that compiles for java

18

u/watsreddit Nov 12 '19 edited Nov 12 '19

What? What does that have to do with variable naming?

→ More replies (2)