Showing posts with label Learn. Show all posts
Showing posts with label Learn. Show all posts

Thursday, August 13, 2015

How to learn Swift: What's the best way to learn Apple's programming language?



"A new language that lets everyone build amazing apps." That's how Apple is positioning Swift, but don’t expect to dive in today and be sending a Candy Crush clone to the App Store tomorrow. As with any language, spoken or coded, learning it takes both time and effort.
Help is at hand, though, with free and commercial resources covering the language in depth. Whatever your ability, you’ll find plenty here to advance your skills.
You'll be interested to hear that Swift 2 is coming. You can find out more about it in our Swift 2 complete guide, but we've got lots of resources to help you learn how to use Swift and Swift 2 here, too.

Getting started with Apple's Swift development language

Start at the source with Apple's dedicated Swift documentation. You don't need a Developer account to access the files or to download Xcode from the Mac App Store, so you can get started right away.
The Developer documentation includes sample code, links to reference material and, most useful for anyone switching from another language, videos from Swift's unveiling at 2014’s Worldwide Developers' Conference.
Apple’s official documentation should always be your first stop when learning anything new about the platform, its apps or the way that either operates under the hood.

Best Swift programming language books

Put your commute to good use by working your way though the Swift Programming Language Book (from the iBookstore). Originally published by Apple in summer 2014, it's been updated with Swift 2 as of 9 June 2015, and is a free download as long as you have an iBookstore account, download the file and you can read it on your Mac, iPad or iPhone.
It starts out that the most basic level, with every language course’s traditional ‘Hello, World’ jumping off point, before going on to explain the fundamentals like variables, arrays and conditions.
The opening tour will be enough for programmers with some existing experience elsewhere to familiarise themselves with the language, while the sections that follow go into more depth to give you all the mental tools you need to build your own apps. It’s packed with properly colour-hinted code, the index is comprehensive and the final third is an end to end examination of the language grammar. Combined, they make up a first class ongoing reference tool.
Put your downtime to good use by keeping a copy of the free Swift Programming Language Book on your iPad or iPhone.

Learn Swift on Udemy

Rob Percival is a Maths graduate from Cambridge University who describes himself as ‘a bit of a coding geek’ and whose webdev course was the most popular and reviewed course ever on Udemy. His Complete iOS 9 Developer Course on the same site looks like it’s heading the same way. Almost 20,000 students have enrolled on it at the point of writing, and with 255 reviews it’s clocked up an average score of 5/5.
Its 198 resources, most of which are videos and a few of which are text based, teach you how to program while walking you through the process of building 18 real world apps including clones of Instagram and Snapchat. If you run at the recommended pace you’ll complete the 28 hour course in six weeks, and also benefit from a year’s web hosting, an ebook showing you how to earn while learning to code, and 1000 graphical assets to use in your applications. No prior knowledge or experience is expected or required.
As with the lynda.com resources, Udemy courses are charged for. This one costs £30 at the time of writing.
With a 255 ratings giving this Udemy course close to top marks, the six week lesson plan is built around the process of building real applications.
There are other courses on Udemy worth checking out too if you're looking to learn Swift 2:

Learn Apple's Swift programming language quickly

If you need to get started with Swift as quickly as you can, check out lynda.com’sSwift Programming Language First Look course.
Since being published in September 2014, it’s clocked up close to 16,500 viewers in 122 countries and focuses on the 20% of the language that you’ll use most often. That means it’s concise and to the point, running to just one hour and 41 minutes, but it was published in September 2015 and hasn't been updated for Swift 2 yet.
Each of the resources mentioned above are free, but lynda.com charges between £14.95 a month and £229 a year depending on the level of service you want, and once you’ve paid you can access all of its courses, whatever the subject, alongside this series of Swift lessons. If you’re not sure whether you’d suit this kind of tutoring, try out a free preview account first.
lynda.com’s highly respected range of courses now includes options for learning Swift, organised according to ability.

Learn Swift on a budget

If the lynda.com and Udemy courses are too expensive, check out Tutsplus where you can buy its 3.5 hour course The Swift Programming Language for just $15 (£9.83) – less than a week’s-worth of lattes.
It’s broken down into 27 videos in five main areas covering an introduction, language constructs, object oriented programming, built-in types and a conclusion. The individual lessons are short enough to watch on a bus journey or between appointments, typically ranging from two to 13 minutes.
Tutsplus offers a short course in Swift programming for less than £10. If you’re not sure whether it’s the right language for you, this is a cost effective and low risk way to find out.

Read: Best Mac for app development

Swift podcasts

If all of this solo study is sending you stir crazy, sign up to a programming podcast.iDeveloper focuses entirely on iOS and OS X development, discussing tools and techniques, and offering tips and advice. If you’re serious about making some money from your work, it also concerns itself with the business side of selling your apps.
The back catalogue runs to 137 episodes, the oldest of which appeared in October 2010, but if you’re only interested in programmes broadcast since the dawn of the Swift era you’ll only need to wind back to June 2014 and its discussion of Apple’s Worldwide Developers’ Conference.
The content is chatty and engaging, but can get technical at times, so if you find it going above your head, hang in there and assimilate as much as you can – at least you’ll be getting familiar with terms and phrases used within the realm of programming.
You can preview individual episodes and read a synopsis of each one at the podcast homepage.

Learn Swift at iTunes U

Subscribe to the University of Plymouth’s Swift programming course through iTunes U and Associate Professor Nick Outram will teach you how to use the language in a series of practical videos that, rather than working through each function in turn, introduce them organically as they arise in the process of building real applications.
The lessons are fairly short and they’re rarely presented as formal lectures, which helps to keep them engaging, although they haven't yet been updated for Swift 2. Supporting written material is provided in the form of ebooks, and you can download the code used in the course from a Github repository linked through the course description on the iTunes Store.

iTunes U has a range of excellent Swift programming courses, including this one from the University of Portsmouth.