HARK icon indicating copy to clipboard operation
HARK copied to clipboard

the "whiteboard problem"

Open sbenthall opened this issue 4 years ago • 9 comments

Throughout HARK, the AgentType object is being used like a whiteboard.

Mathematical objects are assigned as attributes to self willy-nilly. This leads to an unstructured namespace that is hard to understand.

As a further refactoring step, aligned with #660 and other issues:

  • compartmentalizing the math so that more of the board is "erased" between operations
  • when possible, the math "inputs" into functions get passed in as arguments rather than getting drawn from self.

This will encapsulate the code in a way that makes it easier to decompose and refactor.

sbenthall avatar Dec 21 '20 18:12 sbenthall