Getting modern with coding style. What are the modern-day, best ideas for writing clean code? Especially the ideas beyond the style of the code itself – i.e. beyond indentation, spaces, tabs, curly-bracket placement, etc. It’s easy to observe the commonly overwhelming “best” practices for the simple style elements of indentation and curly-bracket placement. I’d like to look a little deeper and define some more code-style expectations. Partly to implement for current developers, but also to expect to see in developer interviews.
Answers to this Quora question have some good insights.
Rejected by Google for bad coding style. What should I do next time? - Quora
This google style guide (Style guides for Google-originated open-source projects) appears to mostly be about code layout and visual style. That’s a start, but I’m looking for more.
See also the links to 3 books on Amazon:
- The Clean Coder: A Code of Conduct for Professional Programmers (Robert C. Martin Series): Robert C. Martin: 0076092046981: Amazon.com: Books
- Refactoring: Improving the Design of Existing Code: Martin Fowler, Kent Beck, John Brant, William Opdyke, Don Roberts, Erich Gamma: 9780201485677: Amazon.com: Books
- Clean Code: A Handbook of Agile Software Craftsmanship: Robert C. Martin: 9780132350884: Amazon.com: Books