Hi Ryan, After going around in circles for a long time on this, i've come down to a preference to not use typing in CF, but i still see the usefulness of it. So if i'm working with someone who wants to use typing in their CFC's, i'm gonna say "Sure, let's do that!" rather than risk losing the work. Rather than repeat my long-winded self, i'll just throw a link here: http://aria-media.com/blog/index.cfm/2006/10/6/To-Type-or-Not-to-Type If you're working in a team, maybe a large one, on a big project ... well, typing or some other convention (in the hint tag for instance) to document what your methods expect and return is going to be really helpful. Even if you're working by yourself, it can be helpful. But it can also get in the way, because CF is loosely typed. And i believe that makes sense, because there is no such thing as type on the web. All you've got are strings being passed back and forth from web forms and the like. The transfer framework is in fact typed. Mark Mandel comes from a Java background so he probably will leave it that way, at least for awhile. MG and Reactor aren't, but that doesn't mean you can't run into "typing problems" with the extends attribute in those frameworks if you try, especially on Linux. So for what you're talking about here, it doesn't matter if a framework uses typing internally or not. In any case, you can just put the different versions of transfer in the web root of each project and it works with no mappings. Guaranteed! I've got an application on HostMySite working fine using coldspring, MG and transfer with no mappings at all. If another client of theirs comes along and gets support to add a mapping to "transfer" on that server, well, my app will be broken until i can get support to get the other client to just put his version of transfer in his webroot. I'm still hoping we'll have application specific mappings in CFMX one day soon, which might help to cover all the bases (like maybe you want to use transfer 1.0 on all the apps on your server except 2 of them, so you set up a mapping for the whole server so you don't replicate the code and can drop bug fixes in one place, and for the 2 apps that still use transfer 0.8, you use an application mapping ...). ciao, Nando Ryan Guill wrote: Hey guys, You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org |
- [CFCDEV] To Type or Not To Type? Ryan Guill
- Re: [CFCDEV] To Type or Not To Type? Sammy Larbi
- Re: [CFCDEV] To Type or Not To Type? Ryan Guill
- Re: [CFCDEV] To Type or Not To Type? Nando