I wanted generic method dispatch, but all I got was this lousy IoC tee-shirt
August 10, 2004 | co.mments
Charles' IOC Conundrum. I wonder if it would help if the Content object in question could tell you its media type.
The comments are also interesting, especially Rickards cast-to-type idiom, which feels vaguely like what some people call duck typing. Aside from delaying wiring to the last possible moment, there's also a lot of desire for type flexibility, it seems. But as at least one person points out, there's also the Visitor pattern (hence the mention of media type ).
August 10, 2004 01:11 AM
TrackBack URL for this entry:
Listed below are links to weblogs that reference I wanted generic method dispatch, but all I got was this lousy IoC tee-shirt:
» IOC Conundrum from The Fishbowl
Enter IOC/Dependency Injection. Now, each Content object needs to be injected with the renderer component by the IOC framework before any rendering can be performed. So instead, you just have people call the rendering component directly, creating an ad... [Read More]
Tracked on August 10, 2004 01:33 AM