10

What are y’all thoughts regarding whitespace, I have a coworker that uses an absurd amount of white space between functions, declaration sections... declarations and logic within functions.... and makes everything very complex without refactoring we talking like 5+ if else inceptions deep.
His code always works never has a issues, but when we collaborate or I work on his files, I wanna cry lol ... he claims the whitespace helps with reading and focusing etc ... “compiler removes whitespace” yes I know that but this is beyond 1 or two new lines lol

Comments
  • 2
    I'm so sorry. If I were he I'll hate my self. 😖
  • 2
    Depending on which system you're working, notepad++ for example enables you to use python scripts. You could just write a script which (temporarily) removes all unnecessary newlines..
  • 0
    Vertical whitespace is important but only because readability is importanter. Too much of the former and you lose the latter.

    Also look up these two things:
    - The term "arrow head programming"
    - The book "Clean Coder" by Robert Martin (aka Uncle Bob) This book is my Bible.
Add Comment