Playgrounds are an essential Swift development tool. They offer 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 investigate the results your code produces. You tweak, you test, you explore.
Once you start using playgrounds, you'll wish they existed for Objective-C. Playgrounds provide instant gratification for every line of code you type. Imagine creating fully operational code elements in just a few lines. You see APIs, functions, and methods spring to life, ready for testing and refinement. Apple has invested a lot of work into making these environments a fantastic touch point for language development support.
Swift playgrounds create platforms for learning Swift language specifics. With their instantaneous feedback, you focus on building a class, learning an API, or perfecting a line of code without having to commit to an entire project at once. 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.
Playgrounds create the perfect solution for hit and run coding. They allow you to explore an API or develop a routine without tying yourself into full application development. Instead, they offer focused building environments. You experiment with just those features you need to, creating clarity of purpose and a minimum of expended effort.
Playgrounds don't just document an API or an algorithm. They demonstrate how these features work, allowing their audience to tweak parameter and provide a live working sample that can be ported to app implementation or get ingrained into the brain for that all important final exam. Playgrounds enable you to mix the purely technical with the pedagogical.
There is much to playgrounds that is simple and obvious. There's even more that's powerful and loaded with potential. This short book discusses playground techniques both plain and advanced that will boost your development power.
You start by learning to create playgrounds and explore their built-in features. You read about accessing built-in documentation, customizing the workspace, and pushing the built-in editing features to their limits. You also discover how playground execution works and how you can build asynchronous routines that keep working after the last line of code.
Playground Secrets and Power Tips pushes beyond the basics to expose the hidden power of the Swift playground. Let bestselling tech author Erica Sadun guide you through this new, exciting tool.
Customer ReviewsSee All
The Best Way to Maximize Your Swift Playgrounds
This book is essential if you spend any time using Playgrounds. Chapter 7 - Power Tips is reason enough to get this book, but your getting much more. I love the chapter about Documenting and can’t wait to put together some amazing playgrounds.
The table of content is barely good: no way to find what you want as there are only generic top level chapters. Most of the book is trivial stuff like “you should write good documentation. When you write documentation it should be short and concise”. Ok Thanks.
Not worth $20 for sure. $10 would be a fairer price for what you get.
$20 is the price tag of any book about advanced topics like on pragprog or oreilly.
Fun book for amazing tool
Playgrounds is still an underutilized tool in most developers toolbox, and this book helped me realize the potential of time and ease I can reduce my coding.
Something as simple as fine tuning and playing with API calls and the return JSON reduces debugging time 10 fold. No more rebuild/relaunch in the simulator for each little change.