Journey Through Code

Exploring different languages and frameworks, documenting my progress and discoveries, in chronological order.

__dirname Makes a Comeback in Node.js ES Modules

This article walks you through my experience transitioning from CommonJS to ES Modules in Node.js, with a focus on the challenges of accessing the current module directory and file paths. It covers the frustrations I encountered with the old, cumbersome workaround and the relief brought by the introduction of import.meta.dirname and import.meta.filename. These improvements have significantly streamlined my coding process, and I am eager to share how they can simplify your JavaScript development as well.

Warp Terminal: Setting a Custom Starting Directory for New Sessions

Learn how to set your preferred directory as the default starting point for your terminal sessions in Warp. Follow these simple steps to configure your terminal to always open in your chosen directory, making your workflow more efficient and personalized.