Ask HN: Should I Be Ashamed to Love JavaScript?
I feel like JavaScript is the laughing stock of the programming community sometimes... It's inefficient, messy, not typechecked, full of beginners...
But it runs extremely easily on pretty much everything! and can be distributed and run instantly through any browser.
Maybe I feel like it's too easy compared to other languages and is downplayed as a newb language...
Maybe it just doesn't seem as cool as other languages like rust and go...
51 comments
[ 4.1 ms ] story [ 112 ms ] threadJavaScript's one best attribute was that it would run on any device. No longer true.
It's second best attribute was a simple threading model. Promises and async wrecked that.
The third best attribute was it was easy to learn. But in ES6 there are twice as many control structures to learn, with no added power. =>, class, const, etc. They just add more things to think about, without solving any problems.
Well, except that people didn't like learning closures and prototypes. And now they don't have to. So you can program in JavaScript now without learning it if you want.
And you don't have to write the word "function" and "this" a lot. So you save 2% on code size.
ES5 Forever.
no strict typing,
no sane module system.
Don't worry, it's PHP.
Well PHP is worth on those stuff..
As long as you can make stuff happen with it, I guess that's fine..
Not sure if intentional pun
The only reason to be ashamed would be if you only program in JavaScript and can't imagine ever using anything else. Learn many languages, master some, use different languages for different problems.
Even brainfuck is beautiful, maybe is not productive, but its unique.
Don't waste your time worrying about that even if there is not market, if you really like a language you will find a job if thats what you want.
It still drives ME crazy because it lets many of my colleagues produce unreadable hard to understand spaghetti code in a way I don’t see with more structured (and tool friendly) languages like C#, Java, or purer functional languages, but well written JavaScript can be a delight.
But yeah as long as you enjoy what you're doing, you shouldn't worry about it :)
OTOH, I get paid to work with PHP, so really, I don't worry about what other people think of it.
But then I realized this didn’t matter. The JavaScript community is was evolving at a ridiculous rate. These weaknesses slowly left their blood, and honestly, now I’m left envious. I enjoy writing Flow, poking around with new ideas like async / await, and envy the sheer performance that JavaScript has attained.
I still find JavaScript and often the people associated with JavaScript to be hard to like at times, but it’s a language with great possibilities.
JS is a tool, just like on the any other. It has some big pluses, and some annoying “WTFs”, but today, it’s a more-than-solid default answer to “What should I write my webapp in”.
Fast-forward to now...I’ve decided to build my startup on typescript and node. I find the easy sharing of libraries and types across frontend and backend very liberating.
TS/ES6 are mature and run everywhere. Easy for beginners but functional enough for me. It’s taken me a while but I love JavaScript.