Francisco Javier Palacios PérezFco. Javier Palacios Pérez
Software Developer
Category: Node.js

Category: Node.js

HTTP from scratch: a server without a framework

HTTP from scratch: a server without a framework

createServer, reading the body by hand, a router in a Map, and why Express ends up being the answer: bare HTTP, with its real output.

Files, paths and environment variables: what you touch every day

Files, paths and environment variables: what you touch every day

Reading a 2 GB log with readFile isn't slow, it's a bug. fs/promises, streams, join versus resolve, and configuration that fails at startup.

Globals, modules and the standard library: the ground you work on

Globals, modules and the standard library: the ground you work on

process, Buffer, import.meta, package.json exports and the five runtime modules you actually use, with their real output.

async/await in practice: async code that reads like normal code

async/await in practice: async code that reads like normal code

The three mistakes everyone makes: forgetting the await, using forEach with async, and running in series what could run in parallel.

Callbacks and promises: from the nested pyramid to the value that arrives later

Callbacks and promises: from the nested pyramid to the value that arrives later

Why the (err, data) style forced you to nest, what a promise is inside, and when to fire ten requests at once instead of one after another.

The event loop: the mental model that changes everything

The event loop: the mental model that changes everything

Why a zero-millisecond setTimeout takes three hundred, why your server goes quiet, and the order your code actually runs in once promises are involved.

Modules, template literals, and the array methods that replace your loops

Modules, template literals, and the array methods that replace your loops

Why import sometimes works and sometimes explodes, what optional chaining buys you, and how to stop writing loops to walk an array.

Modern JavaScript: Variables, Functions and Objects

Modern JavaScript: Variables, Functions and Objects

const, this, prototypes, destructuring and spread: the syntax you read every day in a Node backend, and what it actually does underneath.

What is JavaScript and Why Node.js Exists

What is JavaScript and Why Node.js Exists

JavaScript was born in a browser and ended up serving APIs. Here is what V8 is, what libuv does, and what a Node server wins and loses.