8 min

Drawings and lists

Everyone answers grid or flexbox with one dimension against two, which is true and has never once helped me pick, so I've started asking a different question instead.

CSS
9 min

CSS Grid and the wrapper div

CSS Grid landed in Firefox and Chrome in the same week, and the first thing I did with it was break a layout with an empty wrapper div my hands typed on their own.

CSS HTML
9 min

Everyone was Susan

A full-page cache took the store's category pages from about 2 seconds to 300 ms and broke four things, and all four turned out to be one piece of the header being rendered in the wrong place.

Performance Ecommerce
6 min

content: "\00a0"

Why the most-used string in my stylesheets is an invisible one, how CSS escapes will silently eat the character after them, and the parts of the content property that aren't strings at all.

HTML CSS
7 min

Logic in templates

A category page was slow and it turned out to be six lines I had copied into a template months earlier, which is how I found out I'd been writing a language I kept telling people I don't write.

PHP Careers
6 min

Nobody prints anything

Except invoices, tickets, recipes, directions, order confirmations, and every page a client's accountant touches, and the stylesheet for all of that is about 40 lines nobody thinks to write.

CSS Freelancing
10 min

Picking the green on a call

A client spent most of a call deciding whether their green was too cold, and I spent that same call in DevTools changing the green one rule at a time.

CSS SCSS
8 min

Only mine was broken

A client's nav collapsed at the wrong width on my machine and nobody else's, and it took two days to find out that the four of us had four different copies of the same dependencies.

Tooling JavaScript
9 min

See email from Casey

The ugliest 40 lines in the store I took over are wrapped in a comment telling me not to change them, and the email that comment points at stopped existing years ago.

PHP Git