<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>ruby on rails legacy on random thoughts</title><link>https://awesomeprogrammer.com/categories/ruby-on-rails-legacy/</link><description>Recent content in ruby on rails legacy on random thoughts</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 16 Dec 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://awesomeprogrammer.com/categories/ruby-on-rails-legacy/index.xml" rel="self" type="application/rss+xml"/><item><title>Diary of Legacy Application</title><link>https://awesomeprogrammer.com/blog/2012/12/16/diary-of-legacy-application/</link><pubDate>Sun, 16 Dec 2012 00:00:00 +0000</pubDate><guid>https://awesomeprogrammer.com/blog/2012/12/16/diary-of-legacy-application/</guid><description><![CDATA[<p>Some time ago I wrote two short stories (<a href="/blog/2012/07/28/rails-legacy-database-migration/">1</a>, <a href="/blog/2012/08/08/rails-legacy-database-migration-part-2/">2</a>) about my journey with migrating legacy php application to rails. And yes - that&rsquo;s topic is till on my plate :P. I didn&rsquo;t had much time to push it till the finish (not mention posting on my blog), but I&rsquo;m getting there.</p>
<p>Since I&rsquo;ve started my small <em>after-hours</em> project quite a few things have changed, for example I:</p>
<ul>
<li>
<p>said goodbye to <a href="http://haml-lang.com/">HAML</a> and welcomed <a href="http://slim-lang.com/">SLIM</a></p>
</li>
<li>
<p>started using <a href="https://github.com/thoughtbot/capybara-webkit">capybara-webkit</a> instead of slow <a href="http://seleniumhq.org/">Selenium</a> for integration tests with javascript enabled</p>
</li>
<li>
<p>cleaned up my helpers and moved some logic to decorators (I recommend checking out <a href="https://github.com/amatsuda/active_decorator">active_decorator</a>)</p>
</li>
<li>
<p>hooked up <a href="http://pat.github.com/ts/en/">thinking-sphinx</a> for creating global (site-wide) search engine (works amazing and I truly recommend it for everyone)</p>
</li>
<li>
<p>created a devise&amp;omniauth combo and allowed users to sign-in via google/facebook account</p>
</li>
<li>
<p>build simple xmmp (jabber) bot as a way of informing users about new replies/posts in observed topics on forum (using quite outdated <a href="https://github.com/ln/xmpp4r">xmpp4r</a> library - I will came back to the topic after official release for sure, for now I&rsquo;ll have to be be enough)</p>
</li>
<li>
<p>after a discussion with the editors of current site we have decided it&rsquo;s time to evolve and choose markdown instead of bbcode after all. I&rsquo;ve chosen <a href="https://github.com/vmg/redcarpet">redcarpet</a> - with if bloody fast and really flexible - I&rsquo;ve added some custom tags and support for <a href="http://www.emoji-cheat-sheet.com/">emoji</a>, created a neat editor based on <a href="http://markitup.jaysalvat.com/">markItUp</a>, spiced it a little with some github like preview style and some <a href="https://github.com/ichord/At.js">at.js</a> goodness</p>
</li>
</ul>
<p>So yeah - quite a few things changed indeed and there is more to come. I hope when I will finish this project (and I mean here official release) I will find some time to write about <em>gotchas</em> I&rsquo;ve encountered and some general tips when dealing with legacy application complete upgrade from my points of view :).</p>]]></description><content:encoded><![CDATA[<p>Some time ago I wrote two short stories (<a href="/blog/2012/07/28/rails-legacy-database-migration/">1</a>, <a href="/blog/2012/08/08/rails-legacy-database-migration-part-2/">2</a>) about my journey with migrating legacy php application to rails. And yes - that&rsquo;s topic is till on my plate :P. I didn&rsquo;t had much time to push it till the finish (not mention posting on my blog), but I&rsquo;m getting there.</p>
<p>Since I&rsquo;ve started my small <em>after-hours</em> project quite a few things have changed, for example I:</p>
<ul>
<li>
<p>said goodbye to <a href="http://haml-lang.com/">HAML</a> and welcomed <a href="http://slim-lang.com/">SLIM</a></p>
</li>
<li>
<p>started using <a href="https://github.com/thoughtbot/capybara-webkit">capybara-webkit</a> instead of slow <a href="http://seleniumhq.org/">Selenium</a> for integration tests with javascript enabled</p>
</li>
<li>
<p>cleaned up my helpers and moved some logic to decorators (I recommend checking out <a href="https://github.com/amatsuda/active_decorator">active_decorator</a>)</p>
</li>
<li>
<p>hooked up <a href="http://pat.github.com/ts/en/">thinking-sphinx</a> for creating global (site-wide) search engine (works amazing and I truly recommend it for everyone)</p>
</li>
<li>
<p>created a devise&amp;omniauth combo and allowed users to sign-in via google/facebook account</p>
</li>
<li>
<p>build simple xmmp (jabber) bot as a way of informing users about new replies/posts in observed topics on forum (using quite outdated <a href="https://github.com/ln/xmpp4r">xmpp4r</a> library - I will came back to the topic after official release for sure, for now I&rsquo;ll have to be be enough)</p>
</li>
<li>
<p>after a discussion with the editors of current site we have decided it&rsquo;s time to evolve and choose markdown instead of bbcode after all. I&rsquo;ve chosen <a href="https://github.com/vmg/redcarpet">redcarpet</a> - with if bloody fast and really flexible - I&rsquo;ve added some custom tags and support for <a href="http://www.emoji-cheat-sheet.com/">emoji</a>, created a neat editor based on <a href="http://markitup.jaysalvat.com/">markItUp</a>, spiced it a little with some github like preview style and some <a href="https://github.com/ichord/At.js">at.js</a> goodness</p>
</li>
</ul>
<p>So yeah - quite a few things changed indeed and there is more to come. I hope when I will finish this project (and I mean here official release) I will find some time to write about <em>gotchas</em> I&rsquo;ve encountered and some general tips when dealing with legacy application complete upgrade from my points of view :).</p>]]></content:encoded></item></channel></rss>