<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: The Rails Way</title>
	<atom:link href="http://c.matallin.com/2009/04/the-rails-way/feed/" rel="self" type="application/rss+xml" />
	<link>http://c.matallin.com/2009/04/the-rails-way/</link>
	<description>geek, blogger, entrepreneur and web designer.</description>
	<lastBuildDate>Thu, 26 Nov 2009 15:38:22 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rails Rumble &#8216;09 - Carlos Matallín</title>
		<link>http://c.matallin.com/2009/04/the-rails-way/#comment-1675</link>
		<dc:creator>Rails Rumble &#8216;09 - Carlos Matallín</dc:creator>
		<pubDate>Mon, 12 Oct 2009 03:05:06 +0000</pubDate>
		<guid isPermaLink="false">http://c.matallin.com/?p=527#comment-1675</guid>
		<description>[...] really felt like taking part in such an event while commiting (nice word, huh?) one of my new year&#8217;s resolutions, so I proposed this to Felipe Talavera one of my partners in the startup we cofounded almost a year [...]</description>
		<content:encoded><![CDATA[<p>[...] really felt like taking part in such an event while commiting (nice word, huh?) one of my new year&#8217;s resolutions, so I proposed this to Felipe Talavera one of my partners in the startup we cofounded almost a year [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: loki</title>
		<link>http://c.matallin.com/2009/04/the-rails-way/#comment-797</link>
		<dc:creator>loki</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://c.matallin.com/?p=527#comment-797</guid>
		<description>I think &lt;a href=&quot;http://oreilly.com/catalog/9780596516178/toc.html&quot; rel=&quot;nofollow&quot;&gt; The Ruby Programming Language&lt;/a&gt; is a &quot;must read&quot;. Everybody will tell you to have the &lt;a href=&quot;http://www.amazon.com/Rails-Way-Addison-Wesley-Professional-Ruby/dp/0321445619&quot; rel=&quot;nofollow&quot;&gt; The Rails Way &lt;/a&gt; so I will point you to something completely different, but as valuable as anything else. called &lt;a href=&quot;http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1239802895&amp;sr=1-1&quot; rel=&quot;nofollow&quot;&gt;The Pragmatic Programmer&lt;/a&gt;. 

For the authentication process in your Rails apps, all the cool kids are switching to &lt;a href=&quot;http://github.com/binarylogic/authlogic/tree/master&quot; rel=&quot;nofollow&quot;&gt; authlogic &lt;/a&gt; because of the better and more understandable code base.

I have not wisdom but I&#039;m damn hot. You can&#039;t have it all. ^_^</description>
		<content:encoded><![CDATA[<p>I think <a href="http://oreilly.com/catalog/9780596516178/toc.html" rel="nofollow"> The Ruby Programming Language</a> is a &#8220;must read&#8221;. Everybody will tell you to have the <a href="http://www.amazon.com/Rails-Way-Addison-Wesley-Professional-Ruby/dp/0321445619" rel="nofollow"> The Rails Way </a> so I will point you to something completely different, but as valuable as anything else. called <a href="http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1239802895&amp;sr=1-1" rel="nofollow">The Pragmatic Programmer</a>. </p>
<p>For the authentication process in your Rails apps, all the cool kids are switching to <a href="http://github.com/binarylogic/authlogic/tree/master" rel="nofollow"> authlogic </a> because of the better and more understandable code base.</p>
<p>I have not wisdom but I&#8217;m damn hot. You can&#8217;t have it all. ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Matallín</title>
		<link>http://c.matallin.com/2009/04/the-rails-way/#comment-795</link>
		<dc:creator>Carlos Matallín</dc:creator>
		<pubDate>Wed, 15 Apr 2009 11:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://c.matallin.com/?p=527#comment-795</guid>
		<description>It makes a lot of sense. I didn’t modified t because it came with the restful_authentication plugin and I thought if I changed something the user authentication wouln’t work. Anyway I will refactor it, thanks for the advise.</description>
		<content:encoded><![CDATA[<p>It makes a lot of sense. I didn’t modified t because it came with the restful_authentication plugin and I thought if I changed something the user authentication wouln’t work. Anyway I will refactor it, thanks for the advise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Matallín</title>
		<link>http://c.matallin.com/2009/04/the-rails-way/#comment-793</link>
		<dc:creator>Carlos Matallín</dc:creator>
		<pubDate>Wed, 15 Apr 2009 11:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://c.matallin.com/?p=527#comment-793</guid>
		<description>Hi loki, first of all I will add that link as soon as I end writting this comment. Take for granted my intention is not leave their credit behind and I have also thanked them so much in the mailing list. I just skipped it, sorry ;)

About getting to grips with ruby I am reading the &quot;Agile Web Development with Rails&quot; and every document I think is worth to spend some minutes to read (some examples http://delicious.com/matallo/rails) but I will be so grateful if somebody more experienced could give me advise about some resources to help my rails learning. No way I think I will wake up one morning knowing rails!

Anyway, most of the code comes with the restful_authentication plugin, but I think I will have to refactor it a bit and adapt it for my needs.

Thanks for your wisdom.</description>
		<content:encoded><![CDATA[<p>Hi loki, first of all I will add that link as soon as I end writting this comment. Take for granted my intention is not leave their credit behind and I have also thanked them so much in the mailing list. I just skipped it, sorry <img src='http://c.matallin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>About getting to grips with ruby I am reading the &#8220;Agile Web Development with Rails&#8221; and every document I think is worth to spend some minutes to read (some examples <a href="http://delicious.com/matallo/rails)" rel="nofollow">http://delicious.com/matallo/rails)</a> but I will be so grateful if somebody more experienced could give me advise about some resources to help my rails learning. No way I think I will wake up one morning knowing rails!</p>
<p>Anyway, most of the code comes with the restful_authentication plugin, but I think I will have to refactor it a bit and adapt it for my needs.</p>
<p>Thanks for your wisdom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dagi3d</title>
		<link>http://c.matallin.com/2009/04/the-rails-way/#comment-792</link>
		<dc:creator>dagi3d</dc:creator>
		<pubDate>Wed, 15 Apr 2009 09:56:08 +0000</pubDate>
		<guid isPermaLink="false">http://c.matallin.com/?p=527#comment-792</guid>
		<description>hi,
I think there is one point where you could refactor your code a little bit. You are using this piece of code to check everything went ok while recording the user:
&lt;code&gt;
success = @user &amp;&amp; @user.save
    if success &amp;&amp; @user.errors.empty?
&lt;/code&gt;

why not just use the #save method? It has no sense to check if the @user variable is a nil or not because it will *never* be because you have instantiated it just one line above.
Eventually, when the #save method returns a true value, it means that everything went fine and there are no errors, so it&#039;s a little bit redundant to check if the errors list is empty or not:

&lt;code&gt;
if @user.save
...
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>hi,<br />
I think there is one point where you could refactor your code a little bit. You are using this piece of code to check everything went ok while recording the user:<br />
<code><br />
success = @user &amp;&amp; @user.save<br />
    if success &amp;&amp; @user.errors.empty?<br />
</code></p>
<p>why not just use the #save method? It has no sense to check if the @user variable is a nil or not because it will *never* be because you have instantiated it just one line above.<br />
Eventually, when the #save method returns a true value, it means that everything went fine and there are no errors, so it&#8217;s a little bit redundant to check if the errors list is empty or not:</p>
<p><code><br />
if @user.save<br />
...<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: loki</title>
		<link>http://c.matallin.com/2009/04/the-rails-way/#comment-791</link>
		<dc:creator>loki</dc:creator>
		<pubDate>Wed, 15 Apr 2009 09:12:12 +0000</pubDate>
		<guid isPermaLink="false">http://c.matallin.com/?p=527#comment-791</guid>
		<description>In my humble opinion, it would be a good idea to get to grips with ruby before writing too much Rails. Your code shows clear signs of strong type language habits (are you sure you want to be so defensive on your create method?). The gap between C and Ruby it&#039;s quite big, so don&#039;t be fooled thinking it will happen overnight.

Another thing related to codding, and with everything else, is love. In this, case love for the awesome community Ruby and Rails have. Don&#039;t be afraid to show your love for the people who really guide you to the process your article is talking about (not me BTW), like the folks on the ror-es list, instead of linking the same articles from Obie, Jamis, etc that everybody has already read or is going to do so anyway.</description>
		<content:encoded><![CDATA[<p>In my humble opinion, it would be a good idea to get to grips with ruby before writing too much Rails. Your code shows clear signs of strong type language habits (are you sure you want to be so defensive on your create method?). The gap between C and Ruby it&#8217;s quite big, so don&#8217;t be fooled thinking it will happen overnight.</p>
<p>Another thing related to codding, and with everything else, is love. In this, case love for the awesome community Ruby and Rails have. Don&#8217;t be afraid to show your love for the people who really guide you to the process your article is talking about (not me BTW), like the folks on the ror-es list, instead of linking the same articles from Obie, Jamis, etc that everybody has already read or is going to do so anyway.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
