Skip to main content

Blog

This is page 13 of 30.

  1. Using Git restore to discard changes within a file

    Article posted 11th May 2021 in Development and Git

    git restore is great, and one of its superpowers is its patch mode where we can restore parts of a file, rather than the whole file at once.

  2. Undelete a file with Git

    Article posted 10th May 2021 in Development and Git

    I’ve talked about how great git restore is, but I missed a really obvious use of git restore: restoring a deleted file!

  3. Be careful with strikethrough

    Article posted 20th April 2021 in Accessibility, Development and HTML

    Struck-through text isn’t read by screen readers. This is true of all text-level semantics, but it’s worth drawing attention to strikethough.

  4. The difference between strikethrough and del

    Article posted 14th April 2021 in Development and HTML

    Just like <em> and <i>, and <strong> and <b>, the distinction between <s> and <del> is subtle, but it’s worth knowing.

  5. Git restore to discard changes

    Article posted 13th April 2021 in Development and Git

    I no longer use git checkout to switch branches; I’ve also stopped using it to discard uncommitted changes: let me introduce git restore!

  6. Using Git switch to change branches

    Article posted 12th April 2021 in Development and Git

    Since upgrading to macOS Big Sur, I’ve noticed that git switch works. But why do we need it when we’ve got git checkout?

  7. Cleaner focus outlines with box-decoration-break

    Article posted 8th April 2021 in CSS

    When I changed my site’s form and button focus styles, links felt a bit left out. But discovering box-decoration-break has made things consistent.

  8. Bold and italics aren’t read by screen readers

    Article posted 2nd April 2021 in Accessibility

    Emphasis and other text-level semantics are normally ignored by screen readers, so it you’re relying on them for meaning you could be in trouble.

  9. Sentence case versus title case

    Article posted 31st March 2021 in Accessibility and Design

    I’m a fan of good typography, and something I come across a fair bit is whether sentence case or title case is better for headings.

  10. Reset to a previous commit

    Article posted 29th March 2021 in Development and Git

    Have you ever made a bunch of commits on the wrong branch? I certainly have… Luckily, there’s an easy way to put things right.