News for hackers. Stuff that matters.

sadawi

Re:Ask HN: Freelancer? Seeking freelancer? (August 2016) on Monday August 01, 2016 @03:01PM (#12204995)
SEEKING WORK (New York City + remote)

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 [email protected]
Re:It's Coming: The Great Swift API Transformation on Saturday January 30, 2016 @01:57PM (#11003169)
To me, something like your syntax makes sense when there isn't a clear hierarchy among selectorPart1, selectorPart2, selectorPart3, etc. However, in every case where a method can be thought of as having a single primary action that is refined by arguments, I believe the action(argument1:value1, argument2:value2) syntax makes more sense.

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?

Re:The Simple Proof of the Tetris Lamp on Sunday January 11, 2015 @01:19PM (#8870668)
Looks like the pieces are reversible, so the two L's and two S's are actually L, J, S, and Z.
Of course, it's only a failing strategy if adopting that strategy causes everyone to adopt the same strategy, which is very unlikely for most people.
Re:If you use Google+, you could become an ad next month on Friday October 11, 2013 @02:58PM (#6535155)
That's the way it should be. Otherwise, you'd be incentivized to leave (dishonestly) positive reviews.
One per year? Compared to cars, food poisoning, bathtubs, ladders, and almost anything else you can think of, that's close enough to zero to be a non-issue.
Ideally, I think the complete list of votes (with receipt confirmation numbers, but no names, obviously) would be available for inspection.
Sure, but there's a benefit to receipts: you can verify that your vote was counted correctly.
If the receipts are anonymous, they can't prove how you voted, only that you were able to obtain a receipt. So what if we increase the supply of receipts enough to destroy the value of an individual receipt? For example, voting machines could drop duplicate receipts in a bucket that voters have access to.
What you're buying isn't a vote, but a receipt. What if we could increase the supply of valid receipts enough to make them effectively worthless?

For example, voting machines could drop duplicate receipts into a bucket that voters are free to rummage around in.

I find that while a neighborhood filter gets the job done, its usability isn't great, for a number of reasons:

* 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.

Re:Introducing Word Lens, for Android on Friday July 06, 2012 @02:59PM (#4209148)
Or just show the subtitles after a short delay. Or show a word-by-word translation in realtime. Or both.
Re:What's rising faster than health care? College costs on Tuesday August 16, 2011 @07:14PM (#2893293)
Is lifetime earning to cost a useful metric, though? There are costs outside of college that won't scale with that ratio. Extreme example: a 1000:1 ratio isn't much good if your lifetime earning is $1000, and a 2:1 ratio could mean you come out ahead by a few million dollars.
Re:Parse (YC S11): A Heroku For Mobile Apps on Thursday August 04, 2011 @10:09PM (#2848698)
Using UDIDs for authentication isn't a good idea for a serious app. Even if it were unspoofable, devices aren't users. Users have iPhones and iPod Touches and iPads; they upgrade; they sell devices to other users.