Popular Node.js practices to reconsider

August 25, 2022 By Mark Otto 0

Node.js Weekly

Popular Node.js Patterns and Tools to Reconsider? — Yoni is well known for his work in cataloging Node best practices but he thinks we should reflect upon entrenched approaches over time. Here he presents nine common approaches to reconsider, including the use of Dotenv, Passport.js, and having conditional code based on the value of NODE_ENV.

Yoni Goldberg

QUICK BITS:

  • The Deno project has made an announcement around some ‘big changes ahead’ which includes a goal to “make the vast majority of npm packages work in Deno within the next three months.” This will certainly open up the alternative runtime much more to existing Node developers.

  • 🥯 In other server-side JS runtime news, Bun was unveiled to much fanfare recently and its creator has now unveiled a company around it called Oven (ha! – we do like a pun) along with $7m of funding. There’s a lot of work ahead.. a ‘grind’, if you will, and a lot of folks in the community are worried about potential burn-out there. Jarred is ▶️ very passionate about the potential of the project and we’ll report on future developments.

Node v16.17.0 (LTS) Released — This is one of those incredibly useful LTS releases where a bunch of more modern features get backported and made available to developers who can’t run ‘Latest’ all the time. With 16.17.0, 16.x users gain access to the util.parseArgs CLI argument parsing function, the experimental ESM loader hooks API, and the node:test module and runner, plus a variety of dependency updates.

Michaël Zasso

Deploying a Node App with AWS Elastic BeanstalkElastic Beanstalk was one of the earliest app deployment orchestration services and while there are now lots of approaches to deploying apps, EB remains an option for AWS users.

Samson Omojola

🛠 Code & Tools

Soketi: Simple and Fast WebSockets Server“Ever dreamed about Serverless WebSockets? Soketi can be deployed to Cloudflare Workers. All around the world, closer to your users. Same Pusher protocol.” Written in TypeScript.

Soketi Team

QUICK RELEASES:

Find Tech Jobs with Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It’s free for job-seekers.
Hired