When developing your applications, use
SubAssembly
sub-classes, not "factory" methods.
This way the code is much easier to read and to test.
The funny thing is that Object
constructors
are "factories", so there isn't much reason to build frameworks to
duplicate what a constructor already does. Of course there are
exceptions, but in practice they are rare when you can use a
SubAssembly
.
Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.