For Good or Bad, Apple, Inc.'s Swift Will Change Everything

Much to the disappointment of millions of consumers, Apple's (NASDAQ: AAPL  ) WWDC kicked off Monday with no new hardware announcements. But keep in mind that the "D" stands for "Developers," and the conference's keynote was absolutely loaded with significant new software-centric announcements. Those included iOS 8, and two widely anticipated developer kits respectively focused on smart homes and aggregating health data.

Apple stock

Apple's Swift holds broad implications for the programming world. Source: Apple.,

But, as a recovering software engineer myself, I'm convinced that the most important announcement yesterday is one few consumers will ever see: A new programming language Apple has named "Swift."

The good
Specifically, Apple says Swift is years in the making, and -- true to its name -- looks to accelerate app development by both building upon, and working alongside, the decades-old Objective-C and C languages. At the same time, Swift is very expressive -- like a scripting language -- and should feel more natural for people to read and write. In effect, while using Swift will have a familiar feel to experienced Objective-C developers, it should also be friendly enough for newer programmers to step in without much pause.

Apple also boasted of Swift's relative speed, with two slides in the keynote depicting the new language dominating both Python and Objective-C in running resource-intensive tasks like complex sort and RC4 encryption. Swift also includes automatic memory management features, and promises to prevent developers from making entire other classes of common programming mistakes -- for all you engineers, think of oft-repeated errors related to variable initialization and array overflow.

What's more, Apple introduced a slick "Playgrounds" feature, which should save developers time and frustration by immediately rendering the output of their coding efforts in real time. This eliminates the need to first compile it into an executable program -- a process that can waste valuable minutes, only to realize something's wrong once it completes. In short, let's just call it a software engineer's ultimate vision of instant gratification.

Apple stock

Apple's Swift Playground functionality at work. Credit: Apple.

The bad?
But Swift also isn't without criticism. So what's not to like?

First, this means developers actually need to learn a new language. This isn't a huge problem given Swift's similarities to languages like Objective-C and JavaScript. But it will take some time for people to get used to Swift's new features and unique syntax. Still, as I mentioned above, Swift was also made to work alongside Objective-C and C, which means developers can create mixed-language applications, and use Swift as they see fit. Ultimately, though, you can bet that Apple would like to see Swift take the reins as programmers grow more comfortable with its capabilities.

Then there's the matter of exclusivity. Swift, unsurprisingly, isn't an open standard, and only caters to Apple developers. As a result, those who want to create mobile apps on multiple devices still need to deal with the time-consuming, costly process of building separate versions for each platform. But, really, this is Apple we're talking about, people. Love it or hate it, did you honestly expect Apple to actively make it easier to develop for Android- and Windows-based mobile devices?

Finally, some old-school programmers will inevitably balk at Swift's error prevention and memory management functionality. This will, after all, discourage newer developers from learning previously crucial programming methods. And I won't argue that it's worth building up at least some knowledge of these techniques in the interest of becoming a well-rounded software developer.

But we also can't expect programmers to forever embrace the old ways of doing things, especially if it means they spend a disproportionate amount of time debugging code instead of actually focusing on creating amazing apps. If Swift can automatically lessen this burden, developers' innovation and creativity will shine.

In the end, Swift may need some tweaking as the masses dig in, and time will tell if it's as effective as Apple makes it out to be. But if all goes as planned, then Swift should allow Apple software developers to more effectively create stable, optimized applications faster than ever before.

Leaked: Apple's next smart device (warning, it may shock you)
Of course, Apple will eventually need to release some new hardware to take advantage of all these new apps. Sure enough, Apple recently recruited a secret-development "dream team" to guarantee its newest smart device was kept hidden from the public for as long as possible. But the secret is out, and some early viewers are claiming that its everyday impact could trump the iPod, iPhone, and the iPad. In fact, ABI Research predicts 485 million of this type of device will be sold per year. But one small company makes Apple's gadget possible. And its stock price has nearly unlimited room to run for early in-the-know investors. To be one of them, and see Apple's newest smart gizmo, just click here!


Read/Post Comments (5) | Recommend This Article (12)

Comments from our Foolish Readers

Help us keep this a respectfully Foolish area! This is a place for our readers to discuss, debate, and learn more about the Foolish investing topic you read about above. Help us keep it clean and safe. If you believe a comment is abusive or otherwise violates our Fool's Rules, please report it via the Report this Comment Report this Comment icon found on every comment.

  • Report this Comment On June 08, 2014, at 11:03 AM, TMFAeassa wrote:

    Fantastic article, Steve! Thanks for writing.

  • Report this Comment On June 08, 2014, at 12:48 PM, henrystar wrote:

    That sounds good to me, an ancient Fortran programmer! (And AAPL shareholder!)

  • Report this Comment On June 08, 2014, at 2:26 PM, HiramWalker wrote:

    Yes, damn these new error preventing, easy to code languages that prevent young programmers from learning how not to make errors. And the young people today have no clue how to ride a horse either!

  • Report this Comment On June 09, 2014, at 8:50 AM, peanutgalerygeek wrote:

    Everybody's looking for the next COBOL (and/or FORTRAN, henrystar). Coding in C++ is about a step away from coding in assembler in some ways so this a good idea.

    This really has been a constant struggle since the beginning of the C++ age. There IS no COBOL so everybody has been trying to inventory one. Java was a swing and a miss it seems. Let's see what Swift's got.

    Grace Hooper would be smiling.

  • Report this Comment On June 09, 2014, at 11:02 AM, TMFSymington wrote:

    @henrystar, I had a physics/graphics professor back in the day who absolutely loved Fortran. Maddeningly frustrating for new coders! *shudder*

    @HiramWalker, As a computer science geek from Montana, I can safely say that was awesome. ;-)

    @peanutgalerygeek, A Grace Hopper compiler reference? Fantastic. Let's see what Swift's got, indeed.

    @TMFAeassa, Thought you might appreciate this one. ;-)

    Cheers,

    Steve (TMFSymington)

Add your comment.

Sponsored Links

Leaked: Apple's Next Smart Device
(Warning, it may shock you)
The secret is out... experts are predicting 458 million of these types of devices will be sold per year. 1 hyper-growth company stands to rake in maximum profit - and it's NOT Apple. Show me Apple's new smart gizmo!

DocumentId: 2980966, ~/Articles/ArticleHandler.aspx, 10/30/2014 10:37:30 AM

Report This Comment

Use this area to report a comment that you believe is in violation of the community guidelines. Our team will review the entry and take any appropriate action.

Sending report...


Advertisement