Live data from Hacker News

Ask HN: How many of you Apple developers still use Objective C?

news.ycombinator.com

31–40 of 160 posts

Re: Ask HN: How many of you Apple developers still use Objective C?

#31
post #10

Still using it when updating my apps written pre swift but 100% Swift now (not SwiftUI though) https://www.appblit.com/

SwiftUI is so awful. The poor performance and general clunkiness of the macOS "System Settings" app should be a warning against using it to anyone.

Re: Ask HN: How many of you Apple developers still use Objective C?

#32
post #17

I use Objective-C exclusively (no Swift) in my App Store apps. I 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 bug…

You’ll have an increasingly harder time adopting new Swift-only APIs For example OCR - you can use the old low quality Vision API but the new ImageAnalyzer can’t be accessed via ObjC and requires custom bridging. More and more new APIs will be Swift exclusive

I'll cross that bridge when I come to it.

Re: Ask HN: How many of you Apple developers still use Objective C?

#33
I don't, but know many that do. I'll bet almost all AAA apps are still ObjC, and I know that Apple still uses it, in-house, for a lot of their stuff.

I write my Apple stuff exclusively in Swift, and don't bridge to C. I have been doing that, since 2014. Before that, I wrote in ObjC.

I still use UIKit/AppKit/WatchKit for my shipping apps, though. I do not believe that SwiftUI is ready yet, for the scope of my work (I just tried again, this week, and it's still a nope).

Re: Ask HN: How many of you Apple developers still use Objective C?

#35
I've given up on Apple platform development, but I strongly prefer Objective-C over Swift for a variety of reasons, including elegance, compatibility, stability, etc.

It's important to note that there's still tons of Objective-C written inside Apple to this day, perhaps more than Swift.

What Apple pushes as what you should be using is often not what they are using internally, FWIW. Third-party developers are its true beta testers.

Re: Ask HN: How many of you Apple developers still use Objective C?

#36
My codebase contains a lot of Objective-C but I'm slowly replacing it with Swift. I rarely write Objective-C (largely because it's so easy to introduce bugs with release/retain shenanigans) unless I really have to. Interoperability between the languages does work but is fragile, with Xcode often getting into a chicken-and-egg state where a compilation error in Swift prevents the Objective-C from compiling, and vice versa, stuffing the interface with errors that can make it hard to discover where the problem is.

(edit: typo)

Re: Ask HN: How many of you Apple developers still use Objective C?

#37
post #17

I use Objective-C exclusively (no Swift) in my App Store apps. I 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 bug…

> C interoperablity, while it exists in Swift, can be very painful

Interesting, that hasn't been my experience. I'm curious, what have you ran into that was painful?

Re: Ask HN: How many of you Apple developers still use Objective C?

#38
I work on an app that pre-dates Swift by a year. At this point I'd say about 60-70% of the app is in Swift but there's still large chunks of core functionality that's obj-c. It's mostly stable though and we don't work in that part of the codebase very regularly. It's been a few years since we made any noteworthy modifications to it.

My previous job was all Obj-C at a fairly large and well known company. When I left in 2019 they were beginning to experiment with adding Swift.

I started coding iOS apps around version 5 which was right before the addition of ARC. I've grown to miss the simplicity of Obj-C and have a love/hate relationship with Swift but likely in a few years there won't be much of it left except at big companies who have very old apps.

Re: Ask HN: How many of you Apple developers still use Objective C?

#39
I'm comfortable in C, C++, ObjC, and Swift. I like Swift, but I'm not going to contort myself to use it exclusively.

I have some stuff that has zero Swift and likely never will. Most other things are a mix.

If I'm writing any ObjC code in a new app today it's probably because either I'm working with some funky low-level API designed for C, my Swift code triggered some kind of compiler bug, or I got pissed off at the way Swift mangles the AppKit or UIKit APIs. Otherwise, I'm probably using Swift for most other things.

Post reply on HN