From: avi.bryant@... (Avi Bryant) Date: 2004-11-15T23:13:20+09:00 Subject: Re: [ANN] MinDI: Minimalist Dependency Injection Joel VanderWerf wrote: > The example from Jim Weirich's article would look like this in MinDI: > > class JWApplicationContainer > extend MinDI::Container > > logfilename { "logfile.log" } > quotes { StockQuotes.new(error_handler, logger) } > end Forgive me for being dense, but once you've gone this far, is there any particular reason not to simply write: class JWApplicationContainer def logfilename() "logfile.log"; end ... def quotes @quotes ||= StockQuotes.new(error_handler, logger) end ... end and so on? I think the win in simplicity probably outweighs the extra few characters you have to type... Avi