<?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://khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/</link>
	<description>Cool Web Development...</description>
	<lastBuildDate>Mon, 21 May 2012 00:25:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: anon</title>
		<link>http://khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-78782</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Thu, 29 Mar 2012 06:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-78782</guid>
		<description>Bad example with BankAccount. Now, the BankAccount class depends on EmailNotifier, SMSNotifier. It cannot function unless those classes exist. You&#039;ve created tight-coupled-ness.</description>
		<content:encoded><![CDATA[<p>Bad example with BankAccount. Now, the BankAccount class depends on EmailNotifier, SMSNotifier. It cannot function unless those classes exist. You&#8217;ve created tight-coupled-ness.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nehal Kumar</title>
		<link>http://khelll.com/blog/ruby/observer-and-singleton-design-patterns-in-ruby/comment-page-1/#comment-27594</link>
		<dc:creator>Nehal Kumar</dc:creator>
		<pubDate>Mon, 27 Jun 2011 10:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.khelll.com/blog/?p=551#comment-27594</guid>
		<description>Hi, I want to know how to linkthe observer of one model to another model in Rails?
I would also like to know how to pass random variables between two models.
Thanks
P.S. I am a novice on Ruby on Rails and I have a lot of small doubts. Your help would be appreciated.</description>
		<content:encoded><![CDATA[<p>Hi, I want to know how to linkthe observer of one model to another model in Rails?<br />
I would also like to know how to pass random variables between two models.<br />
Thanks<br />
P.S. I am a novice on Ruby on Rails and I have a lot of small doubts. Your help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: observer application</title>
		<link>http://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://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://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://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://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://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://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://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>
</channel>
</rss>

