Best of Node.jsFebruary 2022

  1. 1
    Article
    Avatar of devtoDEV·4y

    This is why your Node.js application is slow

    Many performance-related issues in Node.js applications have to do with how promises are implemented. Async/await blocks the event loop when not correctly used. blocking it means that other parts of the application will suffer because they will not get executed on time and that affects the overall performance.

  2. 2
    Article
    Avatar of devtoDEV·4y

    Moving from JavaScript to TypeScript

    JavaScript is still one of the most popular programming languages in the world. TypeScript aims to solve a lot of the problems that JavaScript has which makes the language a lot closer to other modern programming languages. In my opinion anyone who hates JavaScript is likely to fall in love with TypeScript.

  3. 3
    Article
    Avatar of medium_jsMedium·4y

    Node.js Vulnerability Cheatsheet

    Cross-site scripting (XSS) attacks in the browser can lead to remote code execution (RCE) attacks. Injection happens when an application cannot properly distinguish between untrusted user data and code. Security misconfigurations can compromise the security of Node applications.

  4. 4
    Article
    Avatar of appsignalAppSignal·4y

    Patterns and Anti-patterns in Node.js

    There are two ways to declare variables in JavaScript: var and let. var declares a function-scoped variable (when declared within a function) Let and const declare block- scoped variables. With let and const, you won't be able to use a variable that has not been declared.

  5. 5
    Article
    Avatar of dzDZone·4y

    How Good Is Node.js for Backend Development?

    Node.js is a back-end and open-source coding platform that allows you to write server-side enterprise-level too scripts. The platform is efficient and lightweight. It also allows developers to code both front and back end, which acts as a boon for web development. It is extremely fast at converting Javascript code into machine code because it runs on Google’s V8 engine.

  6. 6
    Article
    Avatar of devtoDEV·4y

    Fix your Express error handling now

    Express is one of the most influential packages in the Node.js world. It gave us an extremely easy-to-use interface for building REST APIs. It’s so popular that whatever can be put into middleware has probably one made for express already. Express is not actively developed, which is understandable - in the end, it was meant to be unopinionated.

  7. 7
    Article
    Avatar of logrocketLogRocket·4y

    Building microservices with Node.js

    In this article, we’ll review the concept of microservices and learn how to implement a microservice with Node.js. Microservices became necessary due to the shortcomings of the monolithic pattern of software development. In a microservices, each software application feature is separated from the other.

  8. 8
    Article
    Avatar of devdojoDevDojo·4y

    How to Make a Discord Bot in Node.js

    Discord is a chat application that allows millions of users across the globe to message and voice chat online in communities called guilds or servers. Bots can perform various actions such as sending messages to servers, DM-ing users, moderating servers, and playing audio in voice chats. This tutorial aims at beginners with zero knowledge on how to make a Discord bot.

  9. 9
    Article
    Avatar of devdojoDevDojo·4y

    Server side rendering with Laravel + Inertia.js + Vue.js

    Inertia's SSR (server side rendering) is really important so you should have SSR whenever you are building a SPA (single page application) This is not an issue if you are using Laravel's default templating system, which is Blade. To solve this problem and make our website work even without Javascript enabled we'll need to somehow render everything on and the server side and serve all the resulted HTML on page-load.Luckily Inertia ships with some tools to help us tackle this issue.

  10. 10
    Article
    Avatar of btrprogBetter Programming·4y

    Http Server Performance: NodeJS vs. Go

    Jan Sunavec compares the performance of NodeJS and Go. He used an I7–8550U CPU and used 500 concurrent connections. He found that the Go solution delivered better performance than the NodeJS solution. He also found that Go was better at dealing with large numbers of requests.

  11. 11
    Article
    Avatar of hashnodeHashnode·4y

    Moving from JavaScript to TypeScript

    JavaScript is still one of the most popular programming languages in the world. TypeScript aims to solve a lot of the problems that JavaScript has which makes the language a lot closer to other modern programming languages. The better tooling available in TypeScript provides a far better experience when writing code.

  12. 12
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    How to Build a Logging Web App with Server-Sent Events, RxJS, and Express

    SSE, short for Server-Sent Events, is a way to send data from your server to your clients. SSE is lightweight, efficient, and very powerful. I'll be using Typescript, Express, and RxJS to show you how to use SSE.