Thoughts of a web developer

Welcome to my website, where I share a few thoughts, tutorials, and ideas on topics including application development using JavaScript, TypeScript, and AWS CDK.

Pen sketch of a small bakery with three ovens and one baker, drawn up close. This illustration captures the details of the baker working diligently and the ovens baking bread, emphasizing the small scale and personal touch of the bakery.

A Gentle Introduction to Parallelism in Node.jsThis article explains how to utilize parallelism in a Node.js application using the cluster module, illustrated through a bakery analogy. Just as a bakery hires multiple bakers to use all ovens efficiently, a Node.js application can fork multiple worker processes to utilize all CPU cores.

Pen sketch of a small bakery with five bakers, drawn up close. This illustration captures the details of the baker working diligently

Understanding Lexical Environments in JavaScript: A Bakery AnalogyThis article uses a bakery analogy to explain the concept of lexical environments in JavaScript. By comparing different areas of a bakery (front counter, kitchen, and storage room) to variable scopes (global, function, and block scopes), it simplifies how variables are accessed and managed within nested functions and blocks.