Writing Code

From rootshell wiki

(Difference between revisions)
Jump to: navigation, search
(Clean Code)
Line 2: Line 2:
Some common practices are mentioned here, for detailed information please refer to naming and memory management sessions.
Some common practices are mentioned here, for detailed information please refer to naming and memory management sessions.
 +
 +
{{SuperMonkoHeader}}
 +
Some common practices are mentioned here, for detailed information please refer to [http://www.rootshell.ir/wiki/Naming naming] and [[memory management]] sessions.
== Clean Code ==
== Clean Code ==
Line 7: Line 10:
To make code more managed and human readable, please group related methods with #pragma mark dialect. For example put all interface builder methods in .m files under the following lines:
To make code more managed and human readable, please group related methods with #pragma mark dialect. For example put all interface builder methods in .m files under the following lines:
-
<nowiki>#pragma mark -
+
<nowiki>#pragma mark - </nowiki><br />
-
#pragma mark IBAction methods</nowiki>
+
<nowiki>#pragma mark IBAction methods </nowiki>
{{SuperMonkoFooter}}
{{SuperMonkoFooter}}

Revision as of 21:22, 6 August 2010

Development

Index

This page belongs to Turned On Ventures Guideline Series.

Some common practices are mentioned here, for detailed information please refer to naming and memory management sessions.


Development

Index

This page belongs to Turned On Ventures Guideline Series.

Some common practices are mentioned here, for detailed information please refer to naming and memory management sessions.

Clean Code

To make code more managed and human readable, please group related methods with #pragma mark dialect. For example put all interface builder methods in .m files under the following lines:

#pragma mark -
#pragma mark IBAction methods




HierarchyPrevious.gif Programming


Copyright Turned On Ventures 2010, turnedonventures.com

Personal tools