Swift will change the world

Discussion in 'iOS 8' started by msavwah, Jun 2, 2014.

  1. msavwah macrumors 6502

    Joined:
    Apr 5, 2010
    Location:
    Oahu
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    A proprietary single platform new programming language?

    What about all those developers who write for other platforms - they're not about to embrace this which will make providing apps for those platforms impossible.
     
  3. Paradoxally macrumors 65816

    Joined:
    Feb 4, 2011
    #3
    Now if only Google would use that instead of Java...
     
  4. Tubamajuba macrumors 68000

    Joined:
    Jun 8, 2011
    #4
    Swift will be a really nifty feature for developers that choose to use it, and will make a big impact. But I don't expect Objective-C to go away anytime soon.
     
  5. Michaelgtrusa macrumors 604

    Michaelgtrusa

    Joined:
    Oct 13, 2008
    Location:
    Everywhere And Nowhere
  6. Paradoxally macrumors 65816

    Joined:
    Feb 4, 2011
    #6
    Swift will likely be much more optimized than Obj-C on the same hardware. Apple changed to LLVM for a reason. It pays off in the long run.
     
  7. Rudy69 macrumors 6502a

    Rudy69

    Joined:
    Mar 30, 2009
    #7
    I think it will change the iOS/OSX programming world, but outside of that the impact will be very limited
     
  8. NotAdvisable macrumors regular

    NotAdvisable

    Joined:
    Nov 16, 2011
    Location:
    Perth, Australia
    #8
    Who cares?

    It works alongside Obj-C and C.
    It's easy as piss to code.
    It looks amazing.
    Education will pick this right up.
    Developers will be able to rapidly develop using more extensive features.
     
  9. Tubamajuba macrumors 68000

    Joined:
    Jun 8, 2011
    #9
    Agreed. I hope it catches on...
     
  10. -LikesMac- macrumors 6502

    Joined:
    Jun 20, 2010
    #10
    It's pretty funny since...

    I was going to learn Objective-C until this came along. Swift is so crazy!

    Now...I'm still going to learn Obj-C first. Then transition over sometime in the future. :D
     
  11. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #11
    But if the developers who produce an app for both iOS and android cannot use the code for their android flavor they're less likely to use it. That's if I'm understanding things correctly.
     
  12. takao macrumors 68040

    takao

    Joined:
    Dec 25, 2003
    Location:
    Dornbirn (Austria)
    #12
    it's not like Objective C was exactly the beacon of platform independence ;)
    99.9% of all current Objective-C developers work on apple platform...

    also let's be honest: in terms of code-readability Objective-C isn't really that great. For people coming from Java, C# or more modern stuff like Ruby it really feels clunky and hasn't aged well

    after looking a little bit into Scala last week and through the first few pages of the Swift programming language book i would say, Swift will be to Objective C what Scala hopes to be to Java


    i tried to dive into objective C multiple times and honestly it never warmed up to me. Swift instantly made it onto my "languages-to-learn" together with Scala and Ruby
     
  13. AlanShutko macrumors 6502a

    Joined:
    Jun 2, 2008
    #13

    They can't use the same code today. Requiring objective c has not hurt iOS's popularity with developers.
     
  14. ohbrilliance macrumors 6502a

    ohbrilliance

    Joined:
    May 15, 2007
    Location:
    Melbourne, Australia
    #14
    While a little strange, it's not as though Objective-C is difficult to learn. Developers will still need to learn how to structure an application, utilise design patterns and learn the APIs, which IMO are much more difficult to grasp than the language syntax.
     
  15. Chazz08 macrumors 6502

    Joined:
    Dec 4, 2012
    #15
    I've been trying to learn a programming language for awhile now, but never knew exactly where to start. Are you saying you are going to learn Swift without learning Objective-C? Everyone always tells me I should start with C then move to Objective C and so on. What do you think?
     
  16. Shrink macrumors G3

    Shrink

    Joined:
    Feb 26, 2011
    Location:
    New England, USA
    #16
    Possibly just a teeny bit of an overstatement?
     
  17. LordQ Suspended

    LordQ

    Joined:
    Sep 22, 2012
    #17
    I've been wondering what if Apple completely rewrites iOS 9 using Swift?
     
  18. blasto2236 macrumors 6502a

    Joined:
    Nov 4, 2012
    #18
    That would explain the deafening applause from developers in the audience when they announced it.
     
  19. mlfarrell macrumors member

    Joined:
    Mar 17, 2011
    #19
    I'll tinker around with it for new app projects. Any and all game code will still be entirely written in c++11. I also have no intent to rewrite my huge objc codebases for my existing apps.
     
  20. AxoNeuron, Jun 3, 2014
    Last edited: Jun 3, 2014

    AxoNeuron macrumors 65816

    AxoNeuron

    Joined:
    Apr 22, 2012
    Location:
    The Left Coast
    #20
    I am very excited about Swift! I gave the Swift guide on ibooks a cursory examination and the syntax at least looks a lot simpler than Objective C 2.0 is. Although I still intend to finish up learning the basics of Objective C before I turn to Swift.

    My main question, though, can someone develop most apps completely in Swift or is it just an addition to the required objective c? Also, let's say you use a lot of Swift in your app. Will it run on an iOS 7 device once you compile and publish it to the App Store?

    I've been plowing in to Objective C for a month or so now as I desire to be able to develop apps by the end of the summer, at least relatively simple ones. I have purchased two online courses (not sure if I can post the names or not) and the funniest thing is that the best tutorials I've found for Objective C have been from a user called "mybringback" on YouTube completely for free. So my advice for you would be to just download Xcode 5 and start with his videos, as I've tried a lot of them and for me personally I learn the best from him. I wouldn't bother learning C first, at least not if you intend to develop for iOS, since it's just not necessary and could be a bit too much if you aren't a computer science major in college and can't do it full time.
     
  21. SolarShane macrumors 6502

    Joined:
    Mar 7, 2014
    #21
    It's a whole new language and thus doesn't require ObjC. That is why Apple made Swift in the first place. Apple wanted to basically retain the power in ObjC, but have it in a super easy language. It also uses the existing LLVM compiler to compile. So I'm assuming that any targets that run apps compiled with LLVM will run Swift apps just fine. However, wait for the "official information" from Apple, though I'm 99% sure ;)

    As someone who knows .NET, I find ObjC an alien language. Swift is a mix of Python and .NET so it will be relativity easy for me to pick up; this is the primary reason why I'm excited for it.
     
  22. Bubba Satori Suspended

    Bubba Satori

    Joined:
    Feb 15, 2008
    Location:
    B'ham
    #22
    Define "changing the world".
     
  23. jclardy macrumors 68040

    jclardy

    Joined:
    Oct 6, 2008
    #23
    Native Objective-C can't be ported over anyways. Sure you could share a C++ library if you wanted to, but you can do the same with Swift.

    All it really means is that iOS development will have an even lower barrier to entry than before. Not that Objective-C with ARC is super difficult, it just looks daunting to newcomers. Swift is a lot more approachable.
     
  24. qweenapps macrumors member

    Joined:
    Feb 17, 2014
    #24
    Well Swift looks like a bit of JavaScript mixed with VB :D at the first glance. Personally I don't like the way you define procedures and function return type in Swift I am more objective-c java style guy... But well things are changing I cannot really tell if it's better just after a few weeks using it.

    But good initiative to have a new programming language. But for sure a lot of Objective-C code is there I don't expect to go away overnight.
     
  25. czecho7 macrumors member

    czecho7

    Joined:
    Sep 3, 2010
    #25

    I would love to know the names of the online courses you purchased, if that's possible.
     

Share This Page