David Harris's Technology Blog

ColdFusion, Flex, and other stuff...   (and 341,536 hours, 22 mins in to my plan for global domination)

Search:

Calendar:

Sun Mon Tue Wed Thu Fri Sat
        1 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 29 30 31

Subscribe:

Enter your email address to subscribe to this blog.

Archives By Subject:

Tags:

action script adobe air ajax cfug coldfusion flash flex frameworks free software fxug general jpgmetadatareader mac off topic opensource papervision spry

Recent Entries:

No recent entries.

Top Posts:

Recent Comments:

Top Commenters:

My Links:

RSS:


Transfer: Something I like about it.

I've been looking in to Mark Mandel's Transfer bit since he presented to the http://www.cfug.org.nz end of last year.

One thing (of the many things) I like about it is the XML config file.

Why do I like it?

2 reasons.

1. The fact you can introduce some form of package.class hierarchy to the Database, so flat database's can be organized better EG:

<transfer>
<objectDefinitions>
<package name="mypackage">
<object name="myclass" table="mytable" >
<id name="id" type="UUID" />
<property name="my property" type="string" />
...etc...
So this means I call my "myclass" like this:
transfer.getTransfer().new("mypackage.myclass");

2. The second reason is: I CAN COMMENT THE XML! Why is this good? I'm sure we have all returned to database tables with a few to many columns and tried to would out what "status" column and "anotherStatus" column actually relates to in the business logic of the application. This process involves digging through code and random comments. With the XML config of transfer, a simple comment on the property can explain it so the next person who needs to work with it knows where look to find out what the class (db table) is for and what purpose the property servers.

Hopefully I'll find the time to blog some examples on Transfer later.

EG: Event model and decorators

Related Blog Entries

Comments