5,695 reputation
2533
bio website monkey-robot.com
location San Francisco, CA
age 29
visits member for 4 years, 3 months
seen Dec 13 at 23:10

Just some guy, y'know?

I'm writing a book on Objective-C. Or rather, I was. Thanks to Apple, I'm now writing a book on Swift.


Sep
9
awarded  Yearling
Aug
29
awarded  Good Answer
Aug
25
awarded  Necromancer
Aug
21
awarded  Nice Answer
May
9
comment Objective-C style: Do I implement factory methods or init methods?
The first isn't really a factory method per se; it's just a convenience method for combining an init with an autorelease.
Feb
13
comment Is there a name for the 'break n' construct?
@MichaelT: Python doesn't have a labelled break statement.
Feb
8
awarded  Nice Answer
Nov
13
awarded  Good Answer
Sep
9
awarded  Yearling
Feb
25
awarded  Constituent
Feb
18
awarded  Caucus
Dec
5
comment When should one use “out” parameters?
The method does have a value to flag failure—nil—but the NSError object provides more specific information on why an error occurred.
Dec
5
comment When should one use “out” parameters?
@rmaddy: It's worth noting that the decision to use error objects over exceptions dates back to the NeXTSTEP days, when exception handling wasn't standard and was fairly expensive.
Dec
4
comment Why was Objective-C popularity so sudden on TIOBE index?
Generics aren't really that necessary for Objective-C, since it's dynamically typed. I guess one's like or dislike of Objective-C stems from one's background; Objective-C was one of the first languages I learned, and I love it—I think the marriage of C and Smalltalk is lovely.
Dec
4
comment Why was Objective-C popularity so sudden on TIOBE index?
@James: The frameworks on which OS X (and, to a degree, iOS) are based come from NeXTSTEP, which used Objective-C. Language choice was not as cut and dried back in the 80s. (And on a personal note, I'm glad; Objective-C is much nicer than Java or C++. :) )
Nov
24
comment Is “Computer Science != Software Engineering” an excuse to teach programming poorly?
@alan2here: I'm not being snotty, just pointing out that in college, it's important for students to spend time learning on their own (not just in classes). Students aren't going to get such a block of time (and the easy access to resources to do so) at other times in life.
Nov
15
awarded  Nice Answer
Nov
14
comment Objective C style nil in java?
@user470365: In such cases, the equivalent of "0" for that primitive type is returned (i.e., "NO", "0", "0.0", etc.).
Oct
29
awarded  Nice Answer
Oct
10
awarded  Guru