A major commitment
The simplicity of the Swift language is deceptive. While it's easy to write a "hello world" app in one line and build a quick app with a few lines of code, numerous details and nuances will take plenty of study to master. The adept programmers will love the power and the ability to use the clever tricks in their software, but many neophytes will find it hard to read their code. This will not be an easy language to master, no matter how easy it might be to pick up.
The most important thing to recognize about Swift is the scope. While some of new languages have a toylike feel because they're relatively small projects, Swift is a major commitment. The first book on Swift alone is excellent, in part because it's more than 850 pages long. The Xcode download now pushes 2.5GB. The language isn't a little playpen for easy coding, but a full software package designed to offer all of the support a team of programmers needs to take on major projects.
The language also includes copious hooks and tools for working with the existing Cocoa libraries. Apple doesn't want to rewrite the iOS and OS X stacks, so Swift makes linking to them simple. This entire project was built to maintain the interest in these stacks and to make it easier for anyone to walk in and start coding up apps. At the same time, you can use as much or as little Swift code in your iOS or OS X project as you like.
Apple isn't forcing a march to Swift. No doubt many of the old guard will stick with Objective-C. But Swift will make it much easier for programmers steeped in other languages and traditions to pick up Xcode and quickly become productive. That alone is a big step forward for Apple and one that will probably lead to even more native iOS and OS X code than ever. Swift doesn't need to take over the world to be a gift to it.
This article, "First look: Apple's Swift is simple, at first," was originally published at InfoWorld.com. Follow the latest developments in application development and mobile technology at InfoWorld.com. For the latest business technology news, follow InfoWorld.com on Twitter.
You may still be better off sticking with Win7 or Win8.1, given the wide range of ongoing Win10...
Now that we're down to the wire, many upgraders report that the installer hangs. If this happens to...
Based on a technique created by a German blogger, here's how to stop wasting hours checking for Windows...
The swirl of new enterprise tech settled a bit in 2016, leaving a clear framework for the future -- and...
Picking an Android phone can be difficult, but we're here to help. These are the top Android phones you...
What does the future hold for Python, aside from new versions of the language? Let's check the crystal...
Thanks to stalwarts like MySQL, MongoDB, and Cassandra, the database realm has been a haven for open...