4 ms·
JS gives you wrong answers silently when thigns go sideways since for the original browser use case, they didn't want scripts to ever stop execution. It's the o
by fulafel 2mo ago
JS gives you wrong answers silently when thigns go sideways since for the original browser use case, they didn't want scripts to ever stop execution. It's the opposite of Python in this respect.
- frollogaston 2mo agoYes Py is stricter, but you pay for that with more verbosity, which in turn makes it more error-prone. And the kind of strictness it adds barely helps.
- fulafel 2mo agoI feel Python is more concise. Looking at a couple of Rosetta Code examples, they are shorter for Python as well. Also the post referenced by the article lists Python taking noticeably less tokens than Javascript.
- frollogaston 2mo agoIt can be if the task lends itself well to list comprehension. Data analysis / script types of things will likely be in Py rather than JS either way. But the stuff like backend code that overlaps, JS is less verbose thanks to how it deals with lambdas and objects.