DEV Community

Discussion on: As a beginner to JavaScript, which stack should I learn first MEAN/MERN ?

 
insidewhy profile image
insidewhy

Encourage the people making the tech decisions for your teams to make better choices and when you get the chance to choose tech, don't saddle people with inferior libraries. Express is from a time before es2015, it isn't designed or optimised for our present time.

Thread Thread
 
siddharthshyniben profile image
Siddharth

Just like request

Thread Thread
 
mastermind profile image
MasterMind

Just curious, what do you think should be used for a backend server then and why? Honestly for me, I have no problems or delusions with express. It's very easy to create apps with it and it suits me pretty well.

Thread Thread
 
siddharthshyniben profile image
Siddharth

It works well, but since it was built very long ago, it may not be suited for today. You may think that could be changed, but to maintain backwards compatibility they won't.

For you, since you are a beginner, it may not matter. But I still recommend using newer libraries, which may be better.

Thread Thread
 
mastermind profile image
MasterMind

I understand that. But what makes it not suitable for today, and what libraries should I go for and what modern problems do they solve then? That's what I was just curious about.

Thread Thread
 
siddharthshyniben profile image
Siddharth • Edited

Express is not that maintained. It can't even handle async/await (#4360) and you get an UnhandledPromiseRejectionWarning (note that in the future this will crash your app, and it can cause memory leaks). And much more.

As for alternatives, you could try fastify or AdonisJS