Sunday, October 25, 2009

RETROSPECTIVE









































Prev don't be afraid of buying books Next






























RETROSPECTIVE



We started of by considering possible solutions
to the problem of presenting a filtered list to the user. We
explored one model that used the Decorator pattern to compose filters. In the end we decided that that
was overkill at the moment, and did something much simpler.



We did more work on the interface to support
category filtering. In the process we moved to a more sophisticated
way of having Jemmy find components. We finished of by refactoring
the structure of the GUI, using a more elaborate layout approach by
that of nested BoxLayouts.



There's a bit of a smell to the code. It feels
like MovieListEditor knows too much about the filtering of
the list. Maybe that knowledge should be extracted into a class
that sits between the MovieListEditor and the
MovieList. That's starting to sound like the
decorator-based solution we thought about at the beginning of this
chapter. I'll resist pursuing that now. If we get pushed farther in
that direction, we'll have to stop and do some big refactoring to
move forward. Stay tuned.















































Amazon






No comments: