in reply to Design elegance : How to best design this simple program ?
I say: spend less time thinking about the code structure (classes/roles) itself, and more time documenting the edges between your units of code, i.e. subroutines and their parameters and output, pre- and post-conditions. These parts will be immensely useful for writing tests, and live on even after refactoring, upgrading and other maintenance.
|
|---|