<?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>Chris Hardcastle &#187; Ruby</title>
	<atom:link href="http://chrishardcastle.co.uk/tag/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://chrishardcastle.co.uk</link>
	<description>Facebook App and Website Developer</description>
	<lastBuildDate>Wed, 23 Feb 2011 00:42:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The best Ruby stack!</title>
		<link>http://chrishardcastle.co.uk/the-best-ruby-stack</link>
		<comments>http://chrishardcastle.co.uk/the-best-ruby-stack#comments</comments>
		<pubDate>Wed, 23 Feb 2011 00:36:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[sinatra]]></category>
		<category><![CDATA[webservers]]></category>

		<guid isPermaLink="false">http://chrishardcastle.co.uk/?p=133</guid>
		<description><![CDATA[Just what is the best combination of packages to run a website using the Ruby programming language? As far as I see it, there&#8217;s three options. 1) Run ruby on rails using their default webrick HTTP server. 2) Run ruby &#8230; <a href="http://chrishardcastle.co.uk/the-best-ruby-stack">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just what is the best combination of packages to run a website using the Ruby programming language? As far as I see it, there&#8217;s three options.</p>
<p>1) Run <a href="http://rubyonrails.org/">ruby on rails</a> using their default webrick HTTP server.</p>
<p>2) Run ruby in a framework such as <a href="http://www.sinatrarb.com/">Sinatra</a> using a web server such as <a href="http://wiki.nginx.org/Main">Nginx</a> and a view engine such as <a href="http://haml-lang.com/">HAML</a>.</p>
<p>3) Set yourself up with <a href="http://heroku.com/">Heroku</a> Ruby hosting platform and develop from there.<br />
<span id="more-133"></span><br />
There&#8217;s an interesting point on this <a href="http://stackoverflow.com/questions/3989438/sinatra-vs-rails">stack over flow</a> thread. Given that the majority of websites are now deployed in cloud environments, perhaps you want a webserver that performs better? If so, I can recommend Nginx as an alternative to webrick. It&#8217;s easy to install and configure. It also has some similarities with Apache webserver in terms of virtual configuration files for sites. I&#8217;m currently serving PHP from fast-cgi via Nginx, it works well!</p>
<p>Server performance aside, the second option with Sinatra is a little harder to get set up. As this requires many ruby gems, it may be harder to install and get started. Tho, in the end, I&#8217;d personally like to understand all aspects of the stack prior to development.</p>
<p>As for the third option, I&#8217;ve not tried it myself. Tho it seems like a great idea for a company to bind developers to a platform by means of package dependency. For me, this is both good and bad. You&#8217;re bound to them as a provider, yet some companies like that!</p>
<p>If you&#8217;ve any preference or experience with any arrangement, please comment and let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://chrishardcastle.co.uk/the-best-ruby-stack/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A newbie to Ruby</title>
		<link>http://chrishardcastle.co.uk/a-newbie-to-ruby</link>
		<comments>http://chrishardcastle.co.uk/a-newbie-to-ruby#comments</comments>
		<pubDate>Wed, 14 Oct 2009 20:26:48 +0000</pubDate>
		<dc:creator>chris.hardcastle</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Aptana]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://chrishardcastle.co.uk/?p=99</guid>
		<description><![CDATA[My total exposure to Ruby has been around 2 hours, a great time to write about it. So warnings, n00b alert, I have not even written a ruby &#8220;hello world&#8221; script! But hey, it&#8217;s important to write when you feel &#8230; <a href="http://chrishardcastle.co.uk/a-newbie-to-ruby">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My total exposure to Ruby has been around 2 hours, a great time to write about it. So warnings, n00b alert, I have not even written a ruby &#8220;hello world&#8221; script! But hey, it&#8217;s important to write when you feel inspired. I have a few people to thank for the inspiration.<span id="more-99"></span></p>
<p>Given a short code demo, it looks very flexible. It can be used to build things extremely quickly. In just a few key strokes, a model, view and controller is automatically created in the file system. Another command will quickly update the database to describe the properties of your newly created entity in its own table.</p>
<p>This bares some similarities with the PHP framework <a href="http://www.symfony-project.org">Symfony</a>. You can auto generate the entities of your system in a very similar way. But I am a PHP freak, why am I so interested in this? It&#8217;s always good to have another arrow to your bow. Also, I think it&#8217;s an important message to those who want to try out programming for web applications. Perhaps students or in some cases, people who have been stuck using classic VB for the past 5 years!</p>
<p>Some may say that using the <a href="http://rubyonrails.org/">Ruby on Rails framework</a> the auto generation of code is unwise. Unwieldy and unmanageable and I would tend to agree with them. However, perhaps it has some uses for prototyping an idea or a technical draft. If the specification or idea keeps changing, then its a perfect match. I am not sure if you can do this but, since its heavy on MVC, components of the system can be replaced (if necessary) with whatever means necessary.  </p>
<p>It&#8217;s meant to be easier to develop with it in Linux and Mac than Windows. Saying that there&#8217;s a package for the <a href="http://aptana.com">Aptana</a> editing suite for Windows that seems well suited to Ruby. There&#8217;s an online demo of Ruby, somewhere on the Internet, I will post it as soon as I remember where it is.</p>
<p>Perhaps in a few years, I will read this again on a site that I built in Ruby, years from now. But for now, I don&#8217;t think I will start learning Ruby just yet. There&#8217;s plenty of other things I would like to do first, that could change.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrishardcastle.co.uk/a-newbie-to-ruby/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

