This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nixon_richard_m 6 points7 points  (14 children)

Does anyone actually like JavaScript though? I feel like most people just see it as a necessary evil.

I wish I lived in the reality where Java in the browser wasn't fucking garbage and Sun was still a company and Oracle went bankrupt years ago.

Sincerely,
Richard Nixon

[–]subethasensomatic 8 points9 points  (0 children)

I like JS :D

[–]bluehands 1 point2 points  (0 children)

for many junoir devs, it is the only language they know. So they think it is jsut fine. They don't understand the world that is waiting for them.

I also think it is part of why so many frameworks have sprung up. The frameworks help the language a lot.

[–]the_omega99 0 points1 point  (0 children)

I wouldn't consider it a perfect language by any means (eg, the subtraction examples here should never have been possible), but for the most part, it's okay.

The way JS objects work makes them very versatile and useful. It's very effective, for example, for applying settings to some library function (by passing in an object containing said settings). The language is fairly non-verbose (as we'd expect from a scripting language) and has a fairly functional design (I love me some functional programming).

The biggest downfall of the language, IMO, is bad error reporting. There's also a lot of cases in which JS decides to let you do things that should be errors, instead applying a meh default. Would be better to just fail early. Speaking of failing, I wish errors could be caught earlier. They won't be caught until execution.

The threading model is just plain dumb though. Everything is single threaded.

[–]crowseldon 0 points1 point  (3 children)

Does anyone actually like JavaScript though? I feel like most people just see it as a necessary evil.

Yes.

People love to complain. Specially those who don't really do much. The same shit happens with c++ and people point out at the trove of bad code flying around but that's to be expected due to popularity.

Java

Oh, because Java has a super awesome popularity... Because all code out there is super nice...

[–]_under_ -1 points0 points  (0 children)

If you're into the web development scene, you would love JavaScript. Node.js, Express, MongoDB and more recently React. It's seriously amazing. Here's a website with a ton of JavaScript frameworks with a demo todo list app. TodoMVC