<?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"
	>
<channel>
	<title>Comments for Adam Esterline</title>
	<atom:link href="http://adamesterline.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://adamesterline.com</link>
	<description>%w(agile, c#, dotnet, ruby, fun).any? { &#124;word&#124; word == “sense” }</description>
	<pubDate>Wed, 23 Jul 2008 18:13:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>Comment on ActiveScaffold - Improved Search by Adam Esterline</title>
		<link>http://adamesterline.com/2007/09/30/activescaffold-improved-search/#comment-5793</link>
		<dc:creator>Adam Esterline</dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/10/01/activescaffold-improved-search/#comment-5793</guid>
		<description>@hussain,

If I understand you correctly, all you should need to do is define the relationship between the user and role in the model.     After the relationship is defined, I think you only need to define the controller for both the user and the role and it should just work.    You should check ActiveScaffold documentation for more information.</description>
		<content:encoded><![CDATA[<p>@hussain,</p>
<p>If I understand you correctly, all you should need to do is define the relationship between the user and role in the model.     After the relationship is defined, I think you only need to define the controller for both the user and the role and it should just work.    You should check ActiveScaffold documentation for more information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NHibernate/ActiveRecord - Constructor Mapping Support? by Adam Esterline</title>
		<link>http://adamesterline.com/2007/07/20/nhibernateactiverecord-constructor-mapping-support/#comment-5792</link>
		<dc:creator>Adam Esterline</dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/07/20/nhibernateactiverecord-non-default-constructor-support/#comment-5792</guid>
		<description>@Artie

I have not seen any.</description>
		<content:encoded><![CDATA[<p>@Artie</p>
<p>I have not seen any.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RoR based MVC Web Frameworks - Friend or Foe? by Adam Esterline</title>
		<link>http://adamesterline.com/2007/10/24/ror-based-mvc-web-frameworks-friend-or-foe/#comment-5791</link>
		<dc:creator>Adam Esterline</dc:creator>
		<pubDate>Sun, 03 Feb 2008 21:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/10/24/ror-based-mvc-web-frameworks-friend-or-foe/#comment-5791</guid>
		<description>Richard,

I think MVC and MVP can both be used with single action controllers (commands/actions).    In fact, I think that in order to maximize maintainability and DRYablity single action controllers should be used in most cases.

Do I think a simplified MVP pattern would be useful?    Maybe.   I think the best thing that can be done is to get out the message that multi-action controllers are not the best way to build large maintainable web applications.

Are we on the same page?    Or have I totally missed your point.

AE</description>
		<content:encoded><![CDATA[<p>Richard,</p>
<p>I think MVC and MVP can both be used with single action controllers (commands/actions).    In fact, I think that in order to maximize maintainability and DRYablity single action controllers should be used in most cases.</p>
<p>Do I think a simplified MVP pattern would be useful?    Maybe.   I think the best thing that can be done is to get out the message that multi-action controllers are not the best way to build large maintainable web applications.</p>
<p>Are we on the same page?    Or have I totally missed your point.</p>
<p>AE</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RoR based MVC Web Frameworks - Friend or Foe? by Richard Bushnell</title>
		<link>http://adamesterline.com/2007/10/24/ror-based-mvc-web-frameworks-friend-or-foe/#comment-5789</link>
		<dc:creator>Richard Bushnell</dc:creator>
		<pubDate>Wed, 30 Jan 2008 08:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/10/24/ror-based-mvc-web-frameworks-friend-or-foe/#comment-5789</guid>
		<description>Hi Adam,

I am interested to know what you would think about using MVP with Commands instead. I don't particularly dislike MVC, but I'm wondering if Microsoft really needs to kick everything out and start from scratch to give us the features we really want. 

I actually think that the controllers will lead to worse code, as I can see people mixing up LINQ statements, presentation code, and all kinds of loose stuff in the PropertyBag.

Plus, the controller has code for all pages pertaining to a model, not just for one page. I don't find that necessary nor helpful.

I am thinking of building a simplified version of the Patterns and Practices MVP pattern, and making it available on CodePlex. What do you think of that? Would it be useful?

I'd appreciate your comments, as I'm currently involved in blog-discussions with Scott Hanselman and Rob Conery about this very subject.

Best regards,
Richard</description>
		<content:encoded><![CDATA[<p>Hi Adam,</p>
<p>I am interested to know what you would think about using MVP with Commands instead. I don&#8217;t particularly dislike MVC, but I&#8217;m wondering if Microsoft really needs to kick everything out and start from scratch to give us the features we really want. </p>
<p>I actually think that the controllers will lead to worse code, as I can see people mixing up LINQ statements, presentation code, and all kinds of loose stuff in the PropertyBag.</p>
<p>Plus, the controller has code for all pages pertaining to a model, not just for one page. I don&#8217;t find that necessary nor helpful.</p>
<p>I am thinking of building a simplified version of the Patterns and Practices MVP pattern, and making it available on CodePlex. What do you think of that? Would it be useful?</p>
<p>I&#8217;d appreciate your comments, as I&#8217;m currently involved in blog-discussions with Scott Hanselman and Rob Conery about this very subject.</p>
<p>Best regards,<br />
Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ActiveScaffold - Improved Search by hussain</title>
		<link>http://adamesterline.com/2007/09/30/activescaffold-improved-search/#comment-5787</link>
		<dc:creator>hussain</dc:creator>
		<pubDate>Sat, 26 Jan 2008 15:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/10/01/activescaffold-improved-search/#comment-5787</guid>
		<description>hi
i like your post
i would like to know,how can we give the relationship between role table and user table
we could not do this in activescaffold
can you please give me the answer to my email id</description>
		<content:encoded><![CDATA[<p>hi<br />
i like your post<br />
i would like to know,how can we give the relationship between role table and user table<br />
we could not do this in activescaffold<br />
can you please give me the answer to my email id</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on NHibernate/ActiveRecord - Constructor Mapping Support? by Artie</title>
		<link>http://adamesterline.com/2007/07/20/nhibernateactiverecord-constructor-mapping-support/#comment-5786</link>
		<dc:creator>Artie</dc:creator>
		<pubDate>Fri, 25 Jan 2008 18:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/07/20/nhibernateactiverecord-non-default-constructor-support/#comment-5786</guid>
		<description>Adam,

I'm experiencing exactly the same issue as you've described.

In some cases, I want to call some doStuff() private method from my constructor, but the current format doesn't allow for this.

Do you know if there's been any further suggestions for this?</description>
		<content:encoded><![CDATA[<p>Adam,</p>
<p>I&#8217;m experiencing exactly the same issue as you&#8217;ve described.</p>
<p>In some cases, I want to call some doStuff() private method from my constructor, but the current format doesn&#8217;t allow for this.</p>
<p>Do you know if there&#8217;s been any further suggestions for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Paging an ActiveRecord Collection Association by Antoine Choppin</title>
		<link>http://adamesterline.com/2007/07/26/paging-an-activerecord-collection-association/#comment-5781</link>
		<dc:creator>Antoine Choppin</dc:creator>
		<pubDate>Thu, 17 Jan 2008 15:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/07/26/paging-an-activerecord-collection-association/#comment-5781</guid>
		<description>[Sorry for re-posting.]

I found the solution to my problem: I was creating the SessionScope in global.asax in the Application_Start method, but this would not work.  I created a class Global.cs associated to global.asax and registered an event handler on BeginRequest and EndRequest in the constructor of the class (not Application_Start).  And if I create the SessionScope in the OnBeginRequest handler, it works fine now.

I found example code at:
http://osdir.com/ml/windows.dotnet.castleproject.devel/2005-10/msg00043.html</description>
		<content:encoded><![CDATA[<p>[Sorry for re-posting.]</p>
<p>I found the solution to my problem: I was creating the SessionScope in global.asax in the Application_Start method, but this would not work.  I created a class Global.cs associated to global.asax and registered an event handler on BeginRequest and EndRequest in the constructor of the class (not Application_Start).  And if I create the SessionScope in the OnBeginRequest handler, it works fine now.</p>
<p>I found example code at:<br />
<a href="http://osdir.com/ml/windows.dotnet.castleproject.devel/2005-10/msg00043.html" rel="nofollow">http://osdir.com/ml/windows.dotnet.castleproject.devel/2005-10/msg00043.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Paging an ActiveRecord Collection Association by Antoine Choppin</title>
		<link>http://adamesterline.com/2007/07/26/paging-an-activerecord-collection-association/#comment-5762</link>
		<dc:creator>Antoine Choppin</dc:creator>
		<pubDate>Wed, 16 Jan 2008 15:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/07/26/paging-an-activerecord-collection-association/#comment-5762</guid>
		<description>Thank you for this simple explanation.

I am trying to apply this in an ASP.NET webapp, but I get an exception: "the collection was unreferenced".

I read somewhere else that it is because I should be using the same session when loading the instance (team, in your example) as when executing the query.

Then, I found that I should be using a SessionScope to make sure the session is kept "alive".  However I still miss one piece: how do I get the session object?

Any advice about this?</description>
		<content:encoded><![CDATA[<p>Thank you for this simple explanation.</p>
<p>I am trying to apply this in an ASP.NET webapp, but I get an exception: &#8220;the collection was unreferenced&#8221;.</p>
<p>I read somewhere else that it is because I should be using the same session when loading the instance (team, in your example) as when executing the query.</p>
<p>Then, I found that I should be using a SessionScope to make sure the session is kept &#8220;alive&#8221;.  However I still miss one piece: how do I get the session object?</p>
<p>Any advice about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integrating JsUnit with NUnit using WatiN by Lê Thị Mỹ Hằng</title>
		<link>http://adamesterline.com/2007/05/15/integrating-jsunit-with-nunit-using-watin/#comment-5739</link>
		<dc:creator>Lê Thị Mỹ Hằng</dc:creator>
		<pubDate>Tue, 15 Jan 2008 02:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/05/15/integrating-jsunit-with-nunit-using-watin/#comment-5739</guid>
		<description>Cho đoạn javascript kiểm tra so sánh hai ngày :

function iesvn_CompareDate(fromDate, toDate) {
    if ((fromDate == "") &#124;&#124; (toDate == "")) {
        return null;
    }
    var arrFromDate = fromDate.split("/");
    var arrToDate = toDate.split("/");
    if (arrFromDate.length != 3 &#124;&#124; arrToDate.length != 3) {
	 	
        return null;
    }
    
    var d1 = iesvn_GetDateFromFormat(fromDate, "d/M/yyyy");
    var d2 = iesvn_GetDateFromFormat(toDate, "d/M/yyyy");
    if (d1 == 0 &#124;&#124; d2 == 0) {
        return null;
    } else {
        if (d1 &#62; d2) {
            return 1;
        } else {
            if (d1 == d2) {
                return 0;
            }
        }
    }
    return -1;
}
làm ơn chỉ cho em cách test đoạn Javascript trên. ngày hiện tiện lớn hơn ngày quá khứ; ngày hiện tại nhỏ hơn ngày o tương lai.</description>
		<content:encoded><![CDATA[<p>Cho đoạn javascript kiểm tra so sánh hai ngày :</p>
<p>function iesvn_CompareDate(fromDate, toDate) {<br />
    if ((fromDate == &#8220;&#8221 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> || (toDate == &#8220;&#8221;)) {<br />
        return null;<br />
    }<br />
    var arrFromDate = fromDate.split(&#8221;/&#8221;);<br />
    var arrToDate = toDate.split(&#8221;/&#8221;);<br />
    if (arrFromDate.length != 3 || arrToDate.length != 3) {</p>
<p>        return null;<br />
    }</p>
<p>    var d1 = iesvn_GetDateFromFormat(fromDate, &#8220;d/M/yyyy&#8221;);<br />
    var d2 = iesvn_GetDateFromFormat(toDate, &#8220;d/M/yyyy&#8221;);<br />
    if (d1 == 0 || d2 == 0) {<br />
        return null;<br />
    } else {<br />
        if (d1 &gt; d2) {<br />
            return 1;<br />
        } else {<br />
            if (d1 == d2) {<br />
                return 0;<br />
            }<br />
        }<br />
    }<br />
    return -1;<br />
}<br />
làm ơn chỉ cho em cách test đoạn Javascript trên. ngày hiện tiện lớn hơn ngày quá khứ; ngày hiện tại nhỏ hơn ngày o tương lai.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integrating JsUnit with NUnit using WatiN by Adam Esterline</title>
		<link>http://adamesterline.com/2007/05/15/integrating-jsunit-with-nunit-using-watin/#comment-5423</link>
		<dc:creator>Adam Esterline</dc:creator>
		<pubDate>Sun, 06 Jan 2008 14:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://adamesterline.com/2007/05/15/integrating-jsunit-with-nunit-using-watin/#comment-5423</guid>
		<description>It is in the public domain.      You may do with it as you wish.</description>
		<content:encoded><![CDATA[<p>It is in the public domain.      You may do with it as you wish.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
