Uncategorized - Written by Niels on Monday, December 18, 2006 8:42 - 2 Comments

Getting Typed Objects from Rails, Part 2 in tutorials from Flexonrails.net

The second tutorial about the Issue Tracker Flex Application is online. This one is about Getting Typed Objects from Rails using [RemoteClass]. I asked him in de in the comments what the advantages are of VO’s and mapping them with Ruby:

Advantages of VOs:

If used typed VOs then you have control over the definition of the
objects that you are working with. You can control what interfaces they
implement, which properties are [Bindable], what methods they have, etc.

Using the VO design pattern as a convention will make it easier for others to understand your code.

Steven Webster (Cairngorm’s author) describes some other benefits in his ariticles about Cairngorm. Go to: http://www.adobe.com/devnet/flex/articles/cairngorm_pt2_03.html and scroll down to ‘Introducing the Value Object / Data Transfer Object Pattern’

Advantage of mapping with WebORB:

If you decide that you want to use VOs, then the advantage to using
mapping with WebORB is that you do not have to manually convert the
untyped objects that your service calls would normally return to your
typed VOs.

Disadvantage:

The disadvantage to this approach is that it ties you to a back-end
that implements mapping with the [RemoteClass] metadata tag. So if you
want to switch back-ends you will either have to choose another that
implements this functionality, or you will have to write code to do
manually do the conversion.

Thank you Derrek, for this explaination!

technorati tags:, , , , , ,

Popularity: 12% [?]



2 Comments

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Robin Bos
Dec 20, 2006 10:42

“Ruby on what? ;)” Peter said

Niels
Dec 21, 2006 0:00

http://www.usabilityviews.com/ajaxsucks.html. Rest my case… :). Just write a decent comment on my blog :)

Leave a Reply

Comment

Most Popular Content

Flex - Feb 25, 2008 20:11 - 7 Comments

Rotating arround 3D object in Away3D

More In Technology


Usability - Feb 6, 2008 17:39 - 5 Comments

10 Great articles about RIA (Flex) usability

More In Interaction Design


NabAIR - Feb 27, 2008 2:04 - 5 Comments

NabAIR v0.1: Update to AIR 1.0

More In Projects