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. 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.
  2. 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.
  3. Re:learning curve? by narcc · · Score: 2, Insightful

    That's delusional. I've been at this longer than a lot of users here have been alive, yet the only "complex" applications I've seen are either unnecessarily complex or complex for reasons completely unrelated to programming.

    It's not like cooking at all. That's just wishful thinking.

    Programming is easy. Ridiculously easy. You know this, I know this. Why hide it?

    Why not produce easy tools for non-programmers to use? We use programming languages to make writing software easier, after all. Why are modern languages and tools becoming increasingly more complex? Software isn't getting more complex in general, so why are our tools? What are we afraid will happen? That we'll lose our jobs? That people won't admire us for a skill easily attainable by young children?

    there's nothing wrong with making tuna casserole (using Hypercard to create a simple database application), but don't try to kid yourself it's basically the same thing as creating a full course meal at a four-star restaurant (writing low-level, high-performance code in C).

    But it is! The EXACT same skills and principles apply equally in both cases. (Note: This is not the case for cooking. Your analogy breaks immediately.) The only difference is that you need to know a few additional technical details to use C effectively. That's tangential to programming, no different than something like domain specific knowledge you'd need writing programs for use in different industries.

  4. Re:Embracing the bird by Paradise+Pete · · Score: 1, Insightful

    What are you, 60?

    Don't rag on people for getting old. That kinda is the goal, isn't it?