small medium large xlarge

Swift Style, Second Edition, in beta

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!

/\ndy

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

  • 2018-08-16 VM Brasseur, REdeploy, San Francisco, CA
  • 2018-08-27 Tammy Coron, 360|iDev. Denver, Colorado
  • 2018-08-29 VM Brasseur, Open Source Summit North America, Vancouver, BC
  • 2018-09-03 Christina Moulton, Teak Mobile Inc., try! Swift NYC
  • 2018-09-14 VM Brasseur, Cascadia PHP
  • 2018-09-27 Michael Keeling, ECSA 2018, Madrid, Spain
  • 2018-10-08 Diana Larsen, Pacific Northwest Software Quality Conference (PNSQC), Portland, OR
  • 2018-10-22 VM Brasseur, All Things Open, Raleigh, NC
  • 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

    Follow us on Twitter: @pragprog, @pragpub, Andy Hunt @PragmaticAndy.

    Coming Soon:

    • 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

    Recently Released:

    Thanks for your continued support,

    Andy Hunt Publisher, Pragmatic Bookshelf

    Books • eBooks • PragPub Magazine • Audiobooks and Screencasts
    PragProg.com