Articles about code

Twilio Verify Rate Limiting

Buckets of fun with Twilio Verify API rate limiting for mobile verification requests.

Speed limit sign

Floating Point Arithmetic and Why It Makes Cents

With the current headlines being dominated by the collapse of the Silicon Valley Bank, it seems apt to share this recent coding mistake I made with floating point numbers.

A person in silhouette appears to be floating above the ground

Writing Code with AI Examples

Having a conversation with ChatGPT can be fun, but it will quite often tell you confidently something you know to be gibberish.

Screen with charts and numbers

Displaying Relative Time for a Static Site

Calculating relative dates in JavaScript to display on statically generated sites, including those built with Eleventy - like this one.

Watch face with complications showing the time

Getting Started with AI

Tips and Resources for AI Beginners.

A graphic depicting a network of blue dots connected by lines

Ruby-on-Rails Conditional Validation

How to apply validation in a Ruby-on-Rails model when you don't always want it.

Orange diamond sign featuring a black exclamation point

Ascii Banana

Programming a macro pad as a chorded keyboard for typing ascii characters.

Adding automatic dark mode to a website

Implementing dark mode in a website using css variables and prefers-color-scheme media query.

Eleventy social sharing cards

Adding meta tags to eleventy theme to provide open graph social sharing cards functionality.

Rich content previewing with open graph tags

Rebuilding with Eleventy

Rebuilding this personal site with a new static site generator.

Step Generator NPM Package

Generating a sequence of numbers.

Getting started with Test Driven Development

Explore the ideas of Test Driven Development and how it assists testing and code coverage.

Spelling in Vi

Adding spelling support to my vi configuration.

All articles