I am honestly surprised that "new line" is winning! I'm a same line kind of guy all the way!
I've taken my styling queues from apple's own code base, (which in hindsight seems to go back and forth) and from my several books.
So I decided to look through some favored books.
My first fully read programming book, and still my favorite for beginners.
Learn C on the Mac (Mark) -- uses same line!
Programming in Objective-C 2.0 (Kochan) -- uses new line for method's and same line for control structures like for's and if's
Cocoa Programming for Mac OSX (Hillegass) -- uses new lines for methods and same line for control structures.
So once again... still shocked that "new line" is winning. It just seems like so much open wasted space.
I've taken my styling queues from apple's own code base, (which in hindsight seems to go back and forth) and from my several books.
So I decided to look through some favored books.
My first fully read programming book, and still my favorite for beginners.
Learn C on the Mac (Mark) -- uses same line!
Programming in Objective-C 2.0 (Kochan) -- uses new line for method's and same line for control structures like for's and if's
Cocoa Programming for Mac OSX (Hillegass) -- uses new lines for methods and same line for control structures.
So once again... still shocked that "new line" is winning. It just seems like so much open wasted space.