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.
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.
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.