<?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>Merbist &#187; merb</title>
	<atom:link href="http://merbist.com/category/merb/feed/" rel="self" type="application/rss+xml" />
	<link>http://merbist.com</link>
	<description>Random thoughts of a software developer</description>
	<lastBuildDate>Mon, 19 Nov 2012 01:10:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Ruby, Rack and CouchDB = lots of awesomeness</title>
		<link>http://merbist.com/2009/07/27/ruby-rack-and-couchdb-lots-of-awesomeness/</link>
		<comments>http://merbist.com/2009/07/27/ruby-rack-and-couchdb-lots-of-awesomeness/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 21:49:20 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[couchdb]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[rack]]></category>
		<category><![CDATA[rails3]]></category>
		<category><![CDATA[railssummit]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=536</guid>
		<description><![CDATA[Over the weekend, I spent some time working on a Ruby + Rack +CouchDB project. Three technologies that I know quite well but that I never put to work together at the same time, at least not directly.  Let&#8217;s call this Part I. Before we get started, let me introduce each component: Ruby : if [...]]]></description>
				<content:encoded><![CDATA[<p>Over the weekend, I spent some time working on a Ruby + Rack +CouchDB project. Three technologies that I know quite well but that I never put to work together at the same time, at least not directly.  Let&#8217;s call this Part I.</p>
<p>Before we get started, let me introduce each component:</p>
<ul>
<li><a id="aptureLink_uhrplaQzyi" href="http://en.wikipedia.org/wiki/Ruby%20%28programming%20language%29">Ruby</a> : if you are reading this blog, you more than likely know at least a little bit about, what I consider, one of the most enjoyable programming language out there. It&#8217;s also a very flexible language that lets us do some interesting things. I could have chosen Python to do the same project but that&#8217;s a whole different topic. For this project we will do something Ruby excels at: reopening existing classes and injecting more code.</li>
<li><a id="aptureLink_2DDeKXxZsP" href="http://rack.rubyforge.org/">Rack</a>: a webserver interface written in Ruby and inspired by <a id="aptureLink_Jchqx9HIiw" href="http://www.wsgi.org/wsgi/">Python&#8217;s WSGI</a>. Basically, it&#8217;s a defined API to interact between webservers and web frameworks. <span style="color: #000000;">It&#8217;s used by most common Ruby web frameworks, from Sinatra to Rails</span> (btw, Rails3 is going to be even more Rack-focused than it already is). So, very simply put, the webserver receives a request, passes it to Rack, that converts it, passes it to your web framework and the web framework sends a response in the expected format (more on Rack later).</li>
<li><a id="aptureLink_LN4oL6D0oH" href="http://couchdb.apache.org/">CouchDB</a>: Apache&#8217;s document-oriented database. RESTful API, schema-less, written in Erlang with built-in support for map/reduce. For this project, I&#8217;m using <a id="aptureLink_tlTW2NkUta" href="http://github.com/mattetti/couchrest">CouchRest</a>, a Ruby wrapper for Couch.</li>
</ul>
<h2>Goal: Log Couch requests and analyze data</h2>
<p>Let&#8217;s say we have a Rails, Sinatra or Merb application and we are using CouchRest (maybe we are using CouchRest and ActiveRecord, but let&#8217;s ignore that for now).</p>
<p>Everything works fine but we would like to profile our app a little and maybe optimize the DB usage. The default framework loggers don&#8217;t support Couch. The easy way would be to tail the Couch logs or look at the logs in <a id="aptureLink_W2ygfTNmX0" href="http://janl.github.com/couchdbx/">CouchDBX</a>. Now, while that works, we can&#8217;t really see what DB calls are made per action, so it makes any optimization work a bit tedious. (Note that Rails3 will have some better conventions for logging, making things even easier)</p>
<p>So, let&#8217;s see how to fix that. Let&#8217;s start by looking at Rack.</p>
<h2>Rack Middleware</h2>
<p>Instead of hacking a web framework specific solution, let&#8217;s use Rack. Rack is dead simple, you just need to write a class that has a <em>call</em> method.<br />
<script src="http://gist.github.com/155420.js"></script> In our case, we don&#8217;t care about modifying the response, we just want to instrument our app. We just want our middleware to be transparent and let our webserver deal with it normally.    <script src="http://gist.github.com/155425.js"></script></p>
<p>Here we go &#8230; that wasn&#8217;t hard, was it? We keep the application reference in the @app variable when a new instance of the middleware is created. Then when the middleware is called, we just call the rest of the chain and pretend nothing happened.</p>
<p><script src="http://gist.github.com/155432.js"></script> As you can see, we just added some logging info around the request. Let&#8217;s do one better and save the logs in CouchDB:  <script src="http://gist.github.com/155437.js"></script></p>
<p>Again, nothing complicated. In our rackup file we defined which Couch database to use and we passed it to our middleware (we change our initialize method signature to take the DB).<br />
Finally, instead of printing out the logs, we are saving them to the database.</p>
<p>W00t! At this point all our requests have been saved in the DB with all the data there, ready to be manipulated by some map/reduce views we will write. For the record, you might want to use the bulk_save approach in CouchDB which will wait for X amount of records to save them in the DB all at once. Couch also let&#8217;s you send new documents, but only save it to the DB every X documents or X seconds.</p>
<p><img class="alignnone" title="log document" src="http://img.skitch.com/20090726-ebmpgjtrc6x8239ia69kmri1rt.jpg" alt="" width="715" height="505" /></p>
<p>As you can see, our document contains the timestamps and the full environment as a hash.</p>
<p>All of that is nice, but even though we get a lot of information, we could not actually see any of the DB calls made in each request. Let&#8217;s fix that and inject our logger in CouchRest (you could apply the same approach to any adapter).</p>
<p>Let&#8217;s reopen the HTTP Abstraction layer class used by CouchRest and inject some instrumentation:</p>
<p><script src="http://gist.github.com/155442.js"></script></p>
<p>Again, nothing fancy, we are just opening the module, reopening the methods and wrapping our code around the <em>super</em> call (for those who don&#8217;t know, <em>super</em> calls the original method).</p>
<p>This is all for Part I. In Part II, we&#8217;ll see how to process the logs and make all that data useful.</p>
<p>By the way, if you make it to <a id="aptureLink_aF4OSFnjjA" href="http://www.railssummit.com.br/">RailsSummit</a>, I will be giving a talk on Rails3 and the new exciting stuff you will be able to do including Rack based stuff, CouchDB, MongoDB, new DataMapper etc..</p>
<p><a href="http://railssummit.com.br/"><img class="aligncenter" title="RailsSummit 2009" src="http://railssummit.com.br/images/banners/en_souPalestrante_210x60.jpg" alt="" width="210" height="60" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2009/07/27/ruby-rack-and-couchdb-lots-of-awesomeness/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>RailsConf 2009</title>
		<link>http://merbist.com/2009/05/08/railsconf-2009/</link>
		<comments>http://merbist.com/2009/05/08/railsconf-2009/#comments</comments>
		<pubDate>Fri, 08 May 2009 20:18:18 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[rails3]]></category>
		<category><![CDATA[railsconf]]></category>
		<category><![CDATA[vegas]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=487</guid>
		<description><![CDATA[RailsConf 2009 has now finished.  This time last year, no one would have ever guessed that the Merb and Rails teams would join forces and focus on what will hopefully be known as one of the best Web Frameworks. It was encouraging to see so many people excited about what&#8217;s being ported over from Merb [...]]]></description>
				<content:encoded><![CDATA[<p>RailsConf 2009 has now finished.  This time last year, no one would have ever guessed that the Merb and Rails teams would join forces and focus on what will hopefully be known as one of the best Web Frameworks.</p>
<p>It was encouraging to see so many people excited about what&#8217;s being ported over from Merb and the new options available to people who are currently limited by the existing stack. For those interested in pushing Rails further and doing stuff out of the norm, here are my slides. <a href="http://www.workingwithrails.com/person/5919-arthur-zapparoli" target="_blank">Arthur Zapparoli</a> from <a href="http://www.rubyonrails.pro.br/" target="_blank">Brazilian Rails squad</a> recorded most of the talk and told me he will upload the video ASAP. You can also read <a href="http://yehudakatz.com/2009/05/08/railsconf-wrapup/" target="_blank">Yehuda Katz&#8217; blog</a> which covers what he talked about.</p>
<div id="__ss_1396365" style="width: 425px; text-align: left;"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="Rails3: Stepping off of the golden path" href="http://www.slideshare.net/mattetti/rails3-stepping-off-of-the-golden-path?type=presentation">Rails3: Stepping off of the golden path</a><object width="425" height="355" data="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=steppingoffofthegoldenpath-090506154117-phpapp01&amp;rel=0&amp;stripped_title=rails3-stepping-off-of-the-golden-path" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=steppingoffofthegoldenpath-090506154117-phpapp01&amp;rel=0&amp;stripped_title=rails3-stepping-off-of-the-golden-path" /><param name="allowfullscreen" value="true" /></object></p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/mattetti">Matt Aimonetti</a>.</div>
</div>
<p>It was really great to meet a lot of new people as well as people I only knew via IRC/IM/twitter.</p>
<p>It was a great honor to finally meet <a href="http://twitter.com/dkubb" target="_blank">Dan Kubb</a> (DataMapper), <a href="http://twitter.com/ninh" target="_blank">Ninh Hernandez-Búi</a> &amp; <a href="http://twitter.com/phusion_nl" target="_blank">Hongli McLovin Lai (Phusion)</a>, <a href="http://twitter.com/peterc" target="_blank">Peter Cooper</a> (<a href="http://www.rubyinside.com/" target="_blank">RubyInside</a>), <a href="http://twitter.com/rsim" target="_blank">Raimonds Simanovskis</a> (Oracle adapter for AR), <a href="http://weblogs.java.net/blog/arungupta/" target="_blank">Arun Gupta</a> (Sun/Glassfish),  <a href="http://twitter.com/copiousfreetime" target="_blank">Jeremy Hinegardner</a> (crate), <a href="http://maximilien.org" target="_blank">Michael Maxilien</a> (IBM), Dana Jones (<a href="http://railsbridge.org/" target="_blank">railsbridge</a>), Zach Zolton &amp; Geoff Buesing (CouchRest) and of course the Brazilian crew (lots of awesome .br guys came this year, I&#8217;m looking forward to RailsSummit) and last but not least, the French speaking crew (I&#8217;m glad to see Ruby is picking up back home). (I know I&#8217;m forgetting people&#8230; sorry about that)</p>
<p>It was also really nice to talk with some experts like Dave Astels, Aslak Hellesøy, Rich Kilmer, David Chelimsky, Ryan Brown, Derek Neighbors etc.. to get their feedback on various projects I&#8217;m working on.</p>
<p>Leaving Vegas, I feel like the Rails community is expanding quickly (it was the first RailsConf for 1/4 to 1/5 of the attendees) and that the community is organizing itself to welcome a new audience (better documentation, great initiatives like <a href="http://railsbridge.org/" target="_blank">railsbridge.org</a>, willingness to help), as well as trying to be more available to the &#8216;Enterprise&#8217; world.</p>
<p>These feelings were enforced during our Rails Activism BOF and after talking with 3rd party developers and sponsors really trying to solve problems that newcomers to Rails are now facing. This is an exciting time.</p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2009/05/08/railsconf-2009/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Merb 1.0.11 (minor release)</title>
		<link>http://merbist.com/2009/03/31/merb-1011-minor-release/</link>
		<comments>http://merbist.com/2009/03/31/merb-1011-minor-release/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 06:10:57 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=462</guid>
		<description><![CDATA[Following the DataMapper 0.9.11 release, we just pushed a new minor Merb release. This release is mainly targeting new developers and Windows users wanting to install the full Merb stack. Others can simply update their dependencies if they use the dependencies.rb file or install the new gems if nothing is bundled and no hard dependencies [...]]]></description>
				<content:encoded><![CDATA[<p>Following the DataMapper 0.9.11 release, we just pushed a new minor Merb release.</p>
<p>This release is mainly targeting new developers and Windows users wanting to install the full Merb stack. Others can simply update their dependencies if they use the dependencies.rb file or install the new gems if nothing is bundled and no hard dependencies are set.</p>
<p>Merb is a metagem which installs a bunch of other gems (merb-core, DataMapper and a lot of small gems). The problem was that Merb was trying to install DM and dm-types, unfortunately, dm-types had a dependency on a gem which couldn&#8217;t be installed on Windows. All of that is now fixed and Windows users can install Merb 1.0.11 without having to manually pick the gems they need.</p>
<p>This release also includes a fix for people using CouchRest, a CouchDB Document Mapping DSL.</p>
<p>Merb 1.1 is still planned to be released in April. A majority of the work has been done, but since Yehuda and myself are going to be traveling, the release will be slightly delayed.</p>
<p>The great news regarding Merb 1.1 is that, on top of being fully Ruby 1.9 compatible, and using action-orm, and being closer to Rack, Yehuda and Carl have been working on the router to make it awesomer and ready for mountable apps <img src='http://merbist.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Stay tuned for more news.</p>
<p>update: People using CouchRest or another CouchDB ORM/DSL make sure you define your resources route with an identifier:</p>
<p>resources :articles,        :identify =&gt; :id</p>
<p>Otherwise, resource(@article) won&#8217;t work. (This is usually done by the merb orm plugin and I might add it to CouchRest in the future)</p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2009/03/31/merb-1011-minor-release/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Merb 1.0.10 (minor release)</title>
		<link>http://merbist.com/2009/03/18/merb-1010-minor-release/</link>
		<comments>http://merbist.com/2009/03/18/merb-1010-minor-release/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 01:11:35 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=456</guid>
		<description><![CDATA[We just pushed a really tiny update because of a bug in 1.0.9 affecting people using: Merb::Config[:max_memory] Merb::Config[:max_memory] has been fixed and now polls for memory usage every 30s instead of 0.25s. (memory is set in KB) This new version also uses DataMapper.repository instead of Kernel#repository (DM and Vlad related bug fix) We are still [...]]]></description>
				<content:encoded><![CDATA[<p>We just pushed a really tiny update because of a bug in 1.0.9 affecting people using: Merb::Config[:max_memory]</p>
<p>Merb::Config[:max_memory] has been fixed and <span class="status-body"><span class="entry-content">now polls for memory usage every 30s instead of 0.25s. (memory is set in KB)<br />
</span></span></p>
<p><span class="status-body"><span class="entry-content">This new version also uses DataMapper.repository instead of Kernel#repository (DM and Vlad related bug fix)</span></span></p>
<p><span class="status-body"><span class="entry-content"><br />
</span></span></p>
<p><span class="status-body"><span class="entry-content">We are still on schedule for Merb 1.1 which is planned for early April. (If you install Merb from our edge server, the latest version should already be Ruby 1.9 compatible)<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2009/03/18/merb-1010-minor-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merb 1.1 roadmap</title>
		<link>http://merbist.com/2009/03/02/merb-11-roadmap/</link>
		<comments>http://merbist.com/2009/03/02/merb-11-roadmap/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 19:20:34 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=448</guid>
		<description><![CDATA[Yesterday, Carl Lerche, Yehuda Katz and myself had a meeting to discuss Merb 1.1&#8242;s roadmap. Key items on the agenda were: Ruby 1.9 Mountable apps migration path to Rails3 After spending some time arguing back and forth, we decided that few things had to happen before we could migrate the current slices to pure mountable [...]]]></description>
				<content:encoded><![CDATA[<p>Yesterday, Carl Lerche, Yehuda Katz and myself had a meeting to discuss Merb 1.1&#8242;s roadmap.</p>
<p>Key items on the agenda were:</p>
<ul>
<li> <strong>Ruby 1.9</strong></li>
<li> <strong>Mountable apps</strong></li>
<li> <strong>migration path to Rails3</strong></li>
</ul>
<p>After spending some time arguing back and forth, we decided that few things had to happen before we could migrate the current slices to pure mountable apps. Freezing the releases while waiting to get that done doesn&#8217;t seem like a good idea.</p>
<h3>Therefore, here is the plan for Merb 1.1:</h3>
<ul>
<li><strong>Ruby 1.9 full compatibility</strong> (with the very appreciated help from <a href="http://twitter.com/maiha" target="_blank">Maiha</a> and <a href="http://blog.s21g.com/takiuchi" target="_blank">Genki</a> (preview of their work <a href="http://merbi.st" target="_blank">there</a>)). Because Merb depends on different gems, we also need to work with 3rd party developers to make sure Merb&#8217;s dependencies are Ruby 1.9 compatible</li>
</ul>
<ul>
<li><strong>Merb helpers</strong> (fixes, enhancement and missing helpers)</li>
</ul>
<ul>
<li><strong>Make Merb controllers, rack endpoints</strong>. This is a fully transparent change for the framework users. By making this switch, we offer more flexibility to the router (you can mount a sinatra app for instance) and we adopt the same approach as Rails 2.3 making the transition to 3 much easier and facilitating the implementation of mountable apps. Again, this is an internal change and you won&#8217;t have to change anything in your application.</li>
</ul>
<ul>
<li><strong>Router optimization</strong>, Carl has been working on few tricks/optimizations for the router that will be available in 1.1</li>
</ul>
<ul>
<li><strong>Namespacing</strong>. If we want to make every single application, a potential mountable app, we need to namespace our applications. This is something we already do with slices, but currently generated applications are not namespaced. We are planning on doing that for 1.1 (backward compatible) to make mountable apps easier.</li>
</ul>
<ul>
<li><strong>ActiveORM</strong>. ActiveORM is an ORM abstraction layer developed by Lori Holden (AT&amp;T interactive) which helps with helpers and other parts of your code accessing your ORM directly. For instance, the errors_for method need to be implemented differently depending on the underlying ORM. ActiveORM offers mapping for the 3 major Ruby ORMs: ActiveRecord, DataMapper and Sequel but let you hook to it if you want to extend ActiveORM to support your own ORM.</li>
</ul>
<p>There is plenty to do but we decided to still try to have an expected release date: around the end of March. As always in the OSS world, this is something we hope for, not a promise <img src='http://merbist.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>What about Merb 1.2?</h3>
<p>1.2 will focus on mountable apps and we hope to get started on a separate branch before we release 1.1. However, mountable apps are hard to spec and we need a better feedback from the community. Tell us what you like with slices and what you don&#8217;t like. Let us know how you would like the new mountable apps to work. Be as precise as possible. (you can leave a comment here or on the mailing list)</p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2009/03/02/merb-11-roadmap/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>merb progress</title>
		<link>http://merbist.com/2009/02/06/merb-progress/</link>
		<comments>http://merbist.com/2009/02/06/merb-progress/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 22:09:27 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=439</guid>
		<description><![CDATA[As they say: fail early, fail often. Well, I&#8217;ve been failing to blog recently, but as always I have some good excuses Yehuda has been blogging a lot about the work done on the merge. I have been busy working on probably the awesomest CouchDB Ruby DSL/ORM. I have been working with the Rails Activists [...]]]></description>
				<content:encoded><![CDATA[<p>As they say: fail early, fail often. Well, I&#8217;ve been failing to blog recently, but as always I have some good excuses <img src='http://merbist.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<ul>
<li><a href="http://yehudakatz.com/" target="_blank">Yehuda</a> has been blogging a lot about the work done on the merge.</li>
<li>I have been busy working on probably the <a href="http://github.com/mattetti/couchrest" target="_blank">awesomest CouchDB Ruby DSL/ORM</a>.</li>
<li>I have been working with the <a href="http://weblog.rubyonrails.com/activism" target="_blank">Rails Activists</a> on the <a href="http://newwiki.rubyonrails.org" target="_blank">new wiki</a> and many other projects.</li>
<li>My sister is visiting from France <img src='http://merbist.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   (most of my free time is not spent in front of a computer anymore :p)</li>
<li>I&#8217;ve been playing with MacRuby (see the end of the post)</li>
<li>Ohh and spent some time maintaining Merb and preparing 1.0.9</li>
</ul>
<h2>Merb 1.0.9</h2>
<p>Merb 1.0.8.1 has some issues with the merb-cache settings set in init.rb being called twice when you use some Rake tasks. (rake db:automigrate for instance).The problem is due to the fact that the rake tasks load the dependencies twice:</p>
<ul>
<li> Merb rake file loads all of your app dependencies and their rake tasks. (for instance rake db:automigrate is a rake task coming from merb_datamapper)</li>
<li>The task you are invoking might start merb itself to load the models etc.. and starting Merb reloads the dependencies.</li>
</ul>
<p>Dependencies have the option to have a require block. A require block is a Proc that gets called when the dependency is being required. In the case of 1.8.1, we added a default block to set merb-cache. The problem was that the block was being set and called twice and merb-cache was complaining that the default cache was already setup.</p>
<p>To fix this issue we worked on a band-aid type solution (read: kinda evil but ok). Even if you start Merb multiple times, the init.rb file will no only load once and the dependency require blocks will only be called once. However, in the case of merb-cache, the setup block is being called everytime you go through the bootloader. That&#8217;s why we added a verification on the block itself. In the long term, we are going to fix things nicely and optimize the way merb-cache loads.</p>
<p>We also addressed some other issues. Some people have been pointed out issues with some merb-helpers and patches were provided by the community (thanks a lot).</p>
<p>Talking about patches, we also accepted a patch fixing a small problem with merb-auth and some open-id servers.</p>
<p>Ruby 1.9.1: We started going through all the different places were things are not compatible yet, most of the work that needs to be done right away is focused on the router. Carl has been working on that and you can check his branch to see how we are doing. During the next week we will try to get things ironed out, we still don&#8217;t know how we are going to deal with the fact that action-args uses parsetree which is not 1.9.1 compatible.</p>
<p>The upcoming version also gets a brand new feature: memory monitoring by the merb master process. The master process checks that the workers don&#8217;t use too much memory ( you can set what you consider beign too much memory using Merb::Config[:max_memory]) and if one of the workers reaches the limit, it does a kill -1. It then waits a configured amount of seconds (defaults to 5) then kill using -9.</p>
<p>Finally, we also fixed a bunch of tiny issues.</p>
<p>1.0.9 should be released in the next few days.</p>
<hr />
<h2>MacRuby</h2>
<p>Finally, because for those interested in MacRuby here are my slides from last night&#8217;s SDRuby meetup:</p>
<div id="__ss_996441" style="width: 425px;"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" title="MacRuby - When objective-c and Ruby meet" href="http://www.slideshare.net/mattetti/macruby-when-objectivec-and-ruby-meet?type=presentation">MacRuby &#8211; When objective-c and Ruby meet</a><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=macrubysdruby-1233909088215608-1&amp;rel=0&amp;stripped_title=macruby-when-objectivec-and-ruby-meet" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://static.slideshare.net/swf/ssplayer2.swf?doc=macrubysdruby-1233909088215608-1&amp;rel=0&amp;stripped_title=macruby-when-objectivec-and-ruby-meet" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/mattetti">Matt Aimonetti</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2009/02/06/merb-progress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>latest Merb and Rails 3.0 news</title>
		<link>http://merbist.com/2008/12/29/latest-merb-and-rails-30-news/</link>
		<comments>http://merbist.com/2008/12/29/latest-merb-and-rails-30-news/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 21:57:38 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 3.0]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=412</guid>
		<description><![CDATA[Foy Savas, author or the &#8220;merb way&#8221; wrote a very well written post on &#8220;Rails monoculture&#8221; Pat Eyler, wrote an article asking if Rails and Merb would be better together. Ben Aldred, tell people to stop worrying and start loving Rails 3. fotonauts.com a Rails and Merb Photo website developed by an ex-apple team, was [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://foysavas.com"><img class="alignleft size-medium wp-image-414" title="foy-savas" src="http://merbist.com/wp-content/uploads/2008/12/foy-savas-1.png" alt="" width="200" height="235" /></a></p>
<ul>
<li><a href="http://foysavas.com" target="_blank">Foy Savas</a>, author or the &#8220;<a href="http://my.safaribooksonline.com/9780321601636" target="_blank">merb way</a>&#8221; wrote a very well written <a href="http://www.foysavas.com/blog/2008/12/25/lets-be-clear-the-rails-monoculture-is-over.html" target="_blank">post on &#8220;Rails monoculture&#8221;</a></li>
<li><a href="http://on-ruby.blogspot.com/" target="_blank">Pat Eyler</a>, wrote an article asking if <a href="http://on-ruby.blogspot.com/2008/12/rails-and-merb-better-together.html" target="_blank">Rails and Merb would be better together</a>.</li>
<li><a href="http://www.geekmade.co.uk/" target="_blank">Ben Aldred</a>, tell people to <a href="http://www.geekmade.co.uk/2008/12/stop-worrying-and-start-loving-rails-3/" target="_blank">stop worrying and start loving Rails 3</a>.</li>
<li><span class="entry-content"><a href="http://www.fotonauts.com/" target="_blank">fotonauts.com</a> a Rails and Merb Photo website developed by an ex-apple team, was <a href="http://www.techcrunch.com/2008/12/24/fotonauts-opens-up-a-little-more-skip-the-5000-long-waitlist/" target="_blank">featured in TechCrunch</a>. Fotonauts is the perfect example of an app that will bain a lot from the merge.</span></li>
<li><a href="http://yehudakatz.com" target="_blank">Yehuda</a> has been blogging a lot about every single step and even though most people are enjoying a well deserved break, you can read the <a href="http://yehudakatz.com/2008/12/26/dispatch-from-the-front-lines/" target="_blank">details</a> <a href="http://yehudakatz.com/2008/12/27/status-memorandum/" target="_blank">of</a> the <a href="http://yehudakatz.com/2008/12/29/another-rails-2x3-update/" target="_blank">work</a> started on the merge.</li>
</ul>
<p>Basically, the work started, we are getting familiar with the rails code base and are optimizing things slowly but surely with a focus on testing JRuby. The Merb router is being optimized and ported over to Rails 3.0. Rails and Merb developers will be able to stick to their DSL (so we stay backward compatible). Merb bootloader is also being ported over without breaking the backward compatibility. Finally, ActiveSupport is being broken down in more manageable/independant chunks so people will be able to pick only what they want to use. A &#8220;mini&#8221; version is also on the work.</p>
<ul>
<li><a href="http://yehudakatz.com/2008/12/28/merb-107-release-notes/" target="_blank">Merb 1.0.7 got released</a> yesterday with a bunch of bug fixes.</li>
<li>merb_sequel 1.0 should be released sometime this week and i&#8217;m planning on adding rails i18n syntax support to merb_babel.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2008/12/29/latest-merb-and-rails-30-news/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Merb/Rails merge, or Why should merbists be happy?</title>
		<link>http://merbist.com/2008/12/25/merb-rails-merge-or-why-should-merbists-be-happy/</link>
		<comments>http://merbist.com/2008/12/25/merb-rails-merge-or-why-should-merbists-be-happy/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 04:11:02 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[rails 3.0]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=398</guid>
		<description><![CDATA[December 23, 2008, was an important day for the Ruby community. People who used to argue and not get along, have decided to sit down, talk and evaluate their differences. The end result is a strong collaboration of two teams who share the exact same goal. Overall, the news was very well received, just look [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://flickr.com/photos/xrrr/2478140383/"><img class="alignright" title="merge" src="http://farm4.static.flickr.com/3211/2478140383_8e2e4ab7a3_m.jpg" alt="" width="240" height="160" /></a>December 23, 2008, was an important day for the Ruby community. People who used to argue and not get along, have decided to sit down, talk and evaluate their differences. The end result is a strong collaboration of two teams who share the exact same goal.</p>
<p>Overall, the news was very well received, just look at the tweets out there and the comments on <a href="http://yehudakatz.com/2008/12/23/rails-and-merb-merge/" target="_blank">Yehuda&#8217;s</a> and <a href="http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3" target="_blank">Rails&#8217; blogs</a>.</p>
<p>Interestingly enough, the Rails community really embraced this decision and just got totally excited about the perspective of merging merb&#8217;s philosophy and expertise into Rails. If you re-read David&#8217;s blog post you can see that it&#8217;s a <strong>real homage to Merb</strong>.</p>
<p>The rest of the internet sounds pretty happy about the news, here are few posts:</p>
<ul>
<li><a href="http://arstechnica.com/news.ars/post/20081224-ruby-on-rails-and-merb-to-merge-for-rails-3.html" target="_blank">arstechnica.com</a></li>
<li><a href="http://www.internetnews.com/dev-news/article.php/3793296/Merb+Merges+With+Rails.htm" target="_blank">internetnews</a></li>
</ul>
<p>Even <a href="http://www.zedshaw.com" target="_blank">Zed the entertainer</a> thought it was a good thing:</p>
<blockquote><p><a href="http://www.zedshaw.com/blog/index.html" target="_blank">&#8220;I honestly didnâ€™t think that would ever happen. I just assumed that Merb<br />
would eventually wipe out Rails by being the better framework, or theyâ€™d<br />
wipe each other out soon.</a></p>
<p><a href="http://www.zedshaw.com/blog/index.html" target="_blank">So, congrats are in order. You guys are finally grown-ups and now have<br />
the chance to make something better.&#8221;</a></p></blockquote>
<p>Some <a href="http://iamruinous.com/2008/12/23/why-merb-becoming-rails-3-is-a-good-thing/" target="_blank">merbists like Jade Meskill</a> really understood what we are trying to do while some other ones got really <a href="http://www.mr-eel.com/archives/158" target="_blank">mad at us</a>.</p>
<p>I think a pattern emerged from the negative reactions:</p>
<ul>
<li>Why merge when we are about to win?!</li>
<li>What does Merb win by being merged into Rails?</li>
<li>Why not merge Rails into Merb?</li>
<li>You are killing innovation by killing the competition</li>
<li>You screwed us over and now I have to go &#8220;back&#8221; to Rails</li>
<li>Rails 3.0 won&#8217;t even be as good as Merb 1.x</li>
<li>The Rails team won&#8217;t let you do what you have to do to merge Merb into Rails</li>
<li>DHH is a jerk</li>
</ul>
<p>Let me quote Yehuda:Â  <strong>&#8220;Calm yourselves <img src='http://merbist.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> &#8221;</strong>.</p>
<h2>Why merge when we are about to win?!</h2>
<p>This is probably the most rational argument. This is also something the Merb core team considered for a little bit.<br />
Merb is gaining huge momentum and the target audience was very reactive to what we did.<br />
<a href="http://flickr.com/photos/mhaithaca/1317815300/"><img class="alignleft" title="super heroes" src="http://farm2.static.flickr.com/1087/1317815300_095983272e_m.jpg" alt="" width="240" height="160" /></a>People such as Yellow Pages, Wikipedia and even Adobe started using or looking seriously at Merb because of its focus on modularity and performance.<br />
We started building an elite community and we were pretty proud of that.</p>
<p>But take a moment to think about it. Our goal has never been to hurt or compete with Rails. Our goals were to get modularity, performance and a strong API. If the Rails team really wants that, and will work on it, why should we work against each other?<br />
It&#8217;s not about winning or losing. It&#8217;s all about the long term plan of your framework, about the people involved and the community behind it. We had to take ourselves out of the equation and consider what would be good for the Ruby community.</p>
<h2>What does Merb win by being merged into Rails?</h2>
<p>People seem to easily find things we might lose but have a hard time finding things we are gaining.<br />
<img class="alignright size-medium wp-image-404" title="rails" src="http://merbist.com/wp-content/uploads/2008/12/rails.png" alt="" width="87" height="112" />Looking at it on the very short term, this is probably correct. The merb team will have to learn how to work with the Rails team.<br />
We need to understand the reasons behind every single aspect of the code and find ways of merging things nicely.<br />
On top of that, we still need to work on merb as promised. (see Wycats&#8217; post)</p>
<p>However, in the long term we get all the benefits of Rails:<br />
- stability<br />
- community<br />
- traction<br />
- experience<br />
- don&#8217;t have to always justify why use Merb instead of Rails</p>
<p>But more importantly, we extend our team.</p>
<p>Most people using a framework might not realize what it is to work on a big Open Source project.<br />
When you work on an OSS project, people come and go, and that&#8217;s why you usually have a core team of people you can rely on.<br />
Merb has a lot of contributors but a small core team of 5 people (Yehuda, Carl, Daniel, Michael and myself).<br />
Managing a project, such as merb, requires a tremendous amount of time and patience. Rails has the same problem with its core team of 6 people. People have lives, business, projects etc&#8230;</p>
<p>Joining two teams of experts in developing web frameworks in Ruby is like if in the next Soccer World Cup, the French and Italian teams would go on the fields at the same time to beat other teams. 22 players on 1 side, training and learning together. American readers, please imagine the Giants and the Colts facing the Green Bay Packers (I was told I don&#8217;t like the Packers).</p>
<p>Long term, you will get better quality and more frequent releases. We also have different world views and backgrounds which means we will learn a lot from each other, again that means better code for you guys <img src='http://merbist.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Why not merge Rails into Merb?</h2>
<p>That&#8217;s actually a good question. We discussed maybe using merb-core as a base for Rails 3.0<br />
The truth is that Merb 2.0 would probably be as big as Rails but more modular.<br />
So we have the choice to keep on building on top of Merb 2.0 or deconstruct Rails.<br />
As the Russians say: &#8216;Ð»Ð¾Ð¼Ð°Ñ‚ÑŒ â€” Ð½Ðµ ÑÑ‚Ñ€Ð¾Ð¸Ñ‚ÑŒ&#8217;, it&#8217;s always easier to take things apart <img src='http://merbist.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignright" title="merge rails" src="http://farm4.static.flickr.com/3033/2814371262_04b9876490_m.jpg" alt="" width="180" height="240" />Rails already has a test suite, it has already been tested on the wild for a while and its internals are known to many developers. Taking apart the code to make it faster, cleaner and more modular is arguably easier than reinventing the wheel. At the end of the day it doesn&#8217;t really matter from which end you start as long as you end up with the same result.</p>
<p>Some people even asked to come up with a new name for the merged project. Meails, Mr Ails, Reverb, Reab were suggested. While I thought it was a joke, some people were really serious. Can you imagine if during the recent bailout, banks changed names every time they were purchased by another bank? People would be super confused and would not even know where to send their mortgage payments.<br />
On top of that, Rails has a huge user base compared to Merb and has an immense brand recognition in the world at large, it would be foolish to throw that away.</p>
<p>Let&#8217;s not be chauvinistic and see what&#8217;s best for all.</p>
<h2>You are killing innovation by killing the competition</h2>
<p>Again, a good point but my question to you is: Should we stay in the competition just for the sake of it?</p>
<p>Rails clearly told us: we want what you have and we would love you to work with us. So the options were:</p>
<ul>
<li>tell them to go to hell and let them try to redo what we already did and know how to do.</li>
<li> accept to work with them and make Rails a better framework.</li>
</ul>
<p><em>Option 1</em> would keep the competition alive, but now you have 2 groups of people trying to do the same thing and being better at different aspects. The community gets confused and communication breaks.</p>
<p><em>Option 2</em>: we lose the Merb vs Rails competition, but we double the amount of people working on Rails and therefore increase the change to make it better faster.</p>
<p>We went for option 2 and we know there is already some competition out there and there will be more coming up soon. I don&#8217;t think it&#8217;s realistic to expect us not to merge because we want to keep the competition going.</p>
<h2>You screwed us over and now I have to go &#8220;back&#8221; to Rails</h2>
<p>Yehuda will blog about some more detailed examples as we are making progress, but you need to stop thinking that Merb will just be absorbed into Rails.<br />
If Rails just wanted to add some &#8220;Merb flavor&#8221; to Rails, they would have just taken whatever they needed and would not be interested in a merge.<br />
See Rails 3.0 as a new generation of Rails, whatever we promised you for merb 2.0 plus all the goodies from Rails. Rails users will still have their default stack and all choices will be made for them (like in the current Merb stack). The difference for standard Rails user will be better performance, a static API and an option to go off the &#8220;golden path&#8221;.<br />
Merbists won&#8217;t lose the stuff they like in Merb, stacks, full support for DataMapper, Sequel and other ORMS, jQuery or other JS library, opt-in solution using just rails-core, better core isolation, built-in RSpec and webrat support, slices, merb-cache, merb-auth and all the other key plugins that will be ported over.</p>
<p>To be able to achieve all of that, we will have to make some infrastructure and code modifications.</p>
<p>Rails internals should end up:</p>
<p>* way less magical (even Merb uses some magic, but we&#8217;ll make sure to keep it to a minimum)<br />
* returning shorter and cleaner stack traces<br />
* cleaner (required for the new API)<br />
* better isolated (required to increase the modularity)<br />
* alias_method_chain won&#8217;t be available at the public API level (we probably still will need some chaining mechanism internally, but that&#8217;s a different story)</p>
<p>So, no, you don&#8217;t have to go &#8220;back&#8221; to Rails. In fact, imagine you could do exactly what Rails does but with the performance and modular architecture of Merb. That&#8217;s what you will get with Rails 3.0.</p>
<h2>Rails 3.0 won&#8217;t even be as good as Merb 1.x</h2>
<p>I think I mainly replied to this question in my previous answer.<br />
There is no reason why Rails 3.0 won&#8217;t be better than Merb 1.x.Â  Actually, I believe our API will actually be even better. With the help of David, the existing Rails core team, and the Rails community, we will be able to define an awesome API that will change the way ruby web development will be done.<br />
The merb API is great but we already know some of its limitations and we don&#8217;t have as many plugin developers to work with. Working with plugin developers is something I&#8217;m personally excited about. As a Rails developer I have been really frustrated when using 3rd party plugins and trying to develop my own.<br />
Having a well tested, developed against, public API will make all the Rails 3.0 plugins so much better. And because Merb plugins already use an API, we will be able to port all the plugins over, so it will be at least as good as 1.x<br />
Also, we are going to work on real app benchmark tests to make sure the performance gain is at least as good as what we have with Merb.</p>
<p>Migration will be easy and well documented. We are not giving up on the Merb book and it will be very useful to explain the Merb way to new comers wanting an idea of the new stuff in Rails 3.0. It will also be the best source of information to migrate your app to Rails 3.0.</p>
<p>Talking about migration, we promised to give you a sane migration path when it will be time to migrate.<br />
Again, don&#8217;t freak out because we are changing the name, the spirit of Merb will keep on living.</p>
<h2>The Rails team won&#8217;t let you do what you have to do to merge Merb into Rails</h2>
<p>In all honestly, I was worried about that. I was wondering if all of that was not an evil scam planned by DHH to kill Merb as it was getting a good momentum. I like conspiracy theories and it sounded pretty good.<br />
To my surprised, after a few private conversations with David, I realized that he was genuinely interested in making Rails better for people and fulfill the needs of people who need more flexibility.<br />
Just re-read his blog post <a href="http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3">http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3</a>. After what he said, how can he back up and just keep Rails the way it is? And why in the world would he want that to happen?<br />
It&#8217;s a team effort and we have already spent hours and hours discussing some details. I can promise you that the Rails team is very excited about the new stuff that&#8217;s coming up. But don&#8217;t forget that it&#8217;s a merge and we are reconsidering some of the stuff we did in Merb to better re-implement them in Rails 3.0.<br />
So far, I haven&#8217;t seen any of the Rails core team member tell us, no you can&#8217;t do that because that&#8217;s not the way it&#8217;s done in Rails or because we just don&#8217;t like it.</p>
<h2>DHH is a jerk</h2>
<p>Recently, in an interview I gave to rubylearning.com <a href="http://rubylearning.com/blog/2008/12/18/matt-aimonetti-why-on-earth-would-you-ignore-merb/">http://rubylearning.com/blog/2008/12/18/matt-aimonetti-why-on-earth-would-you-ignore-merb/</a> I mentioned that a big difference between Merb and Rails was the way we were dealing with the user base.<br />
I quoted David from an Interview he gave to InfoQ <a href="http://www.infoq.com/interviews/David-Hansson">http://www.infoq.com/interviews/David-Hansson</a> back in 2006.</p>
<p>As part of the merging evaluation process we literally spent hours talking back and forth. I had a seriously hard time believing that Rails and David honestly wanted to change their world views. How can you go from saying what you said in 2006 to adopting what Merb is pushing for: letting the framework bend to make what each developer wants if he doesn&#8217;t want to follow the &#8220;golden path&#8221;?</p>
<p>Interestingly enough, David recently addressed this point on his blog. <a href="http://www.loudthinking.com/posts/36-work-on-what-you-use-and-share-the-rest">http://www.loudthinking.com/posts/36-work-on-what-you-use-and-share-the-rest</a></p>
<p>&#8220;I wanted to take a few minutes to address some concerns of the last 4%. The people who feel like this might not be such a good idea. And in particular, the people who feel like it might not be such a good idea because of various things that I&#8217;ve said or done over the years.&#8221;</p>
<p>First thing first, David addresses the minority of people worried about his image and what it means for them.<br />
So, David actually cares about hard core merbists and he wants them to join the fun. I personally see this as something very encouraging!</p>
<p>A recurring theme we hear a lot is that Rails becomes whatever DHH/37signals needs/wants. If DHH needs something new, it will make it to Rails, if he doesn&#8217;t need it, it won&#8217;t.</p>
<p>David has a very simple and almost shocking response: DHH != Rails</p>
<p>David is really happy with Rails. Rails satisfies his needs but he knows that some people out there need/want something more/different.</p>
<p>&#8220;I personally use all of those default choices, so do many other Rails programmers. The vanilla ride is a great one and it&#8217;ll remain a great one. But that doesn&#8217;t mean it has to be the only one. There are lots of reasons why someone might want to use Data Mapper or Sequel instead of Active Record. I won&#8217;t think of them any less because they do. In fact, I believe Rails should have open arms to such alternatives.&#8221;</p>
<p>So, you can still think whatever you want about David. What&#8217;s important is that Rails is more than David. It&#8217;s an entire team of people with different needs and different views.</p>
<p>DHH isn&#8217;t a dictator and based on concrete examples such as the &#8220;respond_to vs provides&#8221; discussion, I can reassure you that David has been very receptive to arguments and never tried to force any decision because he thought it was better.</p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2008/12/25/merb-rails-merge-or-why-should-merbists-be-happy/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Rails and Merb core team working together on their next release</title>
		<link>http://merbist.com/2008/12/23/rails-and-merb-merge/</link>
		<comments>http://merbist.com/2008/12/23/rails-and-merb-merge/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 19:50:02 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 3.0]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=382</guid>
		<description><![CDATA[This is huge! While people still try to find some drama in a hypothetical war between Rails and merb &#8230; The Rails team and the Merb team announced today that they will work together on a joined version of the 2 frameworks. This is so exciting! Nobody believed it could ever happen (I personally, seriously [...]]]></description>
				<content:encoded><![CDATA[<h3>This is huge!</h3>
<p>While people still try to find some drama in a hypothetical war between Rails and merb &#8230;</p>
<p><img class="alignright size-medium wp-image-389" title="surprise1" src="http://merbist.com/wp-content/uploads/2008/12/surprise1-296x300.jpg" alt="" width="296" height="300" />The Rails team and the Merb team announced today that they will work together on a joined version of the 2 frameworks. This is so exciting! Nobody believed it could ever happen (I personally, seriously had my doubt).</p>
<p>Yehuda had a <a href="http://yehudakatz.com/2008/12/23/rails-and-merb-merge/" target="_blank">great post</a> laying out the plan and explaining things in details. Check out <a href="http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3" target="_blank">David&#8217;s post </a>explaining why he wants us to work together and his vision of a better Ruby world.</p>
<p>I have to say that I have been impressed by the Rails core team and especially David (DHH).</p>
<p>I&#8217;ve known David for few years now and we had long (sometimes heated) discussions on topics like i18n/l10n for Rails. David is known to be a very opinionated person. But if you come up with the right arguments, he can be convinced and when that happens, he is willing to move forward and shake things up.</p>
<p>This merge is a concrete example that David and the rest of the Rails team care about Rails and the Ruby community more than we usually give them credit for. As a unified team, we are going to change the way web development in Ruby is done!</p>
<p>But what does it mean for you?</p>
<p>I put together a FAQ video which, I hope will answer your questions.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=2607919&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://vimeo.com/moogaloop.swf?clip_id=2607919&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<a href="http://vimeo.com/2607919">Matt Aimonetti: message to all merbists</a></p>
<p>Transcript:</p>
<p>Hi, I&#8217;m Matt Aimonetti from the merb core team and as you might have heard, a big announcement was made earlier today.<br />
I did this video to hopefully answer the questions you might have.</p>
<h3>Q: So what&#8217;s the big news?</h3>
<ul>
<li>merb and Rails team will work together on the next version of their frameworks</li>
<li>merb 2.0 and Rails 3.0 share the same common endpoint</li>
<li>we realized we now have the same objectives and agreed on all the key principles.</li>
<li>merb will provide Rails with agnosticism, modularity, improved performance and a public API.</li>
<li>The end product will be called Rails 3.0 but what real matters is that it&#8217;s a huge gain for the entire community.</li>
</ul>
<h3>Q: What??? I thought there was a war going on between Rails and merb, what happened?</h3>
<ul>
<li> There was no war between Rails and merb</li>
<li> We created merb because Rails was not fitting us</li>
<li> We wanted better performance, more choices/ more modularity and a Public API.</li>
<li> The Rails team now embraces these concepts and want Rails to follow them, so why not work together?</li>
</ul>
<h3>Q: Wait, does that mean that merb is dead?</h3>
<ul>
<li> Absolutely not!</li>
<li> merb development won&#8217;t stop, we are going to keep on releasing updates until Rails 3.0</li>
<li> clear migration path, and upgrading to Rails 3.0 will be as trivial as upgrading from Rails 2.x to Rails 3.0</li>
</ul>
<h3>Q: What does the timeline look like?</h3>
<p>We just started getting together to discuss the technical details. We are shooting for a release at RailsConf 2009. However it&#8217;s hard to estimate this kind of thing so, again, that&#8217;s just an estimate <img src='http://merbist.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Q: I just started a merb project, so what now?</h3>
<p>I&#8217;m sure you had valid reasons to use merb, you needed modularity, performance and a solid API.<br />
Keep on using Merb, we won&#8217;t let you down. The good news is that the next version of merb (Rails 3.0) will be even awesomer!</p>
<h3>Q: What about my client who was looking at using merb for his new project?</h3>
<p>If your client is going to be using merb for valid reasons (and not just because it&#8217;s not Rails) they should still use merb, but with the full understanding that they will end up using Rails in 6 months or so. Again, Rails 3.0 will have what pushed you to use merb.</p>
<h3>Q: I&#8217;ve been involved with the merb-book, what will happen with this project?</h3>
<ul>
<li> Rails 3.0 won&#8217;t get released right away</li>
<li> still need awesome documentation</li>
<li> if we look at Rails 3.0 as merb 2.0, we can easily imagine how the current work can be extended to the new version</li>
<li> Rails team will also include an evangelism team which I will be part of, so will be able to focus more on projects like the book</li>
</ul>
<h3>Q: I&#8217;ve been working on a merb plugin, what should I do?</h3>
<p>Keep working on it! We&#8217;ll assist you with the migration process and the new solid API.</p>
<h3>Q: What if I still have questions?</h3>
<p>Come talk with me, or any member of the new team. We&#8217;ll be open to hear your questions, worries, frustrations.<br />
merb always valued its developers and we will continue to do so but on a bigger scale.</p>
<hr />Concretely, nothing changes for merb users. People loving merb should not worry. The way you build merb apps won&#8217;t change until merb2.0/Rails3.0. We will still work on your favorite framework and improve it.</p>
<p>Lori Holden worked on merb_sequel and we should release a 1.0 release of the plugin in a few days.</p>
<p>I&#8217;m sure this news comes as a shock for many of you, but try to not see Rails 3.0 as the way Rails is right now. Imagine a version of Rails with true modularity and agnosticism (sequel, DM and AR will still be supported) and the same type of performance as what you get with merb. In other words, the Rails world is about to discover the power of merb!</p>
<p>Here is what Yehuda explicitly says in his blog post:</p>
<ul>
<li>Rails will become more modular, starting with a rails-core, and including the ability to opt in or out of specific components. [...]</li>
<li>We will port all of our performance improvements into Rails. This includes architectural decisions that are big performance wins.[..]</li>
<li>As of Rails 3, Rails will have a defined public API with a test suite for that API. [..]</li>
<li>Rails will still ship with the &#8220;stack&#8221; version as the default (just as merb does since 1.0), but the goal is to make it easy to do with Rails what people do with merb today.</li>
<li>Rails will be modified to more easily support DataMapper or Sequel as first-class ORMs. [..]</li>
<li>Rails will continue their recent embrace of Rack, which [..] will improve the state of modular, sharable logic between applications.</li>
<li>In general, we will take a look at features in merb that are not in Rails (the most obvious example is the more robust router) and find a way to bring them into Rails.</li>
</ul>
<h2>Personal perspective</h2>
<p>I&#8217;m personally really excited about this opportunity. I had a hard time believing that we could work together but I was proved wrong. We have many challenges in front of us, but watching the two teams working together is very reassuring.</p>
<p>I&#8217;m also glad to see that we will have a Rails Evangelism team that I will be part of. I strongly believe that one of the many reasons why merb has been so successful is because we work and listen to our community. We have put a tremendous amount of energy into trying to understand what you guys need and what you like and dislike. In return, we have seen many people working hard on the wiki and the merb-book.</p>
<p>Can you imagine doing that with almost 4 Million Rails developers?</p>
<p>I&#8217;m also looking forward to working with a team and reaching to even more people.</p>
<h2>Other news related to the merge:</h2>
<ul>
<li>The RubyOnRails website will keep a trace of this historical moment: <a href="http://rubyonrails.org/merb" target="_blank">http://rubyonrails.org/merb</a></li>
<li>The <a href="http://merbclass.com/" target="_blank">merb training scheduled for Jan 19-21</a>, in partnership with <a href="http://integrumtech.com/" target="_blank">Integrum</a>, will still take place, and if you want to get a head start and learn about the things that will make Rails 3.0 totally kick ass, I&#8217;d suggest you join us.</li>
</ul>
<p>If you have any questions, or if you want me to publicly answer questions on your blog please contact me. I&#8217;ll do my best to get back to everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2008/12/23/rails-and-merb-merge/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>Meet the merbists: Jason Seifer</title>
		<link>http://merbist.com/2008/12/20/meet-the-merbists-jason-seifer/</link>
		<comments>http://merbist.com/2008/12/20/meet-the-merbists-jason-seifer/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 12:02:47 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[merb]]></category>
		<category><![CDATA[jason seifer]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[Meet the merbists]]></category>
		<category><![CDATA[merbist]]></category>

		<guid isPermaLink="false">http://merbist.com/?p=372</guid>
		<description><![CDATA[Today I&#8217;m interviewing Jason Seifer known for the funny envyads and the weekly RailsEnvy podcast. Matt Aimonetti: Hi Jason, could you please introduce yourself and tell us what you do for a living? Jason Seifer: My name is Jason Seifer and I do mostly web development for a living along with podcasting and screencasting. Matt [...]]]></description>
				<content:encoded><![CDATA[<div class="mtm-question">
<div id="attachment_373" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-373" title="jason seifer" src="http://merbist.com/wp-content/uploads/2008/12/jason-seifer-300x225.jpg" alt="Jason Seifer" width="300" height="225" /><p class="wp-caption-text">Jason Seifer</p></div>
<p>Today I&#8217;m interviewing <a href="http://jasonseifer.com/" target="_blank">Jason Seifer</a> known for the funny <a href="http://www.youtube.com/user/envyads" target="_blank">envyads</a> and the weekly <a href="http://railsenvy.com/" target="_blank">RailsEnvy podcast</a>.</div>
<div class="mtm-question"><strong>Matt Aimonetti:</strong> Hi Jason, could you please introduce yourself and tell us what you do for a living?</div>
<div class="mtm-answer"><strong>Jason Seifer:</strong> My name is Jason Seifer and I do mostly web development for a living along with podcasting and screencasting.</div>
<p><br class="spacer" /></p>
<div class="mtm-question"><strong>Matt Aimonetti:</strong> How did you get started with Ruby, what&#8217;s your background?</div>
<div class="mtm-answer"><strong>Jason Seifer:</strong> As far as my background goes, I have a degree in Psychology from the University of Central Florida. I got started with Ruby by way of learning Rails. I used to do some hacking on perl and php but never anything for full time work until Rails came along. I fell in love with the Ruby language that way.</div>
<p><br class="spacer" /></p>
<div class="mtm-question"><strong>Matt Aimonetti:</strong> You chose to learn and use Merb, could you please let us know why and how that happened?</div>
<div class="mtm-answer"><strong>Jason Seifer:</strong> Doing the Rails Envy podcast, I&#8217;ve been keeping up with the latest merb news for a while now. Along the way I&#8217;ve been extremely impressed by how the merb team handles things, listens to its users, and implements new features. At the same time, I&#8217;m pretty lazy when it comes to coding so I wanted to wait until the API was stable and version 1.0ish before jumping in to building merb apps. I have a lot of Rails experience so picking it up wasn&#8217;t too hard.</div>
<p><br class="spacer" /></p>
<div class="mtm-question"><strong>Matt Aimonetti:</strong> Do you have some Merb projects available online we can look at? what was your experience so far?</div>
<div class="mtm-answer"><strong>Jason Seifer:</strong> I don&#8217;t have anything online at the moment but I am working on a couple of things that I hope to release in the coming months. Working with merb is a pleasure most of the time, though it&#8217;s pretty easy to get confused with some common rails functions that differ slightly by name (before/before_filter, etc) if you&#8217;ve been doing Rails for a while. One thing that&#8217;s really nice about working with merb is how compact and easy to understand the framework code is. It&#8217;s very easy to jump in and see how something works if you&#8217;re having trouble.</div>
<p><br class="spacer" /></p>
<div class="mtm-question"><strong>Matt Aimonetti:</strong> What is your favorite aspect of the Merb framework?</div>
<div class="mtm-answer"><strong>Jason Seifer:</strong> As far as features go, I love run_later. It&#8217;s pretty nice not to have to run a message queue for decoupling simple things like sending email from the request/response cycle. There are a number of smaller features like that which make merb nice to work with.<br class="spacer" /><br />
My favorite aspect of merb, though, is the stable api. It&#8217;s very comforting to know that by upgrading to the next stable point release of the framework that I&#8217;m not going to have things that break. This of course doesn&#8217;t mean that a stable and comprehensive test suite isn&#8217;t important but it is one less worry.</div>
<p><br class="spacer" /></p>
<div class="mtm-question"><strong>Matt Aimonetti:</strong> Could you please mention an aspect of Merb you hope to see being improved in the near future?</div>
<div class="mtm-answer"><strong>Jason Seifer:</strong> If you had asked me this question a few weeks ago I would have said documentation, but that itch is being scratched by the merb book. Though not exactly merb, I&#8217;d really love to see DataMapper get JRuby compatibility so we can get the full stack on JRuby for deployment. That would be very exciting what with everything going on in JRuby land at the moment.</div>
<p><br class="spacer" /></p>
<div class="mtm-question"><strong>Matt Aimonetti:</strong> Thank you for your time. Anything else you would like to add?</div>
<p><strong>Jason Seifer:</strong><br />
I would encourage people to try merb if they&#8217;ve been holding out at all. It&#8217;s a great time to get involved and the community is great, too. Also, I&#8217;ll be starting a merb podcast soon so stay tuned for that. Thanks very much for talking with me.</p>
<p><br class="spacer" /></p>
]]></content:encoded>
			<wfw:commentRss>http://merbist.com/2008/12/20/meet-the-merbists-jason-seifer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
