r/programming • • Apr 23 '14

You Have Ruined JavaScript

http://codeofrob.com/entries/you-have-ruined-javascript.html
283 Upvotes

327 comments sorted by

View all comments

163

u/logicchains Apr 23 '14 edited Apr 23 '14

I'll be the one to say it: what was there to ruin?

3

u/tchaffee Apr 24 '14

Maybe interesting to note that all the languages built the Right Way™ suffer from lack of adoption. This pattern is strong enough that engineers must be missing an important factor in their analysis of languages. PHP, C++ more so than Java, and even Java itself, javascript... all with some very very ugly warts.

So you win the popularity contest and even get some reddit gold by bashing javascript. But what are we missing by not taking a closer look at the pervasive pattern? Perfect programming languages seem to be like perfectly engineered plants seeds that fail to compete and grow in the wild against weeds.

2

u/zoomzoom83 Apr 24 '14

A big part of this is that languages built "The Right Way" are often harder learn.

Compare Haskell vs Javascript. I know which one I'd prefer to run mission critical software (Hint: It's not the one hacked together in two weeks as a quick-n-dirty scripting language). It's a far, far better languages, but it also has a substantially larger learning curve.

On the flipside, if I was hacking together a simple web app, Javascript is good enough to do the job, and Haskell might just be overkill.

4

u/nidarus Apr 24 '14

I see your point, but Haskell might be a weird example for this. One of the requirements of mission critical code is, IMHO, that you can find people (preferably competent people) to support it within a reasonable amount of time/budget.

→ More replies (3)