The process of revising your code to indent it to reperesent the logical structure of the program, is really a lot more useful than making it look pretty. Whilst doing it you find things that you can make more efficent, decide to move things for the sake of order, spot errors, check if your naming convetions is coherent, etc.
Revising your code is essential. "Code and forget" doesn't work. When working you need to constantly revisit your code to make sure that everything is on track. Keeping your indenting in nice shape is part of this process. It's not time wasted, I promise.
Professionally I develop (mostly) using MS VS.NET. It has auto-indenting support, bút I still do most of my indenting by hand. It find it helps me think.
Poor code-indenting habits also suggest that you've never worked as part of a team, where some one else needs to use your code. Try leaving un-indented code to a colleague and see what happens. Don't be surprised if you're not invited to the christmas party...
My 0.02$
//PetBom
Revising your code is essential. "Code and forget" doesn't work. When working you need to constantly revisit your code to make sure that everything is on track. Keeping your indenting in nice shape is part of this process. It's not time wasted, I promise.
Professionally I develop (mostly) using MS VS.NET. It has auto-indenting support, bút I still do most of my indenting by hand. It find it helps me think.
Poor code-indenting habits also suggest that you've never worked as part of a team, where some one else needs to use your code. Try leaving un-indented code to a colleague and see what happens. Don't be surprised if you're not invited to the christmas party...
My 0.02$
//PetBom