Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



I’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)


You mean an API than you can actually read and understand? How dare them take your 1970s 80-char display away from you!


You mean a methodNameThatOverlyExplainsEverythingEvenThoughTheContextMakesItClear()?


That sounds bad. Heh, you can define your own extension and rename that method.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: