Leverage the System; Don’t Fight It

While reviewing some AI-generated code, I came across this line: document.querySelectorAll<HTMLElement>('[data-menu-item-id]').forEach((button) => { The forEach callback accesses the button parameter's dataset attribute. To avoid TypeScript errors, the agent added a type assertion to the querySelector call. This introduces a dormant bug that will surface as soon as the CSS selector matches an element that isn't … Continue reading Leverage the System; Don’t Fight It →

It’s all About that Data

Functional programming isn't about functions; it is about data. Have you ever heard someone say functional programming is all about working with functions? That's like saying woodworking is all about working with wood - Not really. It is about creating something that has a purpose. To achieve that, woodworking uses wood, and functional programming uses … Continue reading It’s all About that Data →

Subdomain HTTPD Customizations in DirectAdmin

DirectAdmin makes it really easy to manage a web server. However, convenience comes with a price: You are limited to the options and capabilities DirectAdmin offers. A few days ago, I published a new tool. It is a tiny URL shortener/redirection service with destination editing capabilities. Once I had the first complete version, I rushed … Continue reading Subdomain HTTPD Customizations in DirectAdmin →