Thanks Edward. I always learn something from CinJUG as well. To me, CinJUG is
like JavaOne, with a few differences: a) it's free, b) it's spread over time
and can take advantages of new developments throughout the year, and c) it's a
great time to meet and talk with the top Java developers and architects in
Cincinnati.
I've used this presentation in one form or another for over five years in the
classroom and the workplace, and I've tweaked it along the way, and with your
feedback, will tweak it further. Though we put some design issues aside, it
does demonstrate what patterns are and how they can be combined. And, as you
mention, the early versions of the Factory pattern that I used are to show what
a traditional design might be (the 'wrong' way), but then we clean it up in the
end with a better approach (no if tests, no return nulls).
Let me help you review the code. The presentation and source code are
available on my website (www.ucjava.com), or use this direct link:
http://homepages.uc.edu/~jonesbr/patterns.html
I was going to cover one topic at the end, time permitting, but I ended up
skipping it afterall. It was on slide 9, and it was, "How could we make this
better?"
http://homepages.uc.edu/~jonesbr/patterns9.html
Looks like you've answered that anyway. :)
I only have the final product at that link, but I can put up the earlier
versions of the Factory class as well if anyone is interested.
I enjoyed presenting last night. I would like to do it again. Perhaps we can
talk more about patterns, or find a different topic.
Thanks,
Brandan
P.S. - I've been using my UC website for almost six years. Some slides are
very old. I perpetually plan on revamping it, but I always end up finding
something else to do. So please pardon the disorganization. :)
--
Brandan Jones
OMI College of Applied Science
Department of Information Technology
University of Cincinnati
|