sadawi
Joined 17 years ago
Karma
23
Submissions
14
Member since
Oct 9
Joined 17 years ago
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?
For example, voting machines could drop duplicate receipts into a bucket that voters are free to rummage around in.
* 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.
iOS developer (Objective-C and Swift) for the past 7 years, with full-stack and startup experience (mostly Ruby on Rails)
Recent projects:
Say hi! I'm [email protected]