News for hackers. Stuff that matters.
Re:Hard-won lessons: Five years with Node.js by z3t4 on Thursday April 20, 2017 @05:22AM (#14155156)
If you are using a web framework, and are considering switching to a systems language, and your developers already have a lot of experience in JavaScript, that's when you should consider NodeJS! I had a lot of JavaScript experience before switching to NodeJS, but it still was a huge step, you have to learn systems architecture, and distributed systems (async programming). I think JavaScript is easier then Java and C/C++, but it's still hard to learn, having the same language for both front-end and back-end makes up for that though.
Re:Hard-won lessons: Five years with Node.js by dahauns on Thursday April 20, 2017 @06:25AM (#14155443)
I have a hard time really seeing this as a net win. There are huge upsides to having the same language on both sides - but the big downside is that javascript simply isn't a very good backend language. Node.js/v8 is incredibly impressive for what it is. But it still has "shoehorned" written all over it. (For the record: I wouldn't consider Java the Language a pinnacle either.)
Re:Hard-won lessons: Five years with Node.js by z3t4 on Thursday April 20, 2017 @07:40AM (#14155771)
I agree that JavaScript isn't very good, but what are the alternatives !? I can not think of any language where a non-engineer with little computer science knowledge, can get productive withing minutes. And it only gets better the more you use it. For example, the other day I wanted to take a screen-shot of a web page, make a visual diff, then email me if something changed with the changes highlighted. I basically glued three different NodeJS modules together, and it took less then a hour. Try to do that in any other language.
Re:Hard-won lessons: Five years with Node.js by dahauns on Tuesday April 25, 2017 @06:00AM (#14192090)
> I can not think of any language where a non-engineer with little computer science knowledge, can get productive withing minutes.

That's a big misconception there. I absolutely don't mean this in an elitist way - and I completely agree that some degree of accessibility is a must - but this is in no way a benchmark for a good backend language. This is how we got PHP.

> [WebPage screenshot -> visual Diff -> send mail] > Try to do that in any other language.

I fail to see what's so difficult about this. I'd wager that in the "heavyweight stacks" you'd not even have to use modules outside the runtime libraries for a basic variant, and if you want to, you'd have them at your disposal.

Don't get me wrong, the large centralized ecosystem of NodeJS definitely is one of its biggest pluses.

But - and yeah, now I'm sounding a bit elitist and jaded - I've heard a variant of "It's so much simpler in X" or "Try that in anything else than X" too often when it only meant "I'm actually not really proficient in anything else but X".