Legacy Node.js libraries in MDN docs #518
Replies: 0 comments 10 replies
-
@tshemsedinov That's a very provocative statement. What is it you would like to see as well or instead? My understanding is that:
I am not arguing that there aren't more recent frameworks that have great abstractions. I do however think that Express is great for showing the concepts, and that while you will be able to find millions people who agree there is a better framework, you might have trouble getting them all to agree what it is :-) |
Beta Was this translation helpful? Give feedback.
-
There are many frameworks much better and much worse in npm, I just want to tell that frameworks become hype and outdated too fast.
I propose to add pure node.js examples and compare @hamishwillee |
Beta Was this translation helpful? Give feedback.
-
@tshemsedinov Obvious question then - if "raw node" web servers are so much better, why do the vast majority still use frameworks? I suspect in part because a web search on "how do I do a web server" tells them too. Also because there are many examples out there and not so many good servers written in pure node. This is a good argument for you doing a pure JavaScript web server tutorial, in particular if it works through the same/similar "real world" example like the local library we have used for Express and Django. Those are good because they work though the common things in most frameworks - routing, database integration, templating, session implementation, authentication, deployment etc. I'm not sure whether it would make sense to have it in parallel or as a replacement to Express docs. I doubt we'd consider removing Express any time soon, but I'd reserve judgement. NOTE, you could also find people who would argue MDN shouldn't have anything that isn't about web standards because of these kinds of discussions. I'll give some other contributors on MDN a chance to comment. |
Beta Was this translation helpful? Give feedback.
-
Reading the discussion here, I'm seeing two distinct questions:
I don't think these questions are going to be answers to each other—it's too many moving pieces. Instead, I think we'll need proposals that address each question on their own terms. If you want to drop Express docs, we need a detailed proposal that speaks to:
If you want to develop a framework-less guide, then we'd need a proposal to cover:
|
Beta Was this translation helpful? Give feedback.
-
As of 2022
express
is outdated but we have learning materials for it: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_NodejsBeta Was this translation helpful? Give feedback.
All reactions