Blog .
Thoughts, tutorials, and deep dives into software engineering, architecture, and the future of web development.

When in an error, I defer to Golang than Typescript (node.js implied 😉)
An argument that Go’s explicit error handling and defer statement offer superior reliability compared to the implicit try/catch patterns in TypeScript/Node.js. While Go’s if err != nil approach is more verbose, it treats errors as first-class values, forcing developers to handle failures immediately. This reduces mental overhead' and prevents the silent failures or unhandled promises common in complex, asynchronous Node.js environments.

Utilizing WeakMap to effectively store Metadata file
Gemini said Mastering Metadata in JavaScript: Harnessing WeakMaps for Efficient, Memory-Safe Object Extensions Without Manual Cleanup or Memory Leaks. Learn how to utilize WeakMaps to attach private metadata to objects, ensuring that data is automatically garbage-collected when the object is no longer in use, thus maintaining optimal application performance and cleaner code.