Developer Commandments
These programming principles apply to CSS too.
1. DRY (Don't Repeat Yourself)
" Don't repeat yourself " . If you see the same set of styles (e.g., shadows and rounded corners) repeated across 10 elements — extract it to a common variable or utility class.
2. KISS (Keep It Simple, Stupid)
" Keep it simple " . Don't use complex hacks if the task can be solved with a basic property. Understandable code is better than " smart " code.
Quote: Code is read 10 times more often than it's written. Think about your colleagues (or yourself in a month) when naming classes.