Monday, November 8, 2010

A bit of an aside

A product that supports AOP, like Spring, would have been quite useful for this project. For example, many of the methods in the Grid class modify the grid's state, and then dirty the grid and ask for a repaint. The modifications made to the grid's state are unique to each distinct method, but the dirtying and request for repaint could be abstracted away through AOP. Would have made for a slightly cleaner implementation.

1 comment: