BlogNews
Mar 13, 2015 | By poq

iOS app developers should speak Swift

Few people are familiar with the intricacies of building apps. Many people know the basics of how websites are made: most have heard of the terms CSS, HTML5 and JavaScript before. But few know which programming languages are used to create native apps.

Smartphones running on Windows are built using c#, whilst native Android apps are created using Java. Up until recently, it was common practice to create native iOS apps using the programming language Objective-C, which was developed in the eighties. Objective-C has been criticised for its rigid syntax. It is hard to learn and difficult to use, making programming with it more time-consuming and expensive. Consequently fewer developers wish to learn and use it. But in July 2014, Apple unveiled a completely new language: Swift. It was created for developing iOS apps and OS X, and was intended as the successor of Objective-C.

Swift is sometimes subject to controversy because many developers are reluctant to embrace it. Learning a new language is challenging, and though Objective-C and Swift can work side by side, having to remodel apps built on Objective-C alone can be time-consuming. This is because the language has not been around for very long, and is not compatible with older code libraries – so re-coding can be very tedious. But the benefits of using Swift far outweigh the initial disincentives. We’re not looking back, and here are a few reasons why.

We switched to Swift so we could speak plain English with the code” – Mahmut Canga, our Platform Architect (Github | Stack Overflow).

It’s safer.

It might only have been in the mainstream for eight months, but in regard to iOS apps, Swift is a very safe language. Broadly speaking, it handles information more intelligently than Objective-C, and is therefore less susceptible to malicious code.

It’s faster and more resistant to crashes.

Swift allows for better memory management, meaning it is more efficient at retrieving information, and hence more resistant to crashes. Compare an app built using Swift to an app built using only Objective-C, and you’ll notice the difference in performance and speed.

It’s more intuitive and less conducive to bugs.

Swift offers a coding aid called Interactive Playgrounds. Here code can be entered on the left side of the screen, and outcomes are simulated in real-time on the right side of the screen. What’s great about it is that it’s a simulation – it allows you to see what effect your changes will have, before you submit those changes to the final app code. So it’s much easier to learn and master.

It’s attractive because it’s easy to learn.

One of the most modern developing languages that is easier to understand than the average coding language, is JavaScript. It is the language that most developers become familiar with from an early stage. Swift has a lot in common with JavaScript because they both share similar syntax and foundations, comparable to how Italian and French share latin heritage. Hence, developers who have learned JavaScript will find it easy to learn Swift – especially with the help of the Interactive Playground, which is highly conducive to fast learning of the code.

The implications of this are massive and should not be underestimated. The combination of Swift being easy to understand, and being highly intuitive to learn due to Interactive Playgrounds, makes Swift a fundamental programming language with very low barriers to entry.  It provides a huge incentive to learning Swift over other app programming languages. The modern syntax also works against bad programming habits.

Most developers are currently testing the waters and relying solely on Objective-C. Some are starting to use a combination of Objective-C and Swift, as the two are compatible. As part of our mission to seek out the most innovative development methods, the Poq developer team is moving all of our clients’ iOS apps to Swift in the coming months.

Swift allows us to implement complex features much more efficiently than Objective-C does. Our platform statistics show that our clients’ apps are crash-free 99.3% of the time, and exhibit very fast response times – 351 milliseconds, on average. After we move our iOS apps to Swift, we expect crash-free time to increase to 99.9%, and response time to be cut by nearly half.” – Our CTO, Jun Seki (Github | Stack Overflow)

Background to Swift

Swift is a programming language for developing iOS apps. It was designed by Chris Lattner, a software developer who was hired by Apple after he started turning heads by asking sceptical questions about Objective-C. He also founded the hugely popular open-source and cross-platform LLVM project, with which Swift was built.

Lattner first started working on Swift recreationally in the summer of 2010, five years after Apple hired him. Fast forward to a mere 18 months later, and he had Apple dedicating a huge team of developers to work on the new language in house. By July 2013, Lattner had taken over leadership of the entire Apple Developer Tools group, and Swift was one of its major focuses. In June 2014, Swift was introduced to the public during the Worldwide Developer Conference.

More posts

hotter case study
Case studies
Jul 13, 2021

Hotter Shoes App Success Story

Hotter Shoes is the UK’s biggest footwear manufacturer. The specialist footwear brand has over four million customers globally, selling over 1.3 million pairs of shoes a year. Hotter.com is a digitally-led omnichannel specialty footwear brand with a clearly defined, large and growing target audience.
Read more
Poq Appoints Jay Johnston as New Chief Executive Officer
BlogNews
Jun 28, 2021

Poq Appoints Melissa Law as Global Head of Marketing

London, New York, 28 June 2021 – Leading cloud-based native mobile app platform, poq, today announces the appointment of Melissa Law to the role of poq Global Head of Marketing.
Read more
Gameloft
Blog
Jun 25, 2021

How to acquire, engage and convert app customers with mobile games

Event explores why more brands and retailers are adopting gaming techniques to boost engagement and sales through their mobile apps
Read more