A First Look at Apple’s Swift Programming Language

Apple Swift

As expected, Apple executives spent the first day of the company’s Worldwide Developers Conference (WWDC) unveiling iOS 8 and Mac OS X “Yosemite,” the newest versions of operating systems for iOS mobile devices and Macs. But the announcement that earned arguably the biggest response from the audience (and the tech media at large) came near the end, and it involved something that 99 percent of consumers probably won’t care about: a new programming language, Swift.

For many years, Apple-centric developers have relied on Objective-C to program apps for Macs and iOS devices. It’s a popular programming language, but also one that’s notoriously difficult to use; based on the crowd reaction to Apple’s announcement, those developers seemed pretty pumped at the prospect of leaving it in the rear view mirror.

Click here for more iOS development jobs.

Swift bears many attributes of scripting languages, an offshoot of programming languages that includes Python and Perl. Unlike programming languages that demand the programmer write a massive chunk of code before compiling it to see the results, scripting languages can display the outputs in real time. This can prove an invaluable time-saver: compiling huge swaths of code means that, if something goes wrong, the programmer has to go back and pick apart his or her work line-by-line in order to find what’s often a tiny error. With Swift, as with scripting languages, the feedback is instant.

Scripting languages operate at a high level of abstraction, meaning they can automate various programming functions, making them simpler to understand and write than other languages. (Apple also touts Swift’s ability to eliminate “entire classes of unsafe code,” with variables initializing before use, arrays/integers checked for overflow and automatic memory management.)

Apple hopes that Swift will make iOS and Mac OS X more accessible to a deeper pool of developers, strengthening those platforms’ respective app stores. Pro developers likely hope that Swift will make a hard job a little easier, while novices might see the new language as an invitation to launch a foray into Apple programming. Those interested in exploring the possibilities (and limits) of the language can download Apple’s free e-book, The Swift Programming Language, which provides a detailed tour. More information is also available on Apple’s development website.

Related Articles

Image: Apple

Comments

2 Responses to “A First Look at Apple’s Swift Programming Language”

June 03, 2014 at 10:19 am, Rob S said:

By themselves, scripting languages are often tedious…not because they give “instant” feedback, but because they typically fail to give feedback on coding errors because they often don’t have special tools (like the compiled languages) that would allow for this syntax checking and other potential problems.
I wonder if Swift offers a great tool for notifying you of coding risks as you’re building the next great app…

Reply

June 05, 2014 at 8:05 am, IoT.do said:

Smart move by Apple! If they want wider adoption especially in the fast growing Internet of Things (IoT) world, this is definitely a Home Run.

Reply

Post a Comment

Your email address will not be published.