Programming tutorials, thoughts on software development, and the occasional off-topic post.
Premature Optimization: Code First, Optimize Later
Premature optimization may be hurting the quality of your work. Focus on writing legible code first; optimize it later if you need to.
React, Iframes, and a Back-Navigation Bug
If an iframe re-renders in React, it can interfere with back navigation in your browser. You can fix this by unmounting the iframe.
Be Careful with Async Functions that Return Booleans
Suppose an async function returns a boolean. What happens if you check the return value without awaiting it?
Optimizing Images for the Web with WebP and Lazy Loading
Add Comments to Your Jekyll Blog with the GitHub Issues API
Learn how to add comments to your Jekyll blog. We'll use the GitHub issues API as our comment system and lazy load it for a better user experience.
A Simple Webpack Config
Creating a Responsive Navbar Without Bootstrap
Want to create a navbar that works on mobile and desktop? Ditch the frameworks—in this tutorial, we'll create a responsive navbar using HTML, CSS, and JS.
How to Add a Copy-to-Clipboard Button to Jekyll