Playgrounds are an essential Swift development tool. They create interactive environments where you develop and test code, a little at a time. In playgrounds, you determine if and how well your routines work. You explore the results your code produces. You tweak, you test, you explore.
Once you start using playgrounds, you'll wish they existed for Objective-C as well. Playgrounds provide instant gratification for every line of code you type. Apple has put a lot of work into making these environments a fantastic touch point for language development support.
Playgrounds aren't toys. They build real-world views, preview graphics, video, and audio using real-world Swift code. With a little cleverness, you can even deploy code to the iOS simulator. If you're trying to explore an API or develop a routine without having to tie yourself into a full application environment with its overhead, playgrounds create the perfect solution for hit and run coding. They offer focused building environments. You experiment with just those features you need to, creating clarity of purpose and a minimum of expended effort.
There is much to playgrounds that is simple and obvious. There's even more that's sneaky, fun, and powerful. This short book discusses playground techniques both plain and advanced that will boost your development power.Playground Secrets and Power Tips pushes beyond the simple and obvious and exposes the hidden power of the Swift playground. Let bestselling tech author Erica Sadun guide you through this new, exciting tool.