Changes

Jump to: navigation, search

Commenting Objective-C Code

60 bytes added, 18:48, 24 November 2009
no edit summary
<hr>
<google>BUY_OBJC</google>
There is an old saying amongst veteran programmers that goes something like "Don't comment bad code, re-write it!". Before exploring what these seasoned programmers are really saying, it is important to understand what comments are and why we should use them.
Commenting is considered to be good practice. Regardless of how well you understand the logic of some Objective-C, there is a good chance you may one day have to return to that code and modify it. Often this can be months, or even years later and what seemed obvious to you at the time you wrote it may seem less obvious in the future. Also, it is often likely that some other person will have to work on your code in the future. For both these reasons it is a good idea to provide at least some basic amount of commenting in your code.
 
<google>BUY_OBJC_BOTTOM</google>
<hr>

Navigation menu