You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not something we necessarily have to do; just an idea.
What if instead of having a pile of functions in semesters.py we defined a Semester class that had those functions. Instead of passing floats (or strings or whatever else) around, we would pass Semester objects around, which could handle things like input validation and compensating for floating point errors.
We can discuss further at a future Webmaster Committee meeting.
The text was updated successfully, but these errors were encountered:
This is not something we necessarily have to do; just an idea.
What if instead of having a pile of functions in
semesters.py
we defined aSemester
class that had those functions. Instead of passing floats (or strings or whatever else) around, we would passSemester
objects around, which could handle things like input validation and compensating for floating point errors.We can discuss further at a future Webmaster Committee meeting.
The text was updated successfully, but these errors were encountered: