Chapter 9
Understanding Struct, Project Organization and Code Documentation

Most good programmers do programming not because they expect to get paid or adulation by the public, but because it is fun to program.
- Linus Torvalds
If you've followed along from the beginning of this book and completed all the projects so far, congratulations—you've come a long way. By now, you should feel comfortable building list-based iOS apps using SwiftUI. In the next few chapters, we'll continue improving the FoodPin app and adding new features. But before diving deeper into iOS development and exploring more advanced APIs, I want to take a step back and introduce an important programming concept: Object-Oriented Programming, or OOP.
Don't let the term "Object-Oriented Programming" intimidate you. It's not a new programming language but a way of thinking about and organizing your code. Many programming books start with OOP right away, but I chose not to. My goal was to help you build real apps first—without overwhelming you with theory. Now that you've made it this far, it's the perfect time to understand how OOP works. If you've completed eight chapters and are still reading, it's clear that you're serious about learning iOS development and ready to take your programming skills to a professional level.
To access the full version of the book, please get the full copy here. You will also be able to access the full source code of the project.