<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Shiju Varghese's Blog - All Comments</title><link>http://weblogs.asp.net/shijuvarghese/default.aspx</link><description>A .Net Ninja on  ASP.NET MVC, TDD and Architecture.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Goodbye Stored procedures, It’s the time to move on "Linq to Sql" </title><link>http://weblogs.asp.net/shijuvarghese/archive/2008/03/26/goodbye-stored-procedures-it-s-the-time-to-move-on-quot-linq-to-sql-quot.aspx#7260635</link><pubDate>Thu, 19 Nov 2009 17:13:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7260635</guid><dc:creator>Jethro Tull</dc:creator><author>Jethro Tull</author><description>&lt;p&gt;additional value is revealed when you have associated objects.. So when you save an object of type A you are persisting all related objects TypeA.TypeB.... Even more of a benefit is that you can have simple external transaction wrapping it up, so you never have the possibility of a stored procedure creating a record in table A but not in table B.... &lt;/p&gt;
&lt;p&gt;this discussion is the same as arguing for and against object oriented programming. The benefits are obvious: type-safe scalable and readable code.&lt;/p&gt;
&lt;p&gt;Humans make mistakes, and by adding stored procedures you better know what you are doing cause you can easily reak havoc. &lt;/p&gt;
&lt;p&gt;I myself am a big fan of nHibernate and Linq seems to offer the same advantages. And i loathe cursors and all the other bs that should be in easily extensible code rather than TSQL... &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7260635" width="1" height="1"&gt;</description></item><item><title>re: Default option label for DropDownList in ASP.NET MVC Preview 5 </title><link>http://weblogs.asp.net/shijuvarghese/archive/2008/09/01/default-option-label-for-dropdownlist-in-asp-net-mvc-preview-5.aspx#7259649</link><pubDate>Wed, 18 Nov 2009 22:14:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7259649</guid><dc:creator>Joanna</dc:creator><author>Joanna</author><description>&lt;p&gt;Add &amp;lt;asp:ListItem&amp;gt;&amp;lt;/asp:ListItem&amp;gt; like this &amp;lt;asp:DropDownList&amp;gt;&amp;lt;asp:ListItem&amp;gt;&amp;lt;/asp:ListItem&amp;gt;&amp;lt;/asp:DropDownList&amp;gt;&lt;/p&gt;
&lt;p&gt;This works whether you are using static values or dynamic values&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7259649" width="1" height="1"&gt;</description></item><item><title>ASP.NET MVC 2 Beta Released - Shiju Varghese&amp;#39;s Blog Scripts Rss</title><link>http://weblogs.asp.net/shijuvarghese/archive/2009/11/18/asp-net-mvc-2-beta-released.aspx#7258886</link><pubDate>Wed, 18 Nov 2009 08:53:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7258886</guid><dc:creator>ASP.NET MVC 2 Beta Released - Shiju Varghese's Blog Scripts Rss</dc:creator><author>ASP.NET MVC 2 Beta Released - Shiju Varghese's Blog Scripts Rss</author><description>&lt;p&gt;Pingback from &amp;nbsp;ASP.NET MVC 2 Beta Released - Shiju Varghese&amp;amp;#39;s Blog Scripts Rss&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7258886" width="1" height="1"&gt;</description></item><item><title>Twitter Trackbacks for                 ASP.NET MVC 2 Beta Released - Shiju Varghese's Blog         [asp.net]        on Topsy.com</title><link>http://weblogs.asp.net/shijuvarghese/archive/2009/11/18/asp-net-mvc-2-beta-released.aspx#7258795</link><pubDate>Wed, 18 Nov 2009 07:10:15 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7258795</guid><dc:creator>Twitter Trackbacks for                 ASP.NET MVC 2 Beta Released - Shiju Varghese's Blog         [asp.net]        on Topsy.com</dc:creator><author>Twitter Trackbacks for                 ASP.NET MVC 2 Beta Released - Shiju Varghese's Blog         [asp.net]        on Topsy.com</author><description>&lt;p&gt;Pingback from &amp;nbsp;Twitter Trackbacks for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ASP.NET MVC 2 Beta Released - Shiju Varghese's Blog &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [asp.net] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Topsy.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7258795" width="1" height="1"&gt;</description></item><item><title>ASP.NET MVC Archived Blog Posts, Page 1</title><link>http://weblogs.asp.net/shijuvarghese/archive/2009/11/18/asp-net-mvc-2-beta-released.aspx#7258785</link><pubDate>Wed, 18 Nov 2009 06:44:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7258785</guid><dc:creator>ASP.NET MVC Archived Blog Posts, Page 1</dc:creator><author>ASP.NET MVC Archived Blog Posts, Page 1</author><description>&lt;p&gt;Pingback from &amp;nbsp;ASP.NET MVC Archived Blog Posts, Page 1&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7258785" width="1" height="1"&gt;</description></item><item><title>re: I Became Father</title><link>http://weblogs.asp.net/shijuvarghese/archive/2009/01/19/i-became-father.aspx#7257748</link><pubDate>Tue, 17 Nov 2009 09:26:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7257748</guid><dc:creator>Prabath</dc:creator><author>Prabath</author><description>&lt;p&gt;Congratulation&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7257748" width="1" height="1"&gt;</description></item><item><title>re: Goodbye Stored procedures, It’s the time to move on "Linq to Sql" </title><link>http://weblogs.asp.net/shijuvarghese/archive/2008/03/26/goodbye-stored-procedures-it-s-the-time-to-move-on-quot-linq-to-sql-quot.aspx#7257233</link><pubDate>Tue, 17 Nov 2009 01:48:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7257233</guid><dc:creator>joedotnot</dc:creator><author>joedotnot</author><description>&lt;p&gt;&amp;gt;We have worked with 100% SProcs used in our systems for years. All our business logic sits ONLY on the DB side.&lt;/p&gt;
&lt;p&gt;Have you even heard of OOP and modelling your business rules with classes and objects? I am a fan of sprocs, but i restrict their usage for basic CRUD functionality, anything else is modelled in the middle tier.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7257233" width="1" height="1"&gt;</description></item><item><title>re: Introduction to Test-Driven Development with ASP.NET MVC</title><link>http://weblogs.asp.net/shijuvarghese/archive/2009/07/22/introduction-to-test-driven-development-with-asp-net-mvc.aspx#7231509</link><pubDate>Fri, 16 Oct 2009 16:03:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7231509</guid><dc:creator>Matthew Miller</dc:creator><author>Matthew Miller</author><description>&lt;p&gt;Whats the point of the Service class? &amp;nbsp;What is it&amp;#39;s single responsibility? &amp;nbsp;The first test highlights the issue. &amp;nbsp;You&amp;#39;re testing a controller that consumes the service class, yet all your mocks and expectations are set on the repository class.&lt;/p&gt;
&lt;p&gt;Indeed your SetUp method actually creates an instance of the service which means that your controller tests will test both the behavior of the service and the controller. &amp;nbsp;Any change to actual behavior in the service class would likely result in broken controller tests.&lt;/p&gt;
&lt;p&gt;In looking at the behavior encapsulated by the code I see only a single method that shouldn&amp;#39;t be on the repository or controller and that is the validation of the name. &amp;nbsp;Would saving a category to the DB with an empty name ever be a valid condition? &amp;nbsp;If not then the validation of the category should be moved to a place where this logic can be shared.&lt;/p&gt;
&lt;p&gt;Because the logic is so simple here, I would simply place the validation logic on the model directly, but for many more advanced scenarios the logic should be encapsulated on a different object. &amp;nbsp;The more advanced scenarios would then drive the creation of a Service object of some sort.&lt;/p&gt;
&lt;p&gt;Overall good explanation of TDD, but the service object is simply unnecessary for the example.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7231509" width="1" height="1"&gt;</description></item><item><title>Dependency injection (DI) &amp;laquo; Make Your Heart &amp;quot;ba-boom ba-boom&amp;quot; (????????????)</title><link>http://weblogs.asp.net/shijuvarghese/archive/2009/03/12/applying-dependency-injection-in-asp-net-mvc-nerddinner-com-application.aspx#7230690</link><pubDate>Thu, 15 Oct 2009 15:11:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7230690</guid><dc:creator>Dependency injection (DI) « Make Your Heart "ba-boom ba-boom" (????????????)</dc:creator><author>Dependency injection (DI) « Make Your Heart "ba-boom ba-boom" (????????????)</author><description>&lt;p&gt;Pingback from &amp;nbsp;Dependency injection (DI) &amp;amp;laquo; Make Your Heart &amp;amp;quot;ba-boom ba-boom&amp;amp;quot; (????????????)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7230690" width="1" height="1"&gt;</description></item><item><title>re: Default option label for DropDownList in ASP.NET MVC Preview 5 </title><link>http://weblogs.asp.net/shijuvarghese/archive/2008/09/01/default-option-label-for-dropdownlist-in-asp-net-mvc-preview-5.aspx#7227691</link><pubDate>Mon, 12 Oct 2009 07:39:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7227691</guid><dc:creator>r4 firmware</dc:creator><author>r4 firmware</author><description>&lt;p&gt;How do you get it so a blank option will show in the list? If I put a string.Empty there it doesn&amp;#39;t add the blank option.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7227691" width="1" height="1"&gt;</description></item></channel></rss>