<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: You know you are working on bad code when &#8230;</title>
	<atom:link href="http://randomcode.net.nz/2008/05/14/you-know-you-are-working-on-bad-code-when/feed/" rel="self" type="application/rss+xml" />
	<link>http://randomcode.net.nz/2008/05/14/you-know-you-are-working-on-bad-code-when/</link>
	<description>Random code and concepts from yet another .NET developer</description>
	<lastBuildDate>Mon, 20 Sep 2010 02:21:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Henrik</title>
		<link>http://randomcode.net.nz/2008/05/14/you-know-you-are-working-on-bad-code-when/#comment-75</link>
		<dc:creator><![CDATA[Henrik]]></dc:creator>
		<pubDate>Sat, 30 Aug 2008 17:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://nealblomfield.wordpress.com/?p=26#comment-75</guid>
		<description><![CDATA[...when you see &quot;advanced&quot; ADO.Net code, manipulating strings to insert the &quot;parameters&quot;, perform the ExecuteNonQuery() in some places, all within a try-catch block:
try {
var tx = createtx();
// much ado (.net)
cmd.CommandText = &quot;ALALLA attribute=&quot; + myTextbox.Text + &quot; AND bla bla&quot;;
// some writes to db
}
catch(Exception ex) {
tx.Commit();
throw ex;
}

Saw this when I was to hire a second developer for a project :D]]></description>
		<content:encoded><![CDATA[<p>&#8230;when you see &#8220;advanced&#8221; ADO.Net code, manipulating strings to insert the &#8220;parameters&#8221;, perform the ExecuteNonQuery() in some places, all within a try-catch block:<br />
try {<br />
var tx = createtx();<br />
// much ado (.net)<br />
cmd.CommandText = &#8220;ALALLA attribute=&#8221; + myTextbox.Text + &#8221; AND bla bla&#8221;;<br />
// some writes to db<br />
}<br />
catch(Exception ex) {<br />
tx.Commit();<br />
throw ex;<br />
}</p>
<p>Saw this when I was to hire a second developer for a project <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

