Hacker News new | ask | show | jobs
by hpen 1779 days ago
And yet code in Swift is much cleaner than anything in Javascript. I say that having mostly written Swift & Javascript at my jobs and on the side.
1 comments

JS is a fairly low bar to compare other programming languages to.
The point was to compare a "simpler" language
And used by many, so useful to compare to?
It’s only used by many because it’s the only scripting language on the web browser, and not due to anything intrinsic to the language.

So it’s popularity tells us nothing about the language, and more about the fact that it’s the only language on the most popular platform.

So I’m not sure comparing any language to JS is useful to learn about the language.

It’s popularity tells us many people will be able to relate to that comparison.
It's less useful when you realize that almost every other widely used programming language is better than JavaScript.