<?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: Observer and Singleton design patterns in Ruby</title>
	<atom:link href="http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/</link>
	<description>What web development means....</description>
	<lastBuildDate>Tue, 13 Jul 2010 05:39:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: observer application</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-8085</link>
		<dc:creator>observer application</dc:creator>
		<pubDate>Sun, 04 Apr 2010 02:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-8085</guid>
		<description>[...] apollo app. I decided to ... with Apollo and created an application that allows me to keep an ...Observer and Singleton design patterns in Ruby - Khaled ...Observer and Singleton design patterns in Ruby. This is my first article in http: ... Observer and [...]</description>
		<content:encoded><![CDATA[<p>[...] apollo app. I decided to &#8230; with Apollo and created an application that allows me to keep an &#8230;Observer and Singleton design patterns in Ruby &#8211; Khaled &#8230;Observer and Singleton design patterns in Ruby. This is my first article in http: &#8230; Observer and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgeniy Dolzhenko</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7536</link>
		<dc:creator>Evgeniy Dolzhenko</dc:creator>
		<pubDate>Thu, 04 Mar 2010 07:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7536</guid>
		<description>I really dig your blog, and the &quot;cool Ruby questions&quot; series specifically.

Sorry if that sounds like total dumbass nitpicking, but a few whitespaces in the first code sample won&#039;t hurt IMO:

&lt;code&gt;
@owner, @balance = owner, amount
...
@balance -= amount if (@balance - amount) &gt; 0
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I really dig your blog, and the &#8220;cool Ruby questions&#8221; series specifically.</p>
<p>Sorry if that sounds like total dumbass nitpicking, but a few whitespaces in the first code sample won&#8217;t hurt IMO:</p>
<p><code><br />
@owner, @balance = owner, amount<br />
...<br />
@balance -= amount if (@balance - amount) &gt; 0<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gui_maranhao</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7498</link>
		<dc:creator>gui_maranhao</dc:creator>
		<pubDate>Wed, 03 Mar 2010 18:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7498</guid>
		<description>in my last post, the method&#039;s name was:
def after_something
...
end

thanks</description>
		<content:encoded><![CDATA[<p>in my last post, the method&#8217;s name was:<br />
def after_something<br />
&#8230;<br />
end</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gui_maranhao</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7497</link>
		<dc:creator>gui_maranhao</dc:creator>
		<pubDate>Wed, 03 Mar 2010 18:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7497</guid>
		<description>Khelll,

In order to reduce the complexity of my observers, I would like to know if it is possible for my Observer to observe specific methods (not just the models) of my models, like this:
def after_
...
end

Thanks, guilherme</description>
		<content:encoded><![CDATA[<p>Khelll,</p>
<p>In order to reduce the complexity of my observers, I would like to know if it is possible for my Observer to observe specific methods (not just the models) of my models, like this:<br />
def after_<br />
&#8230;<br />
end</p>
<p>Thanks, guilherme</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khelll</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7458</link>
		<dc:creator>khelll</dc:creator>
		<pubDate>Mon, 01 Mar 2010 17:02:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7458</guid>
		<description>No worries, always try to make your code readable by breaking it to parts that makes sense. Observers are cool place for callbacks and complex code related to them.</description>
		<content:encoded><![CDATA[<p>No worries, always try to make your code readable by breaking it to parts that makes sense. Observers are cool place for callbacks and complex code related to them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gui_maranhao</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7457</link>
		<dc:creator>gui_maranhao</dc:creator>
		<pubDate>Mon, 01 Mar 2010 17:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7457</guid>
		<description>In my last post I wrote: &quot;I&#039;ve answered my question!&quot;. SORRY, it should have been: &quot;YOU&#039;ve answered my question!&quot;</description>
		<content:encoded><![CDATA[<p>In my last post I wrote: &#8220;I&#8217;ve answered my question!&#8221;. SORRY, it should have been: &#8220;YOU&#8217;ve answered my question!&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gui_maranhao</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7456</link>
		<dc:creator>gui_maranhao</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7456</guid>
		<description>Thanks,

When I mentioned &quot;actions&quot; I did not mean controller&#039;s actions, I meant inputs in my db to register loggs and things like that, sorry.
I also use them as callbacks to model methods. I&#039;ve answered my question!

thanks again</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>When I mentioned &#8220;actions&#8221; I did not mean controller&#8217;s actions, I meant inputs in my db to register loggs and things like that, sorry.<br />
I also use them as callbacks to model methods. I&#8217;ve answered my question!</p>
<p>thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: khelll</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7455</link>
		<dc:creator>khelll</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7455</guid>
		<description>@gui_maranhao, Rails Observers don&#039;t work with controller actions, instead with model &lt;a href=&quot;http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html&quot; rel=&quot;nofollow&quot;&gt;callbacks&lt;/a&gt;. Anyway I prefer observers for callbacks to normal model methods, specially when the code base becomes complex.</description>
		<content:encoded><![CDATA[<p>@gui_maranhao, Rails Observers don&#8217;t work with controller actions, instead with model <a href="http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html" rel="nofollow">callbacks</a>. Anyway I prefer observers for callbacks to normal model methods, specially when the code base becomes complex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gui_maranhao</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-7450</link>
		<dc:creator>gui_maranhao</dc:creator>
		<pubDate>Mon, 01 Mar 2010 13:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-7450</guid>
		<description>Hello,

I intend to create an Observes to observe some models that dispatch specific actions. Depends on the current model, one of the actions is dispatched. To know which action must be dispatched, many business rules should be certified, making my Observer very complex.
Do you recommend to create this kind of Observer?

thanks, guilherme maranhão</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I intend to create an Observes to observe some models that dispatch specific actions. Depends on the current model, one of the actions is dispatched. To know which action must be dispatched, many business rules should be certified, making my Observer very complex.<br />
Do you recommend to create this kind of Observer?</p>
<p>thanks, guilherme maranhão</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitter Trackbacks for Observer and Singleton design patterns in Ruby - Khaled alHabache’s official blog [khelll.com] on Topsy.com</title>
		<link>http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-2824</link>
		<dc:creator>Twitter Trackbacks for Observer and Singleton design patterns in Ruby - Khaled alHabache’s official blog [khelll.com] on Topsy.com</dc:creator>
		<pubDate>Sun, 23 Aug 2009 01:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-2824</guid>
		<description>[...] Observer and Singleton design patterns in Ruby - Khaled alHabache’s official blog  www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby &#8211; view page &#8211; cached  #Khaled alHabache’s official blog RSS Feed Khaled alHabache&#039;s official blog » Observer and Singleton design patterns in Ruby Comments Feed Khaled alHabache&#039;s official blog Ruby introspection Ruby 1.9 Encoding Fun &#8212; From the page [...]</description>
		<content:encoded><![CDATA[<p>[...] Observer and Singleton design patterns in Ruby &#8211; Khaled alHabache’s official blog  <a href="http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby" rel="nofollow">http://www.khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby</a> &ndash; view page &ndash; cached  #Khaled alHabache’s official blog RSS Feed Khaled alHabache&#39;s official blog » Observer and Singleton design patterns in Ruby Comments Feed Khaled alHabache&#39;s official blog Ruby introspection Ruby 1.9 Encoding Fun &mdash; From the page [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
