Chapter 6

Formatting Standards

Production code should be designed for shared use and maintainability. A significant contributor is establishment of, and adherence to, formatting standards. Standards should define use of whitespace and formatting of comments. Nicolas Gallagher’s Idiomatic CSS is an excellent set of CSS formatting standards. Tools exist that will automate formatting to a large degree.

Keywords

formatting; standards; style; comments; CSS; type; author; whitespace; Idiomatic CSS; declaration order; tools; diff

I guess I don’t need to convince you of the importance of designing things well. But let me impress upon you the need to apply the same meticulous care and attention to detail in your code that you do in anything you’d design. ...

Get Bridging UX and Web Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.