[Tutor] designing POOP

Kent Johnson kent37 at tds.net
Fri Feb 8 22:46:33 CET 2008

bhaaluu wrote:

> It also cleaned up main(), and put everything in well defined packages
> at the top of the program.

Yes, good OOD puts things into cohesive, comprehensible packages.

> I can see do difference in "game play". 8^D

And that's a good thing, right?

"Refactoring is the process of changing a software system in such a way 
that it does not alter the external behavior of the code yet improves 
its internal structure." -- Martin Fowler in Refactoring

The refactoring you just did is called Extract Method:


More information about the Tutor mailing list