code cleaning

I had a little problem with my App. One of the views just didn’t want to update when I wanted it to. That lead to moving a whole block of code into its own method (which I should have done in the first place). That gave me the opportunity to go back through one of my source code files to clean it all up. It was a good feeling to go back and get rid of all the little “this does not work right – maybe you need to try this…” comments. I probably cleaned out well over 200 lines of comments and code that I really didn’t need.

Oh, and yes, I did make a backup of my whole project before that – just in case I deleted something that wasn’t a comment. 🙂

I really need to look at a Source Code Management (SCM) product soon. They all seem to be a little complicated, but I have heard that git is pretty easy and it should be in the next Xcode, so maybe I will just use the old save-a-copy-of-the-whole-project method for a little longer.

This entry was posted in iPhone Development. Bookmark the permalink.

Leave a Reply