4 ms·
I'm reading the manual and liking nearly everything. But then I stumble across: > Alternatively, remove a key-value pair from a dictionary with the removeValue
by andybak 12y ago
I'm reading the manual and liking nearly everything. But then I stumble across:
> Alternatively, remove a key-value pair from a dictionary with the removeValueForKey method.
Is that the day where an Objective-C got to choose method names? Why not dict.delete() or similar?
- julian_t 12y agoI’m with you, and that’s one thing I really don’t appreciate about Obj-C and Apple APIs. You find yourself looking at classes with names like UICollectionViewDelegateFlowLayout and methods called minimumLineSpacingForSectiontAtIndex. I’m not a one-character variable name type of person, but this makes my fingers (and my brain) ache, and for me makes the code harder to comprehend (wood for the trees, I guess, or something like that)
- msie 12y agoThat sounds bad. Heh, you can define your own extension and rename that method.
- taharvey 12y agoYou mean an API than you can actually read and understand? How dare them take your 1970s 80-char display away from you!
- andybak 12y agoYou mean a methodNameThatOverlyExplainsEverythingEvenThoughTheContextMakesItClear()?