Slashdot Mirror


Objective-C Use Falls Hard, Apple's Swift On the Rise (dice.com)

Nerval's Lobster writes: When Apple rolled out Swift last summer, it expected its new programming language to eventually replace Objective-C, which developers have used for years to build iOS and Mac OS X apps. Thanks to Apple's huge developer ecosystem (and equally massive footprint in the world of consumer devices), Swift quickly became one of the most buzzed-about programming languages, as cited by sites such as Stack Overflow. And now, according to new data from TIOBE Software, which keeps a regularly updated index of popular programming languages, Swift might be seriously cannibalizing Objective-C. On TIOBE's latest index, Objective-C is ranked fourteenth among programming languages, a considerable drop from its third-place spot in October 2014. Swift managed to climb from nineteenth to fifteenth during the same period. "Soon after Apple announced to switch from Objective-C to Swift, Objective-C went into free fall," read TIOBE's text accompanying the data. "This month Objective-C dropped out of the TIOBE index top 10." How soon until Swift eclipses Objective-C entirely?

7 of 161 comments (clear)

  1. Pretty quickly by SuperKendall · · Score: 5, Interesting

    Apple has done great job of interoperability with Objective-C, making it pretty easy to write new code or port small portions of an existing program...

    They've even gone so far as to add improvements to Objective-C which are nice, but whose primary reason for existing is that Objective-C code is even easier (and better typed) when accessed from Swift.

    At this point there's no reason not to do anything new in Objective-C, and port what you can when it makes sense.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Pretty quickly by Darinbob · · Score: 5, Interesting

      Objective-C though seemed relegated to a very tiny number of systems. Not as tiny as C# of course. Overall a lot of things start feeling like the 1970s all over again, with each major player having their own language, so choice of favorite language coincides with choice of favorite system. I much prefer cross-system languages.

    2. Re:Pretty quickly by SuperKendall · · Score: 5, Informative

      Well, Swift should be cross-platform pretty shortly since they are releasing it as open source (including standard libraries) in a month or two.

      Objective-C was more cross-platform than you might think, people have used it for server development in the past. Even now it's used for both really popular desktop and mobile apps, which a decent range.

      --
      "There is more worth loving than we have strength to love." - Brian Jay Stanley
  2. Huh? by grub · · Score: 5, Funny


    I just finished a Flash animation course at ITT. Am I too late to the game?

    --
    Trolling is a art,
  3. Dice spam by grimmjeeper · · Score: 5, Insightful

    Ah, yes. Dice "insights" stating the obvious long after everyone else figured it out.

  4. Consider all efficiencies by SuperKendall · · Score: 5, Interesting

    At this point the executables are about the same speed between Objective-C and Swift. In reality since anything even remotely heavy you'd be doing will probably use some library or frameworks like Accelerate it hardly matters.

    What does matter though is programmer efficiency, and Swift is pretty useful there. It eliminates a lot of boilerplate or repetitive code, which makes for cleaner looking code all around that is easier to maintain and understand what you were trying to do later.

    Lots of Swift educational materials have done a good job of keeping up with Swift but be aware it's still changing - make sure anything you look into covers at least Swift2.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  5. Re:More of an issue about how bad Objective-C is by Anonymous Coward · · Score: 5, Informative

    You realise that Apple already announced that the Swift compiler is going to be ported to linux and made open source, right?