Is there any benefit to obsession with making code "look pretty"?

Posted by TaylorOtwell on Programmers See other posts from Programmers or by TaylorOtwell
Published on 2011-07-08T15:07:52Z Indexed on 2012/09/01 15:48 UTC
Read the original article Hit count: 232

Filed under:

Sometimes I spend ridiculous amounts of time (hours) agonizing over making code "look pretty". I mean making things look symmetrical. I will actually rapidly scroll through an entire class to see if anything jumps out as not looking "pretty" or "clean".

Am I wasting my time? Is there any value in this kind of behavior? Sometimes the functionality or design of the code won't even change, I'll just re-structure it so it looks nicer.

Am I just being totally OCD or is there some benefit hidden in this?

© Programmers or respective owner

Related posts about clean-code