Repository navigation
Spring Project - #191
Spring Project#191
Conversation
|
Hi Eric, Wow, this is cool, nice work. Yay, tests! Some quick notes, as I haven't gone though everything yet, kind of a quick pass. Mostly you have nice small testable functions, but there are a couple that have a lot of loops and conditionals. I would work on getting those smaller. I think one of them even had it so that it would return different things in different orders, depending on input variables. If you can't figure out how to break it up, let us know and we may be able to help. (This is assuming that you want to continue working on it, as this as is would more than suffice as project turned in) |
|
|
||
|
|
||
| class airports(): | ||
| """ Create some methods to help answer some questions |
There was a problem hiding this comment.
Good to follow convention and capitalize classes.
| Return: | ||
| None | ||
| """ | ||
| # in case this class is subclassed |
There was a problem hiding this comment.
What does this comment refer to?
| # Sample entry of country = country['JP', 'no'] or ['JP', 'yes'] | ||
| if self.scheduled_or_not_scheduled is True: | ||
| self.scheduled_or_not_scheduled = "yes" | ||
| if self.scheduled_or_not_scheduled is False: |
There was a problem hiding this comment.
Can just do if self.scheduled_or_not_scheduled: or if not self.schedule_or_not_scheduled, no need for the 'is Trueoris False`
No description provided.