I would wager a good number of developers don’t feel their code is 100% “clean and tidy,” so you might enjoy Harry Roberts sharing his thoughts on the matter. It seems like a superficial thing to worry about, but Harry sees clean code as “a litmus test for more general approaches and attitudes” of the company or developer. Harry provides some examples and quick tips:
- Use as much whitespace as you like to open your code up and let it breathe.
- Comment more.
- Turn on invisibles in your editor to see and clean up trailing spaces.
- Automate things – configure your editor or apps to detect issues or create templates.