DEV Community

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

 
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