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
The transform methods do not need to keep track of state. I would make this a module, so as to force a more functional style. All you are using is the type, which can be passed in with every method, or fetched from the surrounding class(name). If you need state, add a separate state class and include the module.
Split out methods that can be 'pure' from methods that really need 'state'.
The text was updated successfully, but these errors were encountered:
The transform methods do not need to keep track of state. I would make this a module, so as to force a more functional style. All you are using is the type, which can be passed in with every method, or fetched from the surrounding class(name). If you need state, add a separate state class and include the module.
Split out methods that can be 'pure' from methods that really need 'state'.
The text was updated successfully, but these errors were encountered: