🐿️
4

Spent 4 hours fixing a typo that broke my whole landing page

I was working on my first personal project site last Tuesday at a coffee shop in Denver, and the CSS grid just would not align no matter what I tried. Turned out I had typed 'grid-tempalte-columns' instead of 'grid-template-columns' in the stylesheet. Has anyone else burned hours tracking down a single wrong letter in their code?
2 comments

Log in to join the discussion

Log In
2 Comments
riverwhite
That's just called coding, not a bug.
9
the_henry
the_henry2d ago
My record is 3 hours on a missing closing bracket in a JavaScript function. The validator didn't even catch it because the structure was technically valid, just totally wrong behavior. I started checking from the top line by line and felt ridiculous when I found it. What finally helped me was keeping a plain text scratchpad nearby to copy blocks into and check for mismatches. Sometimes you just gotta brute force it with old school methods.
6