Join Simon Allardice for an in-depth discussion in this video Getting the most out of Code Clinic, part of Code Clinic: Swift (2015).
- If you really want to get the most out of Code Clinic, listen to the introduction to each problem. And then come up with your own solution, or at least consider for a few minutes how you would approach it before you watch my solution. If you spent a little time working on the question, you'll have a better idea of some of the challenges and be able to understand why I made the choices I did even if you disagree with them. And keep in mind that my solution won't be the only way to do this. There are always a multitude of ways to solve a problem. But by understanding how any developer approaches a task, you're going to expand your own abilities and your comfort with this technology.
Swift is a new language, and even in the first year of its initial release in June 2014, there were multiple changes and refinements to the syntax. I'll be working on these problems using Swift 1.2 and Xcode 6.3. If you have a different version, there could be some variation in the code. You might need an exclamation mark in a place I didn't need one or vice versa. But for a course like this, those kinds of distinctions aren't that important. You should find this useful whether you're working in Swift 1.1, 1.2, or 2.0.
Now I have included the source code for my solutions in the downloadable exercise files. I'm assuming you already have the necessary tools and understanding to edit and compile Swift projects. If you haven't done anything with Swift, I would recommend you first take a look at my "Swift Essential Training" course here at Lynda.com.
Simon introduces challenges and then provides an overview of his solutions in Swift. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Intermediate
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: Image Analysis
3. Problem 3: Eight Queens
4. Problem 4 - Accessing Peripherals
5. Problem 5 - Recursion and Directories
6. Problem 6 - Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.