<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6178209.post117220775202705954..comments</id><updated>2008-08-26T02:21:09.926-05:00</updated><category term='kanban'/><category term='mocks'/><category term='design'/><category term='lean'/><category term='testing'/><category term='agile'/><category term='DSL'/><category term='Redpoint'/><title type='text'>Comments on Igor's Blog: Filtering has_many Associations in Rails</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.igorstoyanov.com/feeds/117220775202705954/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6178209/117220775202705954/comments/default'/><link rel='alternate' type='text/html' href='http://blog.igorstoyanov.com/2007/02/filtering-hasmany-associations-in.html'/><author><name>Igor</name><uri>http://www.blogger.com/profile/12832903167357753682</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6178209.post-2266521498912620677</id><published>2008-08-26T02:21:00.000-05:00</published><updated>2008-08-26T02:21:00.000-05:00</updated><title type='text'>For Spring Interview Questions&lt;br&gt;&lt;br&gt;visit&lt;br&gt;&lt;br...</title><content type='html'>For Spring Interview Questions&lt;BR/&gt;&lt;BR/&gt;visit&lt;BR/&gt;&lt;BR/&gt;http://techinterview.weebly.com/spring1.html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6178209/117220775202705954/comments/default/2266521498912620677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6178209/117220775202705954/comments/default/2266521498912620677'/><link rel='alternate' type='text/html' href='http://blog.igorstoyanov.com/2007/02/filtering-hasmany-associations-in.html?showComment=1219735260000#c2266521498912620677' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.igorstoyanov.com/2007/02/filtering-hasmany-associations-in.html' ref='tag:blogger.com,1999:blog-6178209.post-117220775202705954' source='http://www.blogger.com/feeds/6178209/posts/default/117220775202705954' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-96044251'/></entry><entry><id>tag:blogger.com,1999:blog-6178209.post-117223826102582709</id><published>2007-02-23T07:44:00.000-06:00</published><updated>2007-02-23T07:44:00.000-06:00</updated><title type='text'>Thanks, Steve for pointing that out. I definitely ...</title><content type='html'>Thanks, Steve for pointing that out. I definitely didn’t figure out that James code is about putting the methods on the Task object. This explains some of the things. &lt;BR/&gt;&lt;BR/&gt;&gt; project.active_task vs project.tasks.active&lt;BR/&gt;&lt;BR/&gt;No, I didn’t intend to specify the project.tasks.active. There are a few reasons for that. &lt;BR/&gt;First, I didn’t event saw that James is doing that :-). I believed that project.active_task is more readable and it is showing the intent more clearly. Also, the statement project.tasks.active could be seen as kind of train-wreck and I generally don’t like this type of design. It could introduce difficulties with testing/mocking/refactoring/encapsulation and so on.  Dave Astels had mentioned something similar in the comments of this blog: http://stevef.truemesh.com/archives/000500.html. &lt;BR/&gt;&lt;BR/&gt;However, the difference here is that this method is added to the task association. I find that interesting and I will re-read James’ blog to see what else I have missed :-). &lt;BR/&gt;&lt;BR/&gt;Thanks again for clarification.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6178209/117220775202705954/comments/default/117223826102582709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6178209/117220775202705954/comments/default/117223826102582709'/><link rel='alternate' type='text/html' href='http://blog.igorstoyanov.com/2007/02/filtering-hasmany-associations-in.html?showComment=1172238240000#c117223826102582709' title=''/><author><name>Igor</name><uri>http://www.blogger.com/profile/12782792313857381015</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.igorstoyanov.com/2007/02/filtering-hasmany-associations-in.html' ref='tag:blogger.com,1999:blog-6178209.post-117220775202705954' source='http://www.blogger.com/feeds/6178209/posts/default/117220775202705954' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1956080413'/></entry><entry><id>tag:blogger.com,1999:blog-6178209.post-117223124105769406</id><published>2007-02-23T05:47:00.000-06:00</published><updated>2007-02-23T05:47:00.000-06:00</updated><title type='text'>Shouldn't your original spec have been like this: ...</title><content type='html'>Shouldn't your original spec have been like this: &lt;A&gt;http://pastie.caboo.se/42420&lt;/A&gt;&lt;BR/&gt;&lt;BR/&gt;Jamis' code is adding the active and inactive methods to the tasks association, not adding the active_tasks method to the Project class.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6178209/117220775202705954/comments/default/117223124105769406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6178209/117220775202705954/comments/default/117223124105769406'/><link rel='alternate' type='text/html' href='http://blog.igorstoyanov.com/2007/02/filtering-hasmany-associations-in.html?showComment=1172231220000#c117223124105769406' title=''/><author><name>Steve Tooke</name><uri>http://stevetooke.typepad.com/treatment</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.igorstoyanov.com/2007/02/filtering-hasmany-associations-in.html' ref='tag:blogger.com,1999:blog-6178209.post-117220775202705954' source='http://www.blogger.com/feeds/6178209/posts/default/117220775202705954' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-493607745'/></entry></feed>
