© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
W. WangPro iPhone Development with SwiftUIhttps://doi.org/10.1007/978-1-4842-7827-7_1

1. Organizing Code

Wallace Wang1  
(1)
San Diego, CA, USA
 

Programs are rewritten and modified far more often than they are ever created. That means most of the time developers must change and modify existing code either written by someone else or written by you sometime in the past. Since you may be writing code that you or someone else will eventually modify in the future, you need to make sure you organize your code to make it easy to understand.

While every developer has their own programming style and no two programmers will write the exact same code, programming involves ...

Get Pro iPhone Development with SwiftUI: Design and Manage Top Quality Apps 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.