« Python will assimilate you | Main | Eeeuuwww »

I wanted generic method dispatch, but all I got was this lousy IoC tee-shirt

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

Comments

Zohar
(August 10, 2004 11:06 AM #)

>>I wanted generic method dispatch, and all I got >>was this lousy IoC tee-shirt

LOL

Miles Sabin
(August 13, 2004 01:15 AM #)

Trackback Pings

TrackBack URL for this entry:
http://www.dehora.net/mt/mt-tb.cgi/1371

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