Benjamin Lu

everyday is cool

35

Thirty-five feels like a good time to ask myself what I mean when I say I’m busy. Sometimes I really do have too much to do. Other times I’ve given the whole day away in little pieces and haven’t thought much about where they went. By evening, I can remember … Continue reading →

Reading an Application Log Backward

Retrospective web development exercise for the 2018 archive. When a request fails, note the URL, the time, and what the browser showed. Find the matching line in the web server’s access log, then look for an application error near the same time. Keeping the request in view makes it easier … Continue reading →

2017: Looking Back

Written retrospectively for the 2017 archive. “Room at the Table” makes me think about the moment when someone pulls up another chair and everybody shifts a little to make space. It’s an ordinary gesture, which is part of why I like it. Looking back at this year’s archive, I want … Continue reading →

Room at the Table

Push another chair up to the table. It doesn’t have to match. Someone can move the water glass, someone can bring another plate. There’s a little confusion when everyone sits down at once. Who has the spoon? Who was in the middle of a story? By the time we pass … Continue reading →

A Layout with CSS Grid

Retrospective web development exercise for the 2017 archive. Take a page with an article and a short list of related links. Wrap them in one container and try grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) on a grid with a gap. Make the layout one column at a narrow width. Put a … Continue reading →

The Person in Front of Me

Look not every man on his own things, but every man also on the things of others. — Philippians 2:4 (KJV) When I have a plan for the day, I can start treating every interruption as something to get past. Somebody else’s question arrives while I’m trying to finish my … Continue reading →

2016: Looking Back

Written retrospectively for the 2016 archive. I like work that leaves a clear trail. If I move an old page, I want someone with a saved link to be able to find it. If I change a setting, I want the next person to see where the change happened. That … Continue reading →

Testing a Redirect Without Guessing

Retrospective web development exercise for the 2016 archive. A redirect is easy to test in a browser, but the browser can hide the intermediate response. Ask for the old URL with curl -sS -D - -o /dev/null and look at the status and Location header. Then request the destination separately. … Continue reading →

2015: Looking Back

Written retrospectively for the 2015 archive. A setting can seem obvious when I’ve spent all week working on the code behind it. Someone opening the settings page for the first time has a label and maybe a line of help text. They have to decide what to do with just … Continue reading →

Keeping Development Settings Out of the Repository

Retrospective web development exercise for the 2015 archive. A project often needs two sets of values even when it has only one developer. The local database and the hosted database have different addresses and credentials. Keep a sample configuration with placeholder names and put real values in an environment-specific file … Continue reading →