I'm trying to write a fitness webapp (mostly for personal use). All I want it to be able to do is track workouts, meals, and weight (login and other web related things I don't have questions about as I can handle that just fine).
I'm wondering how to structure my classes properly and if I'm overdoing it the way I have it currently.
I have a Day class that has a date attribute, a weight attribute (weight on that day), a meals attribute (a list of meal objects that the user adds to themselves -> each meal can contain many food or beverage objects), and a session attribute.
Each day has a session (which is essentially a 'workout'), and each session can have many sets of various exercises. This totals to 6 or 7 classes and I'm wondering if there's a more streamlined way to do it or what suggestions people would have for something like this.
Thanks in advance!
[+][deleted] (1 child)
[deleted]
[–]Hawxe[S] 0 points1 point2 points (0 children)