Clean Code Notes – Formatting

Notes from the book Clean Code

  • Vertical Formatting – Files should be 200 lines to 500 lines long. Smaller files are easier to read than the longer ones.
  • Have spaces between different sections of code, improves readability.
  • The vertical distance between closely related concepts should be less.
  • Caller function should be above callee function and vertical distance between both should be minimum.
  • Horizontal Formatting – length of each line should be small, proper indentation, spaces at right places.