Skip to main content

Posts

Showing posts from July, 2006

Duck Typing: Stop the Insanity

If you pay attention to the ColdFusion blogs at all, or if you were at CFUnited, you're well aware of the new-found duck typing craze in ColdFusion land. While I agree with some of the sentiments behind advocating duck typing, as with most things that become a veritable feeding frenzy, there's quite a bit being lost in the insanity in my opinion.
First and foremost, just because you can do something doesn't mean you should. Let me state that again and extend it a bit. Just because you can do something doesn't mean you should, and it certainly doesn't mean it's appropriate to do it all the time. My fear with all the blog postings I've been reading the past few days is that people will take on an attitude along the lines of, "Typing? Who needs it! This is ColdFusion!" Personally I think that's exactly the wrong approach.
Let's stop and think about why typing exists in strongly typed languages such as Java. Yes, I know ColdFusion is…