Why JavaScript Months Start at Zero
JavaScript counts January as month 0 because its Date is a port of Java's original date class. Here is where that came from and how to stop it biting you.
I’ve written i <= array.length more times than I’ll admit.
These posts cover modern CSS and the strange history behind JavaScript, with demos you can drop straight
into your next build. Mostly bug-free. Give or take one.
On iPhone and iPad, notifications work once the blog is on your Home Screen.
JavaScript counts January as month 0 because its Date is a port of Java's original date class. Here is where that came from and how to stop it biting you.
CSS random() puts pseudo-random values in your stylesheet with no JavaScript. Here is where I'd use it and the fallback I wouldn't ship without.
Fable 5.2 leaves Claude Pro plans tonight. Spend a few minutes having it write a skill that teaches Opus how it plans and checks its own work.
CSS can now divide a length by a length and get a plain number. Use it to let one container width drive line-height, aspect-ratio and more, with no JavaScript.
The HTTP Referer header is a 1990s typo that can never be fixed. Here is how it happened and which spelling to use in headers, HTML and JavaScript.
Map and WeakMap now have getOrInsert() and getOrInsertComputed(). Learn why the computed version should be your default and when it bites.
The Jerusalem virus was built to delete programs on Friday the 13th. A broken file check exposed it first, and its date check still has a lesson for web code.
A five-minute memory cleanup gets you better answers from Claude in every chat. Here's why I run it and the prompt I use, ready to copy and paste.
Every browser's user agent string is a pile of borrowed names left over from a 1990s fight over frames. Here's how to read one, and why feature detection beats it.
Safari 27 shipped async iteration for ReadableStream, so for await...of now works on a fetch response body in every major browser. Here is how to use it, plus the one behavior that surprises people.
Popovers, anchor positioning, scroll-driven animations and stylable selects now ship in real browsers. What each one replaces, the code to use, and where you still need a fallback.
An AI agent migrated my site, and every automated check came back green. Then I opened the page. What I check now when an agent writes front-end code.
Every post on this blog used to look like the same page to search engines and link previews. What moving to Eleventy fixed, and the bugs that showed up along the way.
Students remember what they use, not what they merely hear.
A pragmatic look at responding to breakpoints in JS—where it shines, and where pure CSS should stay in charge.
Understanding the box model in 2025 is still the fastest way to debug layout drift and build responsive cards with confidence.
A step-by-step playbook for shipping polished theme toggles that respect user preference and stay accessible.
How modern tooling and native nesting unlock maintainable, future-proof style layers without the preprocessor overhead.
No articles found for this tag yet. Try another filter.