r/programming • • Jul 18 '16

Web programming is getting unnecessarily complicated

http://en.arguman.org/web-programming-is-getting-unnecessarily-complicated
324 Upvotes

258 comments sorted by

View all comments

Show parent comment

4

u/jocull Jul 19 '16

What do you think Node's critical flaws are on the server? Why do you think large corporations such as WalMart are using it to survive Black Friday loads? https://mobile.twitter.com/eranhammer/status/406300408647139328

Asking because I am genuinely curious, not trolling :)

4

u/sandaz13 Jul 19 '16

I interviewed a Wal-Mart dev for a job a few years ago, and we talked about that a bit. His response was that Wal-Mart adopting Node was for infrastructure reduction (read: cheaper), pure and simple. Without maintaining/ managing threads, you can handle way more requests per server, which means less servers needed for peak volume.

1

u/[deleted] Jul 19 '16

What was the alternative to Node.JS in his eyes?

2

u/sandaz13 Jul 19 '16

We were just chatting over lunch, so didn't get into a ton of detail, but I believe that part of their stack was on Java before moving it to Node.js. Based on a preso they gave at a conference last year, sounds like they still have a pretty decent amount of java and other standard enterprise stuff. I'm sure there's places it shines, but I'd be nervous doing any significant financial transactions on node.js, especially regulated ones.

1

u/MyNameIsOhm Jul 19 '16

I'm sure there's places it shines, but I'd be nervous doing any significant financial transactions on node.js, especially regulated ones.

I would hope they're only working with metadata relevant to the transaction and not the transaction process itself.

1

u/tdammers Jul 19 '16

Threading model (great until you hit the cases where it's inappropriate; luckily, those are rare) and the callback paradigm (no, promises are not awesome, they're barely enough to avoid goong crazy entirely) would be my top candidates. Lack of a type system is another, but TypeScript looks like a reasonable mitigation approach.

1

u/jocull Jul 20 '16

Many transpilers have or are adding async/await which I'm hoping will deal with some of the promise craziness that can ensue when you have to flip your problems upside down. TypeScript 2.1 will have these and will be able to target ES3+ with them I believe