<?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>Why Code Separation in .NET 2.0?</title><link>http://weblogs.asp.net/ahoffman/archive/2004/10/30/Why-Code-Separation-in-.NET-2.0_3F00_.aspx</link><description>I remain convinced that partial types are solely of use to those creating development tools and frameworks ...</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Why Code Separation in .NET 2.0?</title><link>http://weblogs.asp.net/ahoffman/archive/2004/10/30/Why-Code-Separation-in-.NET-2.0_3F00_.aspx#265954</link><pubDate>Thu, 18 Nov 2004 21:29:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:265954</guid><dc:creator>Kevin Won</dc:creator><author>Kevin Won</author><description>I think it's unfortunate that MS has gone to such lengths to try to make solving common problems easier by creating more IDE/wizards, which his how I take the implementation of partial classes. I don't know about 'yall but I tend to do nearly all of my asp.net programming in code, using placeholders to build up my control hierarchy. I've learned to do this the hard way because trying to do things in the cannonical ASP no-code paradigm simply hits a wall--you have to turn to code at a certain point, and the mixture of stuff on the ASP side and the code side is confusing and difficult to follow. &lt;br&gt;&lt;br&gt;One of the things that I appreciate most about the .net way of web development is that you can treat a web app in many ways like a 'real' app (i.e. the event handling paradigm). The more I can program that way, the better and more in control I feel. The smoke/mirrors 'no coding required' stuff rarely solves the kinds of tasks I'm assigned w/o getting into underlying code. &lt;br&gt;&lt;br&gt;All this to say that I wish MS would push the professional development curve instead of trying to make it 'easy'. .NET is the most powerful of the web languages, IMO, and should exploit that end of the market, not the lower end. If I wanted easy (and not professional or powerful), I'd use Coldfusion ;0)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=265954" width="1" height="1"&gt;</description></item><item><title>re: Why Code Separation in .NET 2.0?</title><link>http://weblogs.asp.net/ahoffman/archive/2004/10/30/Why-Code-Separation-in-.NET-2.0_3F00_.aspx#251042</link><pubDate>Tue, 02 Nov 2004 12:51:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:251042</guid><dc:creator>Frank Hileman</dc:creator><author>Frank Hileman</author><description>One of the main problems with the designer-generated code from windows forms designers was the vulnerability to random editing. Code as a serialization format is fragile; not really a good format. In my discussions with MS people it is clear that partial classes are only an attempt to hide generated code further, to make it less likely to be edited.&lt;br&gt;&lt;br&gt;There is one other use: giant classes that should be broken into multiple files. You may say, that code should not be all in one Type. But for usability of public Types, and performance (less allocated objects) it is sometimes necessary. Witness the windows form Control class, for example.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=251042" width="1" height="1"&gt;</description></item><item><title>re: Why Code Separation in .NET 2.0?</title><link>http://weblogs.asp.net/ahoffman/archive/2004/10/30/Why-Code-Separation-in-.NET-2.0_3F00_.aspx#250940</link><pubDate>Tue, 02 Nov 2004 05:23:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:250940</guid><dc:creator>Atul</dc:creator><author>Atul</author><description>I think that partial classes are one of the best things that happened to code generation. Modifying generated code has been a problem in the past and partial classes go a long way in solving that particular problem. &lt;br&gt;&lt;br&gt;And like it or not, code generation is going to become increasingly popular IMHO...&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=250940" width="1" height="1"&gt;</description></item><item><title>re: Why Code Separation in .NET 2.0?</title><link>http://weblogs.asp.net/ahoffman/archive/2004/10/30/Why-Code-Separation-in-.NET-2.0_3F00_.aspx#249942</link><pubDate>Sat, 30 Oct 2004 10:16:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:249942</guid><dc:creator>Andrey Skvortsov</dc:creator><author>Andrey Skvortsov</author><description>Are you complaint about absence of intristic knowledge of framework implementation details also?&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=249942" width="1" height="1"&gt;</description></item><item><title>re: Why Code Separation in .NET 2.0?</title><link>http://weblogs.asp.net/ahoffman/archive/2004/10/30/Why-Code-Separation-in-.NET-2.0_3F00_.aspx#249929</link><pubDate>Sat, 30 Oct 2004 08:48:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:249929</guid><dc:creator>Natty Gur</dc:creator><author>Natty Gur</author><description>I vote for you!&lt;br&gt;&lt;br&gt;I wrote about it several time. it will be great if MS let us the option to touch the main class file code from the secound class they they let us use.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=249929" width="1" height="1"&gt;</description></item></channel></rss>