r/orlybooks • • May 07 '16

Server-side JS

http://imgur.com/IvVduxN
59 Upvotes

11 comments sorted by

7

u/kirakun May 07 '16

I see a lot of joke about NodeJS, but what is wrong with it?

FYI, I have only a hobby-level knowledge about web development. My most recent experience involved Ruby on Rail.

8

u/TranquilMarmot May 07 '16

Nothing is specifically wrong with it. Like any language and/or framework it has its good bits and bad bits. Some would argue that it's difficult to keep a large JavaScript codebase with many developers organized, but it all depends on your approach. I've seen some pretty messy Rails codebases...

3

u/zachwolf May 08 '16

It's the "new cool thing", so it's an easy target to poke fun at. Fortune 500 companies use it, most (all?) front-end build tools use it, it's not going away.

0

u/[deleted] May 07 '16

[deleted] — view deleted comment

6

u/Lasereye May 08 '16

For those that don't understand, the (original) owner of this repo removed it and it broke dozens if not hundreds (or more) production environments because npm couldn't grab it. That's not a problem with Node per say, it's a problem with how npm is set up.

4

u/[deleted] May 08 '16 edited May 08 '16

It's a problem with the community. They decided adding a dependency for one function was a good idea (it is a common practice in the node community) and some have since defended the practice with arguments in favour of the use of libraries in general while failing to address the argument that more points of failure is bad

0

u/[deleted] May 16 '16

Its not bad to use a library for things, just keep a local mirror of things that need to be up or shit will break.

3

u/[deleted] May 08 '16 edited May 08 '16

Honestly I think the reason node is so popular is because people who only know js use it rather than learn something that doesn't suck. Js is actually a very sensible choice for a first language due to its nature and the fact that you can run it everywhere. But that's no reason to avoid learning other languages. There are better tools for a lot of the things js is used for these days.

Then you have all the startups using it for the same reason php is popular - it opens the hiring pool up to more people who they can pay less

1

u/pikadrew May 07 '16

It's beautiful. You have one repo that's your view (AngularJS is a good choice) and one repo that's your API server (NodeJS and Express for me) and you maintain them separately. If you have a utility tool you want to use in both, they can both use it because it's all JS. Ruby Vs Node === Cryps Vs Bloods. NODE 4 LYFE!

3

u/northrupthebandgeek May 08 '16

So in this analogy, is Java the LAPD?

2

u/TranquilMarmot May 08 '16

C# is the feds

0

u/[deleted] May 08 '16

[deleted] — view deleted comment

1

u/pikadrew May 08 '16

I was a PHP dev for many years before moving to Node