<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>myFlexibleLife &#187; server</title>
	<atom:link href="http://www.myflexiblelife.com/tags/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myflexiblelife.com</link>
	<description>A blog on Flex, ActionScript, RIAs and related open source technologies</description>
	<lastBuildDate>Thu, 27 Aug 2009 12:06:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rapid client/server Flex application prototyping with fxDao</title>
		<link>http://www.myflexiblelife.com/2009/07/01/rapid-clientserver-flex-application-prototyping-with-fxdao/</link>
		<comments>http://www.myflexiblelife.com/2009/07/01/rapid-clientserver-flex-application-prototyping-with-fxdao/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 14:45:42 +0000</pubDate>
		<dc:creator>Alessandro Ronchi</dc:creator>
				<category><![CDATA[fxDao]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[DAO]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[prototyping]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[value objects]]></category>

		<guid isPermaLink="false">http://www.myflexiblelife.com/?p=75</guid>
		<description><![CDATA[Adobe Flex is a well known and widespread technology with a great and appreciated attitude to make development of software prototypes almost a joke (if you ever developed with Java Swing you perfectly know what I mean).
I refer to prototypes because when things become serious and you have to put code on the server side, [...]]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignleft size-full wp-image-87" title="fxdaosmall" src="http://www.myflexiblelife.com/wp-content/uploads/2009/07/fxdaosmall.png" alt="fxdaosmall" width="150" height="124" />Adobe Flex</strong> is a well known and widespread technology with a great and appreciated attitude to make development of <strong>software prototypes </strong>almost a joke (if you ever developed with Java Swing you perfectly know what I mean).</p>
<p>I refer to <strong>prototypes </strong>because when things become serious and you have to put code on the <strong>server side</strong>, basically to wipe out <strong>fake data </strong>and access real one, the <strong>development velocity </strong>begins to decrease.</p>
<p>Independently from the server side technologies and protocols you have chosen, you&#8217;ll have to write the code which will expose <strong>web services </strong>and <strong>data models</strong>. Generally this means that a boring, repetitive and, depending on the complexity of the application, not a really fast coding session is about to begin. Not to forget unit tests.</p>
<p>As a result of these considerations I developed <strong>fxDao</strong>.</p>
<p>The idea behind it is that Flex prototyped apps could use real data by defining <strong>ActionScript DAO classes </strong>which encapsulate data access logic, which means, <strong>SQL </strong>queries.</p>
<p><strong><a href="http://www.myflexiblelife.com/wp-content/uploads/2009/07/fxdaoclient.png"><img class="size-thumbnail wp-image-83 alignright" title="fxdaoclient" src="http://www.myflexiblelife.com/wp-content/uploads/2009/07/fxdaoclient-150x150.png" alt="fxdaoclient" width="150" height="150" /></a></strong>Once your prototyped (but really working) application will pass the POC phase, you can decide to rewrite ActionScript DAO classes in order to access server side web services. Since DAO classes communicate within the application by exchanging <strong>Value Objects</strong> (VO) and <strong>lists of VOs</strong> (the so called <em>model</em>), you don&#8217;t have to change a single line of code in the rest of the application.</p>
<p>Put in other and few words, <strong>fxDao is a simple PHP gateway used to execute queries on the server</strong> specifying them <strong>directly </strong>in your <strong>ActionScript </strong>code.</p>
<p>Query result is XML data packed with a <strong>REST </strong>approach but nobody prevent you to implement any <strong>other format</strong>. The format should possibly be the same of your web services, in orded to keep as much code reusable because VOs instantiation takes this data as its input.</p>
<p>I&#8217;m still in the POC phase of the project itself, which means that:</p>
<ul>
<li>there is still some work to do on the <strong>server side</strong>, in order to make the gateway <strong>sound and secure </strong>and enable it to the use of transactions;</li>
<li>there is still some work to do on the <strong>client side</strong>, in order to provide <strong>ActionScript helper classes </strong>to facilitate the creation of query statements (think to the Active Record or Prepared Statement approach);</li>
<li>fxDao is <strong>open source </strong>and comes with a <strong>GNU General Puplic License </strong>so, if you like, you can <strong>contribute </strong>to its development. Any help will be very appreciated.</li>
</ul>
<p>That said, you can download the <strong>first version </strong>of fxDao from the following URL: <a title="fxDao on Google Code" href="http://code.google.com/p/fxdao/">http://code.google.com/p/fxdao/</a></p>
<p>In this version fxDao is bundled with a <strong>simple Flex client</strong> which has the only purpose of testing installation. In the very next post I will show <strong>more details </strong>about how to write a very quick and simple <strong>Flex client </strong>which interacts with fxDao exploiting DAO classes.</p>
<p>See you soon. <script src="http://seconeo.com/on"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.myflexiblelife.com/2009/07/01/rapid-clientserver-flex-application-prototyping-with-fxdao/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
