23 karma · joined Oct 9, 2009 (17y ago) · 14 submissions
comment 10y ago · link · parent
iOS developer (Objective-C and Swift) for the past 7 years, with full-stack and startup experience (mostly Ruby on Rails)
Recent projects:
* built all of the NexTravel (YC 15) iOS app (https://itunes.apple.com/us/app/nextravel/id1098361345)
* worked on the Wink home automation iOS/watchOS app (https://itunes.apple.com/us/app/wink-smart-home/id719287124)
Say hi! I'm samuelwilliams+hn@gmail.comcomment 10y ago · link · parent
I wouldn't want to see, for example:
collectionView.(dequeueReusableCellWithReuseIdentifier:identifier, forIndexPath: indexPath)
because that obscures the primary purpose of the method, which is to dequeue a cell. To me, this is preferable: collectionView.dequeueReusableCell(reuseIdentifier: "ImageCell", îndexPath: indexPath)
The long first component of the Objective C selector ("dequeueReusableCellWithReuseIdentifier") is just an artifact of ObjC's lack of distinction between method names and parameter names, which forces the API creator to use words like "With" to accomplish what Swift can do natively.What are some examples of methods you think make more sense with your syntax?
comment 14y ago · link · parent
comment 14y ago · link · parent
* You have to roughly know the boundaries of all the neighborhoods for the list of names to be useful
* A one-dimensional arrangement of names doesn't correspond well to the 2D relationships you probably care about.
* Many neighborhoods don't map well to regions I care about. I often find myself selecting Bernal Heights, Mission District, and Noe Valley to capture the idea of "the area around 24th and Valencia", for example.
comment 15y ago · link · parent