Ask HN: How many of you Apple developers still use Objective C?
11–20 of 160 posts
Re: Ask HN: How many of you Apple developers still use Objective C?
#12Re: Ask HN: How many of you Apple developers still use Objective C?
#13Re: Ask HN: How many of you Apple developers still use Objective C?
#14Method swizzling is also an important tool for any aspiring macOS developer, unavailable/onerously painful in Swift.
All in all, I don't think there's anything wrong with continuing to write new things in modern Obj-C as long as you're conscious of the tradeoffs and interoperability is a concern.
Re: Ask HN: How many of you Apple developers still use Objective C?
#15I am an iOS developer and I haven't used ObjC in over five years. There probably isn't any reason to start a new app or library with anything other than Swift. So it's just going to depend on the legacy code base.
Interoperability between Swift and ObjC works really well for the most part, so I tend to write any new files/modules in Swift, and older apps end up being a hybrid of both. I rarely see justification in rewriting existing ObjC code in Swift unless the code needs a rewrite anyway.
Re: Ask HN: How many of you Apple developers still use Objective C?
#16Re: Ask HN: How many of you Apple developers still use Objective C?
#17I wrote a Swift app for a hobby/free project a few years ago and regretted it. They changed the language and deprecated some of my code, which isn't easily replaceable without a significant rewrite. The project now compiles only in Swift 4 and will die when Swift 4 support is removed from Xcode.
I see no reason to use Swift. The compiler is slower and buggier. The debugger is slower and buggier. C interoperablity, while it exists in Swift, can be very painful. And I don't actually ship any bugs that Swift could have theoretically saved me from. I see no gain in switching.
People have been telling me since 2014 that every line of code I write in Objective-C is "technical debt". I continue to laugh at them and ask them to compile Swift code they wrote in 2014.
Of course if I had to get a job, it would be a different story, but I own my company, so I can do whatever I want.
Re: Ask HN: How many of you Apple developers still use Objective C?
#18Still have some in work projects, as they're old, but gradually moving on to Swift whatever we can. Though in the FAANG world - Objective C reigns supreme