Our Best Practices Are Killing Us
Our Best Practices Are Killing Us via Slideshare
For years, we have been suffering with the myth that if we just tried harder, our CSS would stay clean. Each time we start a new project, we valiantly follow best practices and commit ourselves to writing beautiful code. Then, a few months into the project, we're once again faced with a mess. Maybe it was the contractor who committed crappy code? The project manager who would never give us time to refactor? The truth is that our best practices are killing us. In this talk, we will debunk the best-practice-myths that are making a mess out of our sites.
Nicole Sullivan @stubbornella
What are those flawed best practices?
- Classitis!
- Never add an non-semantic element
- Or, a non-semantic class
- Use descendant selectors exclusively
- Sites need to look exactly the same in every browser
There are a lot of points you can get from this slide. One point is that when I get around favoring ids over classes, I found it hard to override the CSS rules or selectors. Specifity becomes really hard to manage and on some point I'm relying so much on the !important derivative which is just the end of the game for overrides. I highly recommend front-end developers and web designers to read the slide and internalize the points it tries to convey.

Comments (1)