Live data from Hacker News

Why Node.js is becoming the go-to technology in the Enterprise

nearform.com

71–75 of 75 posts

Re: Why Node.js is becoming the go-to technology in the Enterprise

#71
post #70
post #51

Earlier quoted context omitted.

Bolting reusable libraries together is great for some things, not so much for others. How much of that large package repository uses different (or worse, conflicting) solutions for abstracting async programming? Some batteries really are better off being included.

And I'd observe that all three of the things I mentioned ("async", threading, static typing) are firmly in the "not" camp. If the Node community admits these are desirable characteristics of a programming development environment, then they've lost, because they can not compete on any of those three fronts. The entire value proposition of Node was basically that those three things weren't important. If they are, Node'…

It is true though that many js deficiencies have turned out to be factors contributing to node's popularity. A lack of namespaces, standard library and import/require come to mind.

I'm not interested in arguing about technical superiority, I'm sure node is no where close to ideal. But, like javascript itself, it's popular, interesting, useful, and here to stay. From my perspective, for better or worse, javascript is the most important programming language of the decade.

Re: Why Node.js is becoming the go-to technology in the Enterprise

#72
post #66

Earlier quoted context omitted.

Because bolting reusable libraries together is 90% (meaningless number alert) of what we do when assembling modern applications. And in this respect, Node is perfectly suited to the job, boasting a) A small core API instead of a sprawling standard class library b) A highly composable export and require mechanism, better in some interesting ways than what exists in other systems (1) c) The fastest growing and soon to…

"a) A small core API instead of a sprawling standard class library" Using adjectives to accentuate, does not an argument make. "small/core" and "sprawling" all have loaded meanings. And if you wish to convert anyone but the already-converted sub-culture inhabitants, you should probably quantify what you mean and why it's a benefit.

I think my point is clear when you read what I wrote as a whole instead of dissecting parts. I'm allowed to editorialize a bit, am I not? I'm not a robot nor am I writing my thesis on the subject, we're just talking here.

Re: Why Node.js is becoming the go-to technology in the Enterprise

#73
post #17
post #9

These stories about switching to node are pretty funny: "I switched from a dump truck to a motorbike and now I can drive way faster!" Node.js isn't really faster than most other popular languages with an evented library, but if switching to Node involves scrapping years of enterprise cruft, then maybe it's worth it. By the way, enterprise adoption of Node is surely a sign that we need to jump ship. Glad I got out of…

I don't think enterprise ever has or will adopt Rails. Even node.js isn't at the point where it can really be considered "enterprise". Java is dead. Long live Java!

Paypal uses node.js extensively. https://www.paypal-engineering.com/2013/11/22/node-js-at-pay.... They even open sourced their implementation of it: http://krakenjs.com/

Re: Why Node.js is becoming the go-to technology in the Enterprise

#74
post #69
post #68

Earlier quoted context omitted.

True, and HHVM is awesome. Where Node.js shines is Web Sockets and similar things. But one can use libevent with PHP (though not as easy). I found some useful comparision benchmarks on that site: http://www.techempower.com/benchmarks/#section=data-r9&hw=i7...

Do you know of a way to use libevent to make concurrent queries to mysql? Or mysqli to do this? I mean hitting MULTIPLE database servers / shards. That would speed up my php by a lot. I an cache results of queries in PHP but can't batch things together before they are sent. In JS I can wait for 50msec to do requests in batches. That lets higher lawyers (ViewModels) query the model without worrying about batching!

IO related PHP API are a problem, one needs non-blocking functions for optimal performance.

Sorry, as HHVM doesn't expose libevent yet (at least last asked the devs on IRC), I moved some portions of my code to node.js for now. (plus HHVM relies itself on the older libevent 1.4, instead of the 2.x that PHP exposes as API)

I would be interested in the answer too. Maybe ask it on stackoverflow.com or so?

Post reply on HN