Slashdot Mirror


A Beginner's Guide To Programming With Swift

Nerval's Lobster (2598977) writes Earlier this year, Apple executives unveiled Swift, which is meant to eventually replace Objective-C as the programming language of choice for Macs and iOS devices. Now that iOS 8's out, a lot of developers who build apps for Apple's platforms will likely give Swift a more intensive look. While Apple boasts that Swift makes programming easy, it'll take some time to learn how the language works. A new walkthrough by developer David Bolton shows how to build a very simple app in Swift, complete with project files (hosted on SourceForge) so you can follow along. A key takeaway: while some Swift features do make programming easier, there's definitely a learning curve here.

4 of 72 comments (clear)

  1. Slight Misunderstanding by iluvcapra · · Score: 3, Informative

    TFA is actually mostly a Cocoa application stack guide. Discussion of the actual distinguishing features of Swift is minimal -- in fact I think the only thing they even passingly mention is unwrapping of Optionals. Otherwise it's just "How to build an iOS app"

    --
    Don't blame me, I voted for Baltar.
  2. Re:Just what we needed... by MightyMartian · · Score: 3, Insightful

    Another attempt by a vendor to try to lock in software development and make cross platform development incredibly difficult by introducing a new language.

    Fuck, I do tire of the sociopathic tendencies of corporations.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  3. Re:Embracing the bird by MightyMartian · · Score: 4, Funny

    If you start with PHP, even Brainfuck looks fun and refreshing. Jesus pal, talk about damning a language with faint praise.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  4. Re:Just what we needed... by iluvcapra · · Score: 4, Insightful

    Thank god we have Android Dalvik, where I can use my existing Java ME codebase. Oh wait.

    We're going from Obj-C to Swift, this seems like a pretty lateral move from a "cross platform" perspective. I would have thought the Great Java Wars had taught everyone that true cross-platform development is a chimera that isn't worth either the vendor or developer's effort. Platform vendors compete on features -- cross platform is antithetical to competition on features.

    --
    Don't blame me, I voted for Baltar.