- How important is this?
- How long will it take?
If I were smart, I'd plot the answers on a graph. I start doing the important stuff, beginning with whatever won't take too long. Then I've got a choice: either do the stuff that's not all that important, but won't take long—or do the stuff that will take quite a while, but is quite important. Finally, there's stuff that's not important and will take quite a while to do. I leave that to the end. If it never ends up getting done, it's not the end of the world.
I guess it's not really about estimation; it's more about prioritisation.
Anyway, I'm working on a fun little project right now—the website for one of Clearleft's many excellent events. There was one particular part of the design that I had estimated would take quite a while to do, so I didn't get around to it until today. It was a layout that I figured would take maybe half a day of wrangling CSS.
I used CSS grid and I was done in five minutes. That's not an exaggeration. It was literally five minutes.
I thought to myself, "Well, I want these elements to be arranged in two rows of three columns, but I want that particular one to always be in the last column of the top row."
Normally my next step would be to figure out how to translate those wishes into floats and clears, or maybe flexbox. But this time, there was almost no translation. I could more or less write the CSS like I would write English.
I want these elements to be arranged in rows of three columns.
display: grid; grid-template-columns: 1fr 1fr fr
I want that particular one to always be in the last column of the top row.
grid-row: 1; grid-column: 3;
That was it. I was done.
I think I may need to recalibrate the estimation part of my brain to account for just how powerful CSS grid is.
This was originally published on my own site.