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! While you're at it, check out some resources Treehouse students have shared here.
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
colin Don
946 PointsHelper Class to save and load
Is there any reason for creating a helper class to load and save Treets? We could easily have created those two methods in the Treet class. Is there any criteria to follow in deciding when to create a helper class?
1 Answer
Brendon Butler
4,254 PointsOrganization is key. It may not matter as much if you're making a very small program, but if you ever expand it or are making a larger program it would be a lot easier to read, debug, etc.
You could create a game like Minecraft for example, which has hundreds of classes using only one class. It would just be very messy, hard to debug and some simple tasks that could be done very easily using multiple classes would be much more difficult.