<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dave McDermid &#187; .net</title>
	<atom:link href="http://www.davemcdermid.co.uk/tag/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davemcdermid.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 19 Jan 2010 00:59:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating to ASP.NET MVC</title>
		<link>http://www.davemcdermid.co.uk/2010/01/migrating-to-asp-net-mvc/</link>
		<comments>http://www.davemcdermid.co.uk/2010/01/migrating-to-asp-net-mvc/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 18:48:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Headscape]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://www.davemcdermid.co.uk/?p=90</guid>
		<description><![CDATA[A few months ago, maybe around November time last year when ASP.NET MVC 2 was being previewed, I was looking for excuses to build something to take advantage of as many new features as possible. Building a test site gets very dull very quickly, it just ain&#8217;t the same as a real project with real [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago, maybe around November time last year when ASP.NET MVC 2 was being previewed, I was looking for excuses to build something to take advantage of as many new features as possible. Building a test site gets very dull very quickly, it just ain&#8217;t the same as a real project with real world problems. So I took the current site I was working on and decided to implement a small part of it in MVC. I figured it might be interesting, and had this crazy idea that I could one day convince everyone we should move the whole site.</p>
<p>The benefits of such a migration to a developer are clear, but I&#8217;m not naive. The site in question is our flagship e-commerce site built on tried-and-proven classic ASP (VBScript) technology, with huge amounts of legacy code, multiple franchise systems, admin systems, and large numbers of paying customers. If it ain&#8217;t broke, there&#8217;s no chance we&#8217;ll be spending months on a risky rewrite. So I knew I had to be cunning.</p>
<p>My goal was simple. If I could get a small part of the front-end site to run under MVC, and show significant benefit to our client, it might just happen. The bait? Performance. One of the big benefits of moving from a scripting language to a modern framework is the tools available for various levels of caching. The other main drive was to move from using several 3rd party tools (such as Java and ISAPI ReWrite) to a common language and framework (C#.NET). This would make site maintenance less of a headache for everyone.</p>
<p>Over the course of a few lunchtimes, evenings and Saturday mornings I threw together a test site. A few demos and a series comparison stats later and we had a proposal.</p>
<p>Over the course of a series of blog posts, I&#8217;ll be outlining the various challenges associated with this project and how we tackle them. This will include advanced and customised routing, caching, best practices and running new code side-by-side with legacy code. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davemcdermid.co.uk/2010/01/migrating-to-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The beauty of XML</title>
		<link>http://www.davemcdermid.co.uk/2008/11/the-beauty-of-xml/</link>
		<comments>http://www.davemcdermid.co.uk/2008/11/the-beauty-of-xml/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 17:22:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Headscape]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.davemcdermid.co.uk/?p=30</guid>
		<description><![CDATA[Here at Headscape we&#8217;re quite keen on XML, in fact our CMS is heavily based on it, to the point of ignoring a few relational (normal form) database rules. This gives us a lot of flexibility, along with a number of interesting problems. This will no doubt be the first in a series looking at [...]]]></description>
			<content:encoded><![CDATA[<p>Here at <a href="http://www.headscape.co.uk">Headscape</a> we&#8217;re quite keen on XML, in fact our CMS is heavily based on it, to the point of ignoring a few relational (normal form) database rules. This gives us a lot of flexibility, along with a number of interesting problems. This will no doubt be the first in a series looking at how we tackle these issues, and why.</p>
<p>First off, a brief introduction to how we manage our data. Fragments of data that are used to build a web page are stored as XML in separate records in one table and associations are stored in another. That&#8217;s the basics. Meta data (such as created dates, published flags etc) are fields in the table, but the page data itself (title, category, body) is stored in a single XML field. To generate a web page, the required XML is collected, nested, transformed, and returned. Simple.</p>
<p>This allows us to deploy a generic database for a website and customise the fields that the user wants to use in XML schemas that we define. We have a nifty CMS that reads our XML schemas and provides the user with the forms to manipulate the data. The XML schemas are file system based, so are easily source controlled and transferred between projects.</p>
<p>When it comes round to styling the front-end site we transform the data in whatever format is required. We can create HTML, RSS, Atom or bespoke pages by defining new transforms. The hidden benefit here is that the XML, regardless of content, follows consistent patterns across our sites, allowing developers to switch between projects with ease.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davemcdermid.co.uk/2008/11/the-beauty-of-xml/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>5 reasons not to choose</title>
		<link>http://www.davemcdermid.co.uk/2008/11/5-reasons-not-to-choose/</link>
		<comments>http://www.davemcdermid.co.uk/2008/11/5-reasons-not-to-choose/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 15:45:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Musings]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://www.davemcdermid.co.uk/?p=22</guid>
		<description><![CDATA[I&#8217;m a .NET developer, that&#8217;s my job. I work with Windows Vista, it&#8217;s convenient for building .NET applications. At home I have a MacBook, and use OSX 10.5 (Leopard). Why do I do this? It&#8217;s not just because of software or compatibility, even though these are good reasons, they just don&#8217;t make for interesting reading.
1. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a .NET developer, that&#8217;s my job. I work with Windows Vista, it&#8217;s convenient for building .NET applications. At home I have a MacBook, and use OSX 10.5 (Leopard). Why do I do this? It&#8217;s not just because of software or compatibility, even though these are good reasons, they just don&#8217;t make for interesting reading.</p>
<p>1. Ignorance hurts only ourselves</p>
<p>Because although we all have our preferences, ignorance hurts only ourselves. As convenient as it would be for the whole world to switch to a single perfect OS, or at least the best available, it just ain&#8217;t practical, or sensible.</p>
<p>2. Opportunity</p>
<p>Clever chaps who can still program in assembly languages are never short on jobs, if anything their prospects increase as their skills become rarer. Large companies with an existing code-base often can&#8217;t afford the time or resource to rewrite systems from scratch to keep up with the latest trends in programming.</p>
<p>While Vista tends to frustrate me, so does Leopard from time to time. We learn to deal with it. If I decided, as so many do, to pick an OS and announce that all others confound me, I&#8217;d be limiting my career, my skills, and my friends.</p>
<p>3. Versatility</p>
<p>I&#8217;m in 2 minds over this one. On the one hand consistency helps us work faster, on the other hand versatility keeps our brains ready for change. And change is good. I rarely have a problem with Ctrl+C / Cmd+C, or with the location of close window buttons, my brain seems to happily switch contexts. Most people work hard to carve patterns and routines into their minds, and resist change like the devil. Change necessary, it is good to learn to deal with it.</p>
<p>4. Competition</p>
<p>Everyone knows competition is good, it drives business. As long as I don&#8217;t directly work with either Microsoft or Apple, I can happily encourage the use of both. While building <a href="http://www.getsignoff.com">GetSignOff</a> we found competing products inspired us, and spurred us on to build a greater product.</p>
<p>5. Make friends &amp; Alienate people</p>
<p>I love being able to talk knowledagbly with Mac fans and Windows fans alike, despite often being accused by both sides as a traitor. Making friends is great, and ridiculous comparisson based arguments are fun, being a regular on both sides of the game makes life more interesting. And life just ain&#8217;t worth it if it ain&#8217;t interesting.</p>
<p>What does everyone else think? I&#8217;m not the only one, why do other people? Other than, &#8216;I have to&#8217;, of course.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davemcdermid.co.uk/2008/11/5-reasons-not-to-choose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
