18.6. Exercises: The Early Bird Gets the ORM!¶
Now that we have gotten very familiar with our
coding-events application, let’s design some additional features.
As you work on your
coding-events application, you may have been inspired by Meetup!
One of the cool features that Meetup has is that people can sign up for accounts.
They can use their Meetup accounts to follow the events they are most interested in and keep track of their calendar of events.
To add similar features to
coding-events, you need to add a
For the exercises, answer the following questions about what your
Person class would look like.
You do not have to code anything to complete these exercises! This is mainly focused on using our design skills to add a new feature to your application.
- You need to add a
Personclass to hold necessary info about users of our app. What fields and methods would this class hold?
- Would you need to add any additional classes to
Personto make the app work? If so, what classes would be necessary?
- What kinds of relationships would
Personhave to the other classes you already created, such as the
As you dream up answers to these questions, write the answers down in a note or piece of paper. You are now going to write up some documentation for your app!
- Add a
README.mdto your repository by navigating to the repository page on your GitHub profile. At the bottom of the page, there is a blue banner asking you to add a
README.md. Click the button to do so!
- You should write three sections. The first should describe the purpose of the app. The second should describe the current state of the app.
The third and final section should describe the future improvements you want to make to the app including your notes about the