Don't build ahead
The best code might be the code you didn't write.
Don't add flexibility, abstractions, or features just in case. Complexity you add today is complexity you maintain forever.
by Ben Howard

by Kahlil Gibran
Practical notes that capture a fix, a shortcut, or a spark of clarity.
The best code might be the code you didn't write.
Don't add flexibility, abstractions, or features just in case. Complexity you add today is complexity you maintain forever.
Use Sanity’s data attributes for small CSS overrides instead of relying on generated class names.
Coffee at night feels productive, but it’s a loan with interest. You finish tonight by dulling tomorrow’s best thinking. Choose which day gets the good brain.
Shiny tools feel helpful until they slow you down. Did it save time, sharpen focus, or ship work? Keep it. If not, archive it and try again later.
Sanity ships with features most projects don’t need. Add this to the config:
Pure black + pure white = instant inversion.
#fffffe instead of #ffffff#000001 instead of #000000When digging through a huge open-source repo, inspect the DOM for data-* attributes (like data-testid or data-test). They’re often breadcrumbs from the UI straight to the relevant component in the codebase.
[data-testid='field-groups'] + [data-testid^='field-'] {
margin-top: -1rem;
}announcements: { enabled: false },
scheduledPublishing: { enabled: false },
tasks: { enabled: false },
releases: { enabled: false },
document: { comments: { enabled: false } },