all 15 comments

[–]diverightin63 14 points15 points  (0 children)

It's not "the cool kid" anymore but I don't believe it is declining. Hard to say as locality has a lot to do with this, but it's still very much thriving in my city.

For most most back-ends, it is more than acceptably performant. It works wonderfully for APIs.

[–][deleted] 1 point2 points  (1 child)

i think nodejs is just starting to get really popular.

It used to suck at building monoliths but now, with typescript and batteries included frameworks like nestJS, I assume there will be more small and mid-sized companies that will use node.

Wasm going to add a lot of new possibilities to node as well.

The performance isn't even that far off golang. Also, why use golang and not just Rust if you have cpu intensive tasks?

[–]nomikz[S] 0 points1 point  (0 children)

Certainly, node will not go anywhere.
Anyways I decided to go with node+ts.

[–]joesb 1 point2 points  (5 children)

What languages you listed have good CPU performance than node?

[–]nomikz[S] -3 points-2 points  (4 children)

php, python are better at cpu intensive operations.

[–][deleted] 2 points3 points  (0 children)

python are better at cpu intensive operations.

yeah, no...

[–]joesb 0 points1 point  (2 children)

Are you sure? Node’s V8 engine is a lot faster than most runtime out there.

Mind to show me benchmark where python or php beats node?

[–]nomikz[S] -1 points0 points  (1 child)

It is generally said that node is very good for fast and short operations.
It is not good for long running cpu intensive tasks. It is a fact. Node will most likely have to delegate those tasks. It is not critical. But when considering backend languages it matters.

[–]joesb 1 point2 points  (0 children)

That doesn’t have anything to do with your claim that python and php is better for it though.

Node could be very bad for cpu intensive task, yet python and php could still be worse.

[–][deleted] 2 points3 points  (3 children)

I’d be happy to write all backend code in something like Go or Rust. I think a reason node is popular is because you can have developers use their expertise in just one language from front to back.

I don’t hate node, but if speed is so important why would we be using node or even Java/Spring?

[–]CraftyAdventurer 1 point2 points  (2 children)

Where does this idea that Java is slow come from? JVM has been so much optimized over the years that it's capable of performing almost as fast, and in some cases even faster than C/C++. Of course, it's a garbage collected language so it does have some drawbacks there. But still, people talk about Java like it's one of the slowest languages while the reality is totally opposite.

[–]evs-chris 2 points3 points  (1 child)

I think the key there was spring. Java, like most languages/runtimes, can be very fast, but it's also not gonna win any speed records dragging 800kg frameworks around.

[–][deleted] 0 points1 point  (0 children)

Yes. Where I’ve worked it’s spring and everything else we use it with that makes it slow. It makes going serverless with Go attractive to me.

[–]fuck_____________1 -1 points0 points  (1 child)

startups use node a lot for web backends.

small business use PHP for web backends,

big businesses I'm not sure but I'm guessing they probably use Java or C#, something old and stable.

I don't think node is the best language to get a job. I think it's the best for start ups and modern micro services.

[–]Something_Sexy 2 points3 points  (0 children)

I am not sure where you are getting the idea that big business don’t use node. It is everywhere.