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?
Is there any benefit to obsession with making code look pretty?
clean code
Use an auto-formatter. If you really are spending that much time manually editting the code, I would be willing to guess you are not very challenged/bored, because there is absolutely no reason for it. Ctrl+K, Cntrl+D in VS will format an entire document. You can use something like Style Cop if you want something a bit more heavyweight. It is good to have pride in your code, but not when it comes at the expense of being smart (looking for the most efficient solution. In this case, using a tool to automate a tedious process) and getting things done (what else could you have worked on during those hours?).