August 15, 2018
Code is only written once but read over and over again. Write your iOS code the right way with Swift Style, Second Edition: An Opinionated Guide to an Opinionated Language, now in beta from pragprog.com/book/esswift2.
Hone your coding style today. Come and get it!
Swift Style, Second Edition: An Opinionated Guide to an Opinionated Language
Apple’s Swift programming language has finally reached stability, and developers are demanding to know how to program the language properly. Swift Style guides you through the ins and outs of Swift programming best practices. Refreshed for Swift 4 and 5, this is the best practices book for serious, professional Swift programmers and for programmers who want to shine their skills to be hired in this demanding market.
A style guide offers a consistent experience of well-crafted code that lets you focus on the code’s underlying meaning, intent, and implementation. This book doesn’t offer canonical answers on Swift coding style. It explores the areas of Swift where structure comes into play. Whether you’re developing a personal style or a house style, there are always ways to enhance your code choices. You’ll find here the ideas and principles to establish or enhance your own best style practices.
Begin with simple syntactical styling. Perfect spacing and layout. Master literal initialization and typing. Strengthen code bracing for easy readability. Style your closures for safety and resilience. Optimize control flow layout and improve conditional style choices. Transition from Objective-C and move code into Swift the right way. Boost API design using proper naming and labeling. Elevate defaulted arguments and variadics to their right places. Finally, Erica offers her own broad recommendations on good coding practice.
Now in beta from pragprog.com/book/esswift2.
Upcoming Author Appearances
Did You Know?
Please note our ebooks do not contain any Digital Restrictions Management, and have always been DRM-free. For us, "DRM Free" means "freedom": you should own the books you've paid for. On whatever device is handy—your laptop, iThingy, Blueberry, you name it. We think ideas should outlast any device you put them on.
And you can always come back and re-download your books when needed, using your account on pragprog.com. We're here to make your life easier.
Don't Get Left Out
Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on pragprog.com (email address and password is all it takes) and select the checkbox to receive newsletters.
Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:
Tell your friends! Tweet this
- The Ray Tracer Challenge: A Test-Driven Guide to Your First 3D Renderer, in beta
- Practical Chatbots, in beta
- Programming Crystal, in beta
- Modern Systems Programming with Scala Native: Write Lean, High-Performance Code without the JVM, in beta
- Property-Based Testing with PropEr, Erlang, and Elixir
- Genetic Algorithms and Machine Learning for Programmers
- Code with the Wisdom of the Crowd
- 3D Game Programming for Kids, Second Edition
Thanks for your continued support,
Publisher, Pragmatic Bookshelf
Books • eBooks • PragPub Magazine • Audiobooks and Screencasts