Compound Theory

v2.0

Categories

  1. Transfer
  2. ColdFusion
  3. JRuby
  4. Java
  5. ColdSpring
  6. Squabble
  7. JavaLoader
  8. ColdDoc
  9. 2ddu
  10. AsyncHTTP
  11. OO Analysis and Design
  12. Flex
  13. Railo
  14. XML / XSL
  15. Hibernate
  16. ColdFusion Builder
  17. Fall
  18. Ubuntu
  19. XHTML / CSS
  20. Eclipse
  21. Git
  22. Oracle Database
  23. Usability / UI Design
  24. webDU
  25. cf.Objective()
  26. LWJGL
  27. cf.Objective(ANZ)
  28. Captcha
  29. MAX
  30. Melbourne CFUG
  31. Martial Arts
  32. Random Things
  33. Conduit

Recent Posts

Projects

Recent Comments

14 April 2005 05:21 PM 1 Comment

New Blog: Flash Weakness

Just got this via CFAUSSIE.

http://notflash.blogspot.com/

A whole blog complaining about the shortcomings of Flash and its IDE.

For those that use Flash, this is probably a good resource, and for those that don't, it's a pretty funny read.

Enjoy :o)

02 April 2005 01:57 AM 9 Comments

Relative CFC Typing and Extending (CFC WTF Part 2)

So I had my big winge about CFCs being able to create other CFCs relatively, but not being able to extend or use return or cfargument types relatively, and how it totally messes up code being truly reusable.

So I'm chatting to Spike about this issue, and he's looking at my post, and he casually remarks to me: 'Well, why don't you try '\' rather than '.'?  See what happens".

I of course thought to myself, no way is that going to work.. I mean, it's just silly. It doesn't even look like a real class name definition.

Well I'll be damned (and several other loud expletives I echoed at the time), it freakin' works. And to top it off, it works relatively. Spike came up with the good once again.

So to make myself clear through all this muddle - you are perfectly able to:

This is really big thing as it means that you can relatively go down a folder tree with your inheritence and typing with CFCs. You can't actually go back up (least I haven't found a way), but you can go down it.  This means, you have much more ability to write really portable code - as long as you are relatively careful (no pun intended) about how you structure your packages.

for example - if I have a directory structure of:

i can now make a extend b without going back to root and/or a mapping via:
<cfcomponent name="a" extends="one\b">

As well as do similar things with type and return values on cfargument and cffunction.

Here you can download my relative pathing testbed so you can test it out for yourself, and see all the possibilities.

Quite frankly, this has opened up a whole lot of interesting things in terms of how I want to structure my code, and whether or not a cfmapping is even required when doing CFC development.

No cfmapping - how cool is that?