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
I came across some inconsistencies between the styles used in data.py and target.py, which make the integration of new subclasses unnecessary complicated.
While data.py is rather consistent and adheres to the proposed usage of getter and setters, target.py could be improved such that the user can experience a common interface across different target classes.
In my opinion, the biggest problem is that Target does not mark its variables as private (leading underscore), which makes it cumbersome to implement proper getter/setter functions to perform type checking. I'd propose to change Target to the code below and add default setter/getters as has been done in the Data class.
You are correct. Target should implement setters/getters as you describe. I have opened #98 where I implemented setters and getters for the base classes, as well as for a few more used by AUTH. I think this resolves the main issue (i.e., having these fields as private variables in the Target class). Let me know what you think.
Hi all,
I came across some inconsistencies between the styles used in data.py and target.py, which make the integration of new subclasses unnecessary complicated.
While
data.py
is rather consistent and adheres to the proposed usage of getter and setters,target.py
could be improved such that the user can experience a common interface across different target classes.In my opinion, the biggest problem is that
Target
does not mark its variables as private (leading underscore), which makes it cumbersome to implement proper getter/setter functions to perform type checking. I'd propose to changeTarget
to the code below and add default setter/getters as has been done in theData
class.The text was updated successfully, but these errors were encountered: