[Tutor] Scope and elegance

James Newton jnewton at fuelindustries.com
Mon Jan 7 21:56:37 CET 2008


Kent Johnson [mailto:kent37 at tds.net] wrote:
> Why does a Counter need to know about screen position?
> It sounds like the Counter might be doing too much.
> Maybe the Counters should be attributes of the Board
> which can ask them their index numbers and do the
> appropriate drawing?
> Maybe the code that is drawing the counter should ask
> the Board where to draw it? I can't tell for sure but
> it sounds like your design might be inside out.

Hi Kent,

Thanks for your reply.  It has encouraged me to think in new directions.

James 


More information about the Tutor mailing list