News for hackers. Stuff that matters.
Re:Annoyances of API Design by pavlov on Thursday January 28, 2016 @02:32PM (#10990568)
Since nobody uses Obj-C without Xcode, you actually never need to type out a long method name. Typically you'd just write "sha", Xcode will autocomplete the method, and you press Tab to fill out all those parameters. Seeing them all at once as part of the method name is pretty convenient.

I'm not saying that the method name in your example makes any sense, it's definitely insanely long... But the Apple API mentioned in the original post is OK in my books because it's a rarely used initializer for a low-level object. It essentially wraps a raw C pointer into an object, so of course it needs all that metadata about what the pointer is! Putting the same data in a struct wouldn't save any typing.

Re:Annoyances of API Design by wingerlang on Thursday January 28, 2016 @11:34PM (#10993519)
Sometimes I write it in Sublime. Although even then, I sometimes just write the method in Xcode to get the autocomplete then copy paste it, or just open the non-xcode-project file in xcode.
Re:Annoyances of API Design by girvo on Friday January 29, 2016 @10:02PM (#11000292)
> Since nobody uses Obj-C without Xcode

Hey now, I do! But I'm convinced that I'm subconsciously some kind of masochist, so that's probably not proving you wrong.

Re:Annoyances of API Design by dilap on Thursday January 28, 2016 @11:18PM (#10993468)
hey now, I edit objc in emacs all the time!
Re:Annoyances of API Design by hohenheim on Friday January 29, 2016 @07:29AM (#10994816)
I'm sorry but that sounds like a horrible excuse. Not only you are bound to a platform but also an IDE.