<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>The MKVille Blog - Reactor</title>
			<link>http://www.mkville.com/blog/index.cfm</link>
			<description>The personal blog of Mark Mazelin</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 13:45:00-0400</pubDate>
			<lastBuildDate>Thu, 27 Apr 2006 09:44:00-0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>blogger@mkville.com</managingEditor>
			<webMaster>blogger@mkville.com</webMaster>
			
			
			
			
			
			<item>
				<title>Reactor still rocks</title>
				<link>http://www.mkville.com/blog/index.cfm?mode=entry&amp;entry=DB9BE186-9EA5-9AE9-E2A99C76863E8FA9</link>
				<description>
				
				Once again, kudos to &lt;a href=&quot;http://www.doughughes.net&quot;&gt;Doug Hughes&lt;/a&gt; on his excellent Reactor for ColdFusion project. I have been using Reactor for several months on a couple of projects I have been working on. I got the chance this week to whip together a small app at my day job and was once again amazed at how quickly one can develop a robust app in just a few hours when using Reactor. Reactor really takes the drudgery out of the coding process, allowing the developer to concentrate on the business needs and user interface for the project.
				
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Reactor</category>				
				
				<pubDate>Thu, 27 Apr 2006 09:44:00-0400</pubDate>
				<guid>http://www.mkville.com/blog/index.cfm?mode=entry&amp;entry=DB9BE186-9EA5-9AE9-E2A99C76863E8FA9</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Model-Glue application walk-through</title>
				<link>http://www.mkville.com/blog/index.cfm?mode=entry&amp;entry=F59ECAE1-A480-7BE7-28AD994158366ABA</link>
				<description>
				
				Once again Raymond Camden is putting every other ColdFusion developer to shame. He started a new blog series titled &quot;&lt;a href=&quot;http://ray.camdenfamily.com/index.cfm/2006/3/13/Building-your-first-ModelGlue-application-part-1&quot;&gt;Building your first Model-Glue application&lt;/a&gt;.&quot; It will be a step-by-step walk through of creating a &lt;a href=&quot;http://www.model-glue.com&quot;&gt;Model-Glue app&lt;/a&gt;. If you&apos;ve never used a ColdFusion framework (you&apos;re still writing spaghetti code, aren&apos;t you!), then this blog series may help you get introduced to the framework world. I have used Model Glue on one production website and have dabbled with it for a while now, and I think it is great, especially when combined with Doug&apos;s &lt;a href=&quot;http://www.doughughes.net/index.cfm?categoryId=30&quot;&gt;Reactor&lt;/a&gt;.
				
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>OOP</category>				
				
				<category>Reactor</category>				
				
				<pubDate>Mon, 13 Mar 2006 16:55:00-0400</pubDate>
				<guid>http://www.mkville.com/blog/index.cfm?mode=entry&amp;entry=F59ECAE1-A480-7BE7-28AD994158366ABA</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Reactor is Awesome!</title>
				<link>http://www.mkville.com/blog/index.cfm?mode=entry&amp;entry=E864E893-990A-C9EB-30B96E87C08AA840</link>
				<description>
				
				I listened in on &lt;a href=&quot;http://coldfusion.meetup.com/17/events/?eventId=4812627&amp;action=pastdetail&quot;&gt;Doug Hughes&apos; preso on Reactor&lt;/a&gt; at yesterday&apos;s &lt;a href=&quot;http://coldfusion.meetup.com/17/&quot;&gt;Online ColdFusion Meetup Group&lt;/a&gt;. If you missed, visit the meetup site and listen in to the archived version.

&amp;lt;aside&amp;gt;I missed winning the ColdFusion 7 Standard Edition in the giveway by one person (random number selection from list of attendees) -- I was &quot;sitting&quot; right by the winner!&amp;lt;/aside&amp;gt; 

I had started using Reactor for my latest project while digging into ColdFusion OOP at the same time. The preso was quite good, but the best part was signing up for the Reactor mailing list afterward. I had a problem with the app I was creating when trying to join some tables to get all records--I didn&apos;t know how to use the Reactor objects to do the join and didn&apos;t know the &quot;best practice&quot; for doing it either. To make a long story short, you can create a function in the table&apos;s Gateway object (that is automagically created by Reactor) that create a Reactor query, joins tables, and can even set a where clause to grab the first record from a hasMany join. Here is an example of how to do that:
&lt;div class=&quot;code&quot;&gt;&lt;FONT COLOR=MAROON&gt;&amp;lt;cffunction name=&lt;FONT COLOR=BLUE&gt;&quot;getAllWithJoin&quot;&lt;/FONT&gt; output=&lt;FONT COLOR=BLUE&gt;&quot;false&quot;&lt;/FONT&gt; returntype=&lt;FONT COLOR=BLUE&gt;&quot;query&quot;&lt;/FONT&gt;&amp;gt;&lt;/FONT&gt;&lt;br&gt;
       &lt;FONT COLOR=MAROON&gt;&amp;lt;cfset var Query = createQuery() /&amp;gt;&lt;/FONT&gt;&lt;br&gt;
      &lt;FONT COLOR=GRAY&gt;&lt;I&gt;&amp;lt;!--- join all the associated tables ---&amp;gt;&lt;/I&gt;&lt;/FONT&gt;&lt;br&gt;
       &lt;FONT COLOR=MAROON&gt;&amp;lt;cfset Query.join(&lt;FONT COLOR=BLUE&gt;&quot;Foo&quot;&lt;/FONT&gt;, &lt;FONT COLOR=BLUE&gt;&quot;FooBar&quot;&lt;/FONT&gt;).join(&lt;FONT COLOR=BLUE&gt;&quot;Foo&quot;&lt;/FONT&gt;, &lt;FONT COLOR=BLUE&gt;&quot;FooBee&quot;&lt;/FONT&gt;).join(&lt;FONT COLOR=BLUE&gt;&quot;Foo&quot;&lt;/FONT&gt;, &lt;FONT COLOR=BLUE&gt;&quot;FooBoo&quot;&lt;/FONT&gt;)/&amp;gt;&lt;/FONT&gt;&lt;br&gt;
      &lt;FONT COLOR=GRAY&gt;&lt;I&gt;&amp;lt;!--- only get first record from the table with the hasMany relationship ---&amp;gt;&lt;/I&gt;&lt;/FONT&gt;&lt;br&gt;
       &lt;FONT COLOR=MAROON&gt;&amp;lt;cfset Query.getWhere().isEqual(&lt;FONT COLOR=BLUE&gt;&quot;FooBoo&quot;&lt;/FONT&gt;, &lt;FONT COLOR=BLUE&gt;&quot;myField&quot;&lt;/FONT&gt;,&lt;FONT COLOR=BLUE&gt; 1&lt;/FONT&gt;) /&amp;gt;&lt;/FONT&gt;&lt;br&gt;
      &lt;FONT COLOR=GRAY&gt;&lt;I&gt;&amp;lt;!--- return the query ---&amp;gt;&lt;/I&gt;&lt;/FONT&gt;&lt;br&gt;
       &lt;FONT COLOR=MAROON&gt;&amp;lt;cfreturn getByQuery(Query) /&amp;gt;&lt;/FONT&gt;&lt;br&gt;
   &lt;FONT COLOR=MAROON&gt;&amp;lt;/cffunction&amp;gt;&lt;/FONT&gt;&lt;/div&gt;

Easy as pie and database-independent too! &lt;a href=&quot;http://www.doughughes.net/index.cfm?categoryId=30&quot;&gt;Reactor&lt;/a&gt; is awesome--check it out!
				
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>OOP</category>				
				
				<category>Reactor</category>				
				
				<pubDate>Fri, 20 Jan 2006 10:06:00-0400</pubDate>
				<guid>http://www.mkville.com/blog/index.cfm?mode=entry&amp;entry=E864E893-990A-C9EB-30B96E87C08AA840</guid>
				
			</item>
			
		 	
			</channel></rss>