Following our interview series on the 10 years of Node.js, we’ve compiled a top 10 list based on opinions of some leading community members and contributors whom we spoke with over the recent months. Here they are, in no particular order with the exception of Workers which came out tops as the best feature in the history of Node.js so far!
Best Feature of the past 10 years?
- Async iterators
- Diagnostic tools
- Diagnostic Report
- Native addons
Best Reason to adopt in the enterprise?
- Velocity and beating your competitors to the punch
- Speed of development
- Front-end related tasks are still great with Node
- Developer productivity
- Speed of iteration
- Vibrant community
Most Common pitfalls/programming mistakes to avoid?
- Failing to allow for production-level qualities of service up-front, such as logging, internationalization, monitoring, health checks, metrics etc.
- Going full async/await before learning callback style
- Assuming a property of an object is present
- Unnecessary usage of synchronous operations
- Unnecessary usage of native addons
- Careless consumption of npm modules
- Careless selection of Node.js for wrong workloads
- Depending on un-exported Node.js internals
- Using Promises without studying them. It is very common to break the promise chain
- Race conditions
Best Node.js Performance tricks?
- Fastify codebase contains some neat tricks!
- Debugger; “:)
- Use ArrayBuffers to communicate with native addons.
- Proper usage of async I/O
Thank you to our participants!
- Gireesh Puntil – IBM
- Gabriel Schulhof – Intel
- Alex Korzhikov – ING Bank
- Ujjwal “Ryzokuken” Sharma
- Tomas Della Vedova – Elastic
- Ricardo Leon – Bloomberg
- Michael Dawson – IBM
- Alex Liu – Netflix.