Writable Streams in Node.js: A Practical GuideIn Node.js, there are 4 primary types of streams: readable, writable, transform, and duplex. In the previous article, we looked at the readable streams in detail. Perhaps you've heard something about writable streams or even used them. But there is a...Feb 16, 2025·9 min read
Multithreading in Node.js: Using Atomics for Safe Shared Memory OperationsNode.js developers got too comfortable with a single thread where JavaScript is executed. Even with the introduction of multiple threads via worker_threads, you can feel pretty safe. However, things change when you add shared resources to multiple th...Aug 28, 2024·6 min read
Docker Desktop Free Alternatives for Mac and WindowsThere are different reasons why people can't use Docker Desktop. It might be restricted by company policies or because it requires you to pay at some point in time (most likely the latter one). Don't get me wrong, I'm not against paying for products ...Aug 21, 2024·5 min read
Understanding Node.js BufferSo far, we've become familiar with buffers, typed arrays, data views, and how they all work together. If you missed the previous articles, I highly recommend reading the one dedicated to buffers and the other one on views. Node.js provides a dedicate...Aug 15, 2024·8 min read
Uint8Array vs DataView: Choosing the Right Buffer View in JavaScriptIn the previous article, we got familiar with JavaScript buffers. The lowest possible implementation of a buffer in JavaScript is the ArrayBuffer class. This class is read-only, meaning we don't have any API to write data inside the buffer. To change...Aug 7, 2024·8 min read
JavaScript Buffers Explained: Why They Matter and How to Use ThemWhat do video processing, 3D and 2D graphics, cryptography, and network protocols have in common? They all use buffers. It is a low-level abstraction that makes it possible to tap into efficient algorithms and direct memory management. There are no t...Jul 30, 2024·6 min read
From ASCII to Unicode: A JavaScript Developer's Guide to Text EncodingHave you ever seen things like ASCII or UTF-8? At least you should've seen the latter one. All modern IDEs and code editors display some sort of UTF when you work with files. Most of the time, you pay little attention to it because it doesn't direct...Jul 18, 2024·10 min read