I work on a hobby site, https://peepshowquot.es, which lets you search for your favourite quotes (in gif form) from Peep Show. Check it out! I use Netlify for hosting the site, as it’s free, fast, and has great CLI tooling and GitHub integrations. But I use AWS S3 for hosting the gifs, as there are… [Read More]
I was working on a Rails project today and came across this: I knew what a foreign key was, but I didn’t know the impact of the on_delete callback. Looking around the codebase, other options were used too: :nullify and :cascade. And several searches online didn’t help to explain what any of these actually did…. [Read More]
It’s standard practice to set a Cache-Control: max-age=31536000 on assets which are expected not to change, such as images. This header instructs the browser to cache the asset for 31536000 seconds, which is one year. Which raises two questions for me: Why a year? Why not ten years, or six months? Do we actually expect browsers… [Read More]
TLDR: you shouldn’t. But you can. Here’s how.
Avoid showing duplicate WordPress posts when you have multiple loops in the page. This is a really neat solution.
As a perfectionist, by definition, something is only ‘good enough’ if it is perfect. I really struggle to live with untested code, or shoddy code, or duplicated code. I come from a world where code can be beautiful, and code is the thing I have complete control over; something I understand and can make better through… [Read More]
Get maximum bang for your buck by testing in a smart way: follow the three-phase attack of Reconnaissance, Raid and Clearance.
Localised CSS is the only long-term, maintainable responsive development methodology for large-scale websites developed by multiple teams.