Closed supermanzer closed 3 years ago
Additional Pro
Breaking up DataBuoy class is a Go.
First draft would be to split DataBuoy functionality into two more generalized classes that handle
Functionality that is inherently specific to NDBC data stations will remain in the DataBuoy class. In all three classes I will endeavor to replicate the static variable/getter function approach used throughout classes like Django Class Based Views to allow researchers to easily extend these classes for more customized functionality.
One of the beauties of Object Oriented Programming is multiple inheritance. Considering the number of methods and properties in the
DataBuoy
class, it may make maintenance and code review easier to follow. This was inspired by the time I've spent looking through the Django and Django-REST-Framework source code.Pro
Con
Will review and either suggest splitting up functionality into multiple classes or not