Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


4,497 Points

Real-World uses of classes, structs, enums, etc. when creating apps like Facebook and Instragram.

Hi, I'm really enjoying the iOS beginners course. You're really great at breaking down the concepts.

When thinking about Classes, Structs, etc. I totally get how to relate these to real world video game examples (I guess it's just easier to relate to a class being a blueprint for a car, and a subclass the type of car, etc.). What I'm struggling with is conceptualizing how classes, structs, enums, etc. would be used when creating an app like Instagram or Facebook. I would really appreciate if you could provide 5-6 (or more) really good examples of how classes, structs, enums, etc. are used when creating apps like Uber, Instacart, Instagram, etc. This will really help me see the big picture.

Thank you!