I'm Carter.

An enjoyer of simple things.

CARTER_RULES.md

#style #programming #css

Last updated: 2025-08-04.

Like a .cursor/rules.md or CLAUDE.md file, but for me.

I thought it might an interesting meditation to try and figure out what rules I personally follow when writing code. This is a strong opinions, loosely held approach to things—I’ll do what I think is best, but I’m pretty easily convinced to pick something else, especially if you seem like you care. I don’t know—Convince me there’s a better approach 😜.

// ❌ bad
function foo(bar) {
  if (bar) {
    // blah blah blah
    // blah blah blah
    // blah blah blah
  }
  return true;
}

// ✅ good
function foo(bar) {
  if (!bar) return true;
  // blah blah blah
  // blah blah blah
}