GIGO: words unreadable aloud
Mishrogo Weedapeval


  Tuesday 11 February 2003
Duck Typing

Python's implicit interfaces, Objective-C's more explicit "protocol"s, and similar features in other dynamic languages like Ruby and Smalltalk, have been given the name Duck Typing. See here or just do a Google search.

You pass me an object, and "If it looks like a duck, waddles like a duck, and quacks like a duck," then as far as I'm concerned, it may as well be a duck.

Reminiscent of Duct Taping something together: not always the most perfectly elegant way to do something, but often the way that works now. May not last forever, but may well last as long as it is needed.

Sounds best when spoken with an Australian accent.
9:42:56 AM   comment/     

Click here to visit the Radio UserLand website. Click to see the XML version of this web page. © Copyright 2007 Doug Landauer .
Last update: 07/2/6; 12:29:29 .
Click here to send an email to the editor of this weblog.

February 2003
Sun Mon Tue Wed Thu Fri Sat
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28  
Jan   Mar