Category Archives: Code Beauty

Code is the uglification of beautiful algorithms. Transparent code lets the inner beauty shine through.

CSS vs Tables: You’re Doing It Wrong

Definitions first.

Table

A specified set of columns and rows with cells that automatically and fairly smartly expand to fit their contents; cells can span rows or columns; the table as a whole can be treated as one block, and cells can contain tables. A table is a metaphor for visually laying out 2-dimensional content.

CSS

cascading style sheets; …Read More

The Haiku OOO Email

When I started at Yahoo on the Games team, there was a custom that resonated deeply with me, which was started by Dean Yu.

All “work from home” emails or “out of office” emails had to be sent in the form of a haiku. This rule was not enforced, but it’s the kind of thing …Read More

Going Fast, Frankenstein, and Refactoring

Very soon now, the project that has consumed my days for the last 6 months will go into public beta. It’s too early to pop the champagne, and that’s not what this post is about. However, the newness of this project is worth pointing out for the following reason: We’re already planning a fairly major refactoring effort to take care of a lot of code rot that has crept into the designs.

That’s right. We haven’t released anything, and there’s already enough bloat to justify spending at least 2 weeks cleaning it up. …Read More

Cross Browser Support for inline-block Styling

Inline-block layout solves a lot of problems. It lets you do some cool stuff previously thought impossible with CSS. It makes vertical alignment work properly. And sadly, it’s supported pretty badly. I learned a new approach from one of the best insane inventor webdevs I know. The pieces have been out there for some time, it seems, but I hadn’t ever seen this spelled out as simply and elegantly as he did it. …Read More

Required reading for web developers: The Fountainhead by Ayn Rand

Some 50 years before the Internet was even a spark in TBL’s eye, Ayn Rand managed to capture the timeless essence of a web developer in the character of Howard Roark. Every web developer needs to read this book. …Read More

Squish it good - Code compression for the masses

Labor Day came and I completely forgot that it would mean no Monday morning for writing a post. Hope you all had great beer and burgers, or whatever you were doing.

In the meantime, I’d like to mention something cool. Julien LeComte has released his YUI Compressor that includes a CSS minification script that …Read More