- Styles aren't modular
- Confused content and container
- Not re-using styles
- Changing too much
- No naming convention
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Foo { | |
| public function __construct($name) { | |
| $this->name = $name; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| &, | |
| &:after, | |
| &:before { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } |
Or "Everything you know about JavaScript is wrong."
jQuery Validate massively simplifies form validation. It's very extensible and will handle almost every situtation in which you can find yourself. But, if you're not careful, it can become an horrific plugin on a large site.
Without thinking, the errorPlacement function can end up looking like this:
Or "Everything you know about CSS is wrong."
First thing to learn: classitis is bollocks! Giving elements multiple class names makes coding a lot easier!
Although a better description is on Smashing Magazine and Vanseo Design.
NewerOlder