Chapter 14. Delivering quality Swift code
This chapter covers
- Documenting code via Quick Help
- Writing good comments that don’t distract
- How style isn’t too important
- Getting consistency and fewer bugs with SwiftLint
- Splitting up large classes in a Swifty way
- Reasoning about making types generic
Writing Swift code is fun, but in larger projects the ratio between writing and maintaining code shifts toward maintenance. Mature projects are where proper naming, code reusability, and documentation play an essential role. This chapter addresses these points to make programmers’ lives more comfortable when looking at code from a maintenance perspective.
This is the least code-centric chapter in this book, but one of the more important ones ...
Get Swift in Depth now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.