I hope I'm misunderstanding, but this style of example "learnt from Python" always puzzles me. Specifically, why do devs expect things to work the way they do in some other language, rather than learning the constructs in the language theyre presently working in?
I do suppose that the language should be failsafe. Even TypeScript doesn't warn., nor throws an error. Even Python is safer. TypeScript is partly safer, and some part more dangerous than Python, due to JavaScript-based.
RTFM, partly, is OK. But reading the whole EMCA specification is crazy.
Also, I cannot expect tutorials to teach everything.
I also expect the language to be "guessable" rather than being told to do so. Otherwise, throw an error early.
Productivity doesn't wait for you to finish learning...
But knowing additional paradigms might be helpful. Knowledge should add-on rather than replace.
Still, end-in-end, I love JavaScript (not even saying TS), more than Python.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I hope I'm misunderstanding, but this style of example "learnt from Python" always puzzles me. Specifically, why do devs expect things to work the way they do in some other language, rather than learning the constructs in the language theyre presently working in?
I do suppose that the language should be failsafe. Even TypeScript doesn't warn., nor throws an error. Even Python is safer. TypeScript is partly safer, and some part more dangerous than Python, due to JavaScript-based.
RTFM, partly, is OK. But reading the whole EMCA specification is crazy.
Also, I cannot expect tutorials to teach everything.
I also expect the language to be "guessable" rather than being told to do so. Otherwise, throw an error early.
Productivity doesn't wait for you to finish learning...
But knowing additional paradigms might be helpful. Knowledge should add-on rather than replace.
Still, end-in-end, I love JavaScript (not even saying TS), more than Python.