nodejs.dev
nodejs.dev copied to clipboard
Change the content of code examples
Hey there! 👋
Before making any PR, I would like to have a roundtable of the proposed changes.
Most of the code examples present inside the documentation are using ExpressJS. It is presented like anyone should know this framework, which feels wrong.
- This framework is outdated and should not be promoted nor presented in my opinion on the website.
- The goal of this website is to teach how to do things in
Node.js
directly and not by using a third-party library.
I would like to know if you would accept PRs that remove ExpressJS examples (in favor of Fastify when needed) and provide more bare Node.js examples.
I found only 2 mentions of express in entire Learn section:
- https://nodejs.dev/learn/how-to-exit-from-a-nodejs-program
- https://nodejs.dev/learn/get-http-request-body-data-using-nodejs
Not sure that those 2 pages are contributing much in Express popularity and
It causes more harm than goods in the current Node.js ecosystem.
From my side - the end user is much more likely familiar with Express than other Node.js frameworks. What will be the benefit of updating those examples?
Instead of promoting any Node.js frameworks, we should show examples using the core libs. Like replacing examples using express
to examples using http
. What do yall think?
Examples using third-party libs could be a in a different section to give some ideas on where to go or something
+1 from my side to replace with core libs
Did you want to work on this? @RomainLanz If not I can pick it up
Did you want to work on this? @RomainLanz If not I can pick it up
Yes! I would be more than happy to provide few PRs to improve the current documentation.
@lancemccluskey Any progress?
Hey, @RomainLanz or @lancemccluskey are you folks still interested in contributing?
Closing because this page is going away. https://github.com/nodejs/nodejs.dev/pull/2796