March 2017
Intermediate to advanced
226 pages
5h 13m
English
Good layout counters code complexity and makes your code easier to read. Swift’s top-heavy style magnifies the importance of braces, wrapping, and line composition. As a Swift declaration grows more complex, the mental effort (or cognitive load) required to understand the declaration increases as well.
Fortunately, there are many small ways to make code more readable. Well-presented code emphasizes its underlying meaning and design intent. Something as simple as placing braces can be driven by your code’s requirements.
This chapter explores ways you compose code, from braces to lines layout to semicolons. You’ll learn to support code readability and emphasize code meaning. Read on to discover how ...
Read now
Unlock full access