This morning at Apple’s 2014 Worldwide Developer’s Conference, Apple SVP Craig Federighi gave us our first official look at the upcoming version of the Macintosh desktop operating system. This is the tenth formal release of OS X (which is pronounced "oh ess ten," never "oh ess ecks"); Apple’s naming convention uses "OS X" as the brand, separate from the version, and so the brand and version of this release is indeed "OS X 10.10"—"oh ess ten ten dot ten" (or "ten point ten," if you insist).
Starting with OS X 10.9, though, Apple has given the OS California-themed names—10.9 was "OS X Mavericks," after a famous surfing location, and this new version is "OS X Yosemite," named after California's Yosemite National Park. Mavericks' branding and banners were all wave-related, after the surf theme; Yosemite's desktop features the famous slab-sided southwest face of Half Dome, one of the park's most recognizable rock formations. (PC gamers who cut their teeth in the late '80s and '90s will also recognize Half Dome from its role as the logo of the legendary adventure gaming company Sierra On-Line.)
Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.
Playgrounds make writing Swift code incredibly simple and fun. Type a line of code and the result appears immediately. If your code runs over time, for instance through a loop, you can watch its progress in the timeline assistant. The timeline displays variables in a graph, draws each step when composing a view, and can play an animated SpriteKit scene. When you’ve perfected your code in the playground, simply move that code into your project. With playgrounds, you can:
Read-Eval-Print-Loop (REPL). The debugging console in Xcode includes an interactive version of the Swift language built right in. Use Swift syntax to evaluate and interact with your running app, or write new code to see how it works in a script-like environment. Available from within the Xcode console, or in Terminal.
- Design a new algorithm, watching its results every step of the way
- Create new tests, verifying they work before promoting into your test suite
- Experiment with new APIs to hone your Swift coding skills