4 ms·
> JavaScript is a toy programming language. Bullshit. Yes, javascript has evolved a ton over the decades, and it has a lot of cruft that it pulls with it. So w
by hn_throwaway_99 7y ago
> JavaScript is a toy programming language.
Bullshit. Yes, javascript has evolved a ton over the decades, and it has a lot of cruft that it pulls with it. So what? So does virtually every other successful language.
I was a Java developer for over 15 years before I switched to mainly developing in Node/Typescript, and I feel I am much more productive in this ecosystem than I was in Java.
- The_Colonel 7y agoI'm kind of similar although I stll work on Java/Kotlin enterprise apps professionally and do JavaScript for hobby projects. And I must actually say that it's a joy to work in modern JavaScript. It has some very nice features (async/await, destructuring, null coalescing, functional features) which make it expressive and succint. It has decent performance as well, nice (lack of) tooling (no need to compile anything!) I probably would not do a huge project with it though (TS would be better fit there).
- rhinoceraptor 7y agoAnd even if it is a toy language, it doesn't matter. If you're a web developer, you need to know Javascript.
- pdimitar 7y agoBut if you can afford it -- and many projects actually can -- you can work on top of it through TypeScript or Elm, and the experience is much better.
- bsmith0 7y agoAgreed, this type of article is such a circlejerk. People love to hate JS.
- Spivak 7y agoI think the problem is ultimately a combination of popularity and forced-usage that creates opinions like these. JS has remarkably less weirdness and cruft than other ubiquitous languages like Bash and Python because of how quickly browser vendors are able to iterate on it. Every little piece of the language has millions of eyeballs on it.
- int_19h 7y agoThe vendors are able to iterate when adding new features, but they have to maintain all the old stuff for back-compat reasons. And some of it is core language behavior that cannot be changed but which does surface everywhere - e.g. equality and implicit conversions. When you account for that, I would strongly disagree that JS has less weirdness and cruft than Python.
- ttty 7y agoI never had a single == in my codebase. All are ===
- deleted 7y ago[deleted]
- pjmlp 7y agoCompile time of our current BE application in .NET, including NuGET downloads, 1 minute. Compile time of the FE SPA code, webpack, and everything else from JS land, 5 minutes. Then there is the whole issue regarding performance and tiny errors that bork a complete page. Yeah, really productive.
- pdimitar 7y agoBeing easier to work with than Java isn't a very high bar to clear though. So you discovered your local maximum. That doesn't say absolutely anything about the usability and easiness-to-work-with of JS.
- hn_throwaway_99 7y agoI never made an argument that JS is some sort of high nirvana. I just called bullshit that JS is a "toy language", which it absolutely is not.
- pdimitar 7y agoDon't know about the toy language stuff -- only their creators know if that's the case. So I wouldn't claim that in particular. However, JS accumulated significantly more cruft and legacy BS than the other 7 languages I learned and worked with. So let's not pretend JS is on par with everybody else. It's not. We simply had no choice -- for like 20 years -- but to use JS. That didn't, and still doesn't, make it good. It makes it the half-baked language that everyone is stuck with nowadays.
- hn_throwaway_99 7y agoTo each their own, but I still totally disagree that "it makes it the half-baked language that everyone is stuck with nowadays." If anything I find it ironic that Java was supposed to be the language that was "run everywhere", but Java was never successful in the browser. For the very first time I have front end and back end teams using TypeScript for pretty much our entire code base and it has unlocked a huge amount of team productivity that I've never seen in environments where different teams are 'siloed' behind totally different programming languages and ecosystems.
- pdimitar 7y agoTeam efficiency (and conversations with the same people along the entire stack) is the first good argument in favour of JavaScript -- technically in favour of TypeScript -- and I can stand behind that. As long as we agree that siloing is not a problem everywhere. It's all about the people first, technology second, or that has been my experience at least.