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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.