Node.js

Showing 28-36 of 42 results
EngineeringIcon ChevronBack-end

Debugging Memory Leaks in Node.js Applications

by Vlad Miller

Memory leaks in long running Node.js applications are like ticking time bombs that, if left unchecked in production environments, can result in devastating outcomes. These bugs are often considered to be hard to find. However, with the right tools and a strategic approach, memory leaks can not only be solved but also avoided in the future. In this article, Toptal engineer Vladyslav Millier gives us insight into what memory leaks are, how some sophisticated debugging tools can be used to find memory leaks, and how to plug them once and for all.

11 minute readContinue Reading
EngineeringIcon ChevronBack-end

Software Reengineering: From Spaghetti to Clean Design

by Juan Pablo Scida

Inheriting someone else’s code can be a nightmare, especially when the code is poorly designed and lacks documentation. In this post, Toptal Engineer Juan Pablo Scida provides a case study of how he reengineered a chat server written in Node.js, transforming its original spaghetti code into a cleanly architected and designed piece of software.

10 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Taming WebRTC with PeerJS: Making a Simple P2P Web Game

by Mahmud Ridwan

WebRTC has opened doors to all kinds of new peer-to-peer web applications and games that can run in the browser without the need of additional plugins. However, being a relatively new technology, it still poses some unique challenges to developers. PeerJS aims to tackle some of those challenges by providing an elegant API and insulating developers from WebRTC’s implementation differences. In this article, Toptal engineer Mahmud Ridwan provides an introductory tutorial to building a simple, peer-to-peer web game using PeerJS.

8 minute readContinue Reading
EngineeringIcon ChevronData Science and Databases

Ultimate In-memory Data Collection Manipulation with Supergroup.js

by Sigfried Gold

In-memory data collection manipulation is something that we often need to do in data-centric reporting and visualization applications. When needed, we often tend to resort to complex loops, list comprehensions, and other suboptimal means, which can easily end up being a huge mess of hard-to-maintain spaghetti code. Supergroup.js is an in-memory data manipulation library that can be used to solve some common data manipulation challenges on limited datasets.

11 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Introducing Battlescripts: Bots, Ships, Mayhem!

by Mahmud Ridwan

Programming is about having fun and enjoying the process of creating something cool. That is why we decided to build a bot-vs-bot game platform around Battleship and make it open source. In this article, we take a look at the code and mechanics of the extensible engine behind this platform.

10 minute readContinue Reading
EngineeringIcon ChevronBack-end

Let LoopBack Do It: A Walkthrough of the Node API Framework You've Been Dreaming Of

by Jovan Jovanovic

While Ruby has Rails and Python has Django, the dominant application development framework for Node has yet to be established. But, there is a powerful contender gaining steam: LoopBack, an open source API framework built by StrongLoop, the creators of Express. Let's take a closer look at LoopBack and it's capabilities by turning everything into practice and building an example application.

14 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

Deploy Web Applications Automatically Using GitHub Webhooks

by Mahmud Ridwan

Deploying instances of a web application to one or more servers manually can often be a monotonous process, and take up a significant amount of your time. With little effort, it is possible to automate the process of deploying your web application with almost zero human intervention. This article outlines a simple approach to automating web application deployments using GitHub webhooks, buildpacks, and Procfiles.

15 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

An Introduction to JavaScript Automation with Gulp

by Antonios Minas

Developers often automate certain repetitive and tedious tasks to save time as well as to stay focused on the task at hand. This article demonstrates how simple and easy it is to use Gulp as a build tool.

6 minute readContinue Reading
EngineeringIcon ChevronWeb front-end

The Top 10 Most Common Mistakes That Node.js Developers Make

by Mahmud Ridwan

Node.js, the cross-platform runtime environment, has seen its fair share of praise and criticism for what it offers to developers. Often, reasons for such criticisms are rooted in how developers use/misuse the language. This article explores ten common mistakes that Node.js developers make and how to avoid them.

11 minute readContinue Reading

Join the Toptal® community.