271
Python Overtakes JavaScript as Most Popular Language on GitHub
(www.omgubuntu.co.uk)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
The + operator is for numbers or strings, not arrays. Your example is just using it weirdly in a way that most people wouldn't do.
I'm not defending Javascript's obviously terrible behaviour there. Just pointing out that Python has obviously terrible behaviours too. In both cases the solution is "don't do that, and use static analysis to make sure you don't do it accidentally".
Yeah I think you can generalise that to "have only ever used one language". I would say Python and Javascript are pretty close on the "noob level". By which I mean if you meet someone who has only ever written C++, Java, or Rust or whatever they're going to be a class above someone who has only ever written Python or Javascript.