Duck Typing Preso / Code Available
June 30, 2006 · 11 Comments
You can now download my new duck typing presentation that I gave this morning at CFUNITED, along with the handful of sample files, from the "Software" pod on my blog.
Tags: coldfusion

11 responses so far ↓
1 Nathan Strutz // Jun 30, 2006 at 2:44 PM
You seemed pretty stressed about it yesterday.
2 Peter Bell // Jun 30, 2006 at 2:55 PM
Very clear, well laid out and compelling. Also lots of nice little hints and tips. I never knew you could treat methods within a CFC like any other key within a structure - including setting and renaming - it'll be interesting to look at the base mixin method to see an example in the non-cfinclude approach.
Best Wishes,
Peter
3 Dan Sorensen // Jun 30, 2006 at 3:39 PM
4 Lola Lee Beno // Jun 30, 2006 at 5:00 PM
5 Sean Corfield // Jun 30, 2006 at 6:34 PM
Nathan, yeah man, I was pretty stressed about it. I like to practice on CFUGs to get a sense of the flow of the talk and the length. That it went so well is pure good luck on my part I think! :)
6 Az // Jul 2, 2006 at 6:29 PM
The slides are well laid out and give a good idea of the flow of your talk on this topic, however, for those of us who didn't get to attend CFUnited, could you write up a blog article that expands on the slides and answers questions such as where duck typing is most effective at boosting performance and where static typing might cause little performance impact but provide extra security and validation?
I'm just wondering if in general using an any return type or argument type is more efficient when they are custom objects but the extra data validation would it better to statically type arguments and return types that are standard ColdFusion data types.
Az
7 Sean Corfield // Jul 2, 2006 at 7:03 PM
You should only optimize when you have established you have a performance problem and you have used load testing and profiling to identify a bottleneck in the code. Something that both Joe and I did with the frameworks mentioned in the talk.
As far as I'm concerned, "premature optimization" is a developer malady that needs treatment, not encouragement...
8 Az // Jul 2, 2006 at 7:21 PM
9 Sean Corfield // Jul 2, 2006 at 7:26 PM
10 Az // Jul 2, 2006 at 7:45 PM
11 Peter Bell // Jul 2, 2006 at 7:53 PM
FWIW I just did a quick post on the performance implications of duck typing. As Sean mentioned, for the vast majority of applications this will be "interesting but irrelevant". The other implications are very cool indeed!
Full as a goog should pick up the post . . .
Sean, please let me know if I misrepresented any of the information as I really don't have a good reason to test this as I don't currently have a performance problem that it would help with.
Best Wishes,
Peter
Leave a Comment