Hacker News new | ask | show | jobs
by abkumar 2818 days ago
I wonder when this picture was taken. The iPhone design in the simulator, the old Gmail favicon, the old OS X scrollbars all indicate this being several years old.

Wouldn't be surprised if this code has been rewritten multiple times since.

4 comments

Let's see - the Simulator is running, at the latest, iOS 6. As such it was probably taken before iOS 7 GM (September 18, 2013). Based on the scroll tracks on Xcode, it also looks like it was running Snow Leopard; Lion was released in Mid-2011, so maybe even earlier.

Between iOS and macOS, and given the acquisition was in 2012, I'd imagine these photos were taken around then.

Their code is using manual reference counting so it must have been taken before ARC was introduced on WWDC 2011.
Not necessarily; for the same reason many companies haven't jumped on Swift (specifically, not wanting to run all your hundreds of thousands of lines of code through a potentially buggy translator all the time), people didn't immediately jump onto ARC either. If I recall, that migration was far from painless. I remember some serious regressions introduced when I bit that bullet. Since all your code changed at once, tracking it down was hardly entertaining. IMO could have been anywhere from 2012 to 2013...

This code also appears not to be using automatically synthesized properties. On the left screen, they're directly accessing Ivars and their Ivars have trailing underscores rather than leading (the default when synthesized). I suppose they could be doing this anyways, though it wouldn't exactly be standard industry practice.

On the right Xcode screen, though, the code does use property syntax, so potentially ARC, although one doesn't imply the other.

ASIHTTPRequest? Yep, this is ancient.
not to mention the hipstamatic'esq picture