Blog Conventions

No Comments

This is like an introduction to understand this blog’s types of text better:

Types of Text:

//Comments
if([postText isSourceCode]){
}
"Strings"
$ [Terminal Input]

How I write code

This are the “rules” I follow when writing code:

1
2
3
4
5
6
7
8
//Camel-cased object names, no spaces before '['.
UILabel *myLabel = [[UILabel alloc] init];
if(condition){ //Brackets in the same line
/*if there are a lot of things nested, sometimes I comment
after the bracket to know what it closes, also in special
ocations like class/interface declarations*/

} //if
rect = CGRectMake(0.0f, 0.0f, 320.0f, 460.0f); //Spaces after comas, but not before.

Terms

iDevice – With this I refer to the iPod Touch or iPhone, whichever you are using

I’ll add more as I need them.