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
Problem (solved):
Omit duplication of code when loading base attributes for each item.
E.g., all the fields from Base class should be loaded ONCE in one
method and used for all its inheritors.
Benefits:
Avoid base field duplication
Single source of truth for defaults
Extend Base without touching inheritors or loaders
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Real example:
Problem (solved):
Omit duplication of code when loading base attributes for each item.
E.g., all the fields from Base class should be loaded ONCE in one
method and used for all its inheritors.
Benefits:
Read about the approach which seems to achieve all of that and could be used for loading all QA models:
https://github.com/micxudev/QA_models_loading
Beta Was this translation helpful? Give feedback.
All reactions