<?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/"
		>
<channel>
	<title>Comments on: Five things I wish I&#8217;d known when I started programming</title>
	<atom:link href="http://www.sodaware.net/blog/2006/06/five-things-i-wish-id-known-when-i-started-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sodaware.net/blog/2006/06/five-things-i-wish-id-known-when-i-started-programming/</link>
	<description>Adventures in shareware.</description>
	<lastBuildDate>Tue, 07 Feb 2012 17:03:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Job</title>
		<link>http://www.sodaware.net/blog/2006/06/five-things-i-wish-id-known-when-i-started-programming/comment-page-1/#comment-1168</link>
		<dc:creator>Job</dc:creator>
		<pubDate>Sat, 15 Jul 2006 16:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sodaware.net/blog/1970/01/five-things-i-wish-i%e2%80%99d-known-when-i-started-programming/#comment-1168</guid>
		<description>In my initial days, when i had little knowledge of how code compiles, i thought it would be faster to use math expressions rather than conditionals, thinking: &quot;long code is slow code&quot;.
I managed to avoid most if statements by converting these into a long math expression. My favourite operations were Math.Round(), Math.Floor(), Math.Ceil(), Math.sqrt(), besides the traditional +-*/.
The disadvantage of this is twofold:
- you can&#039;t read it
- it&#039;s alot slower because most of the time i would be substituting a bunch of nested if statements with a single expression composed of alot of operations.

With if statements the code is alot longer, but the program execution goes through those statements very fast, like in a tree, taking log(n) time instead of the k*n operations of the math approach.
Now THAT is bad. :)</description>
		<content:encoded><![CDATA[<p>In my initial days, when i had little knowledge of how code compiles, i thought it would be faster to use math expressions rather than conditionals, thinking: &#8220;long code is slow code&#8221;.<br />
I managed to avoid most if statements by converting these into a long math expression. My favourite operations were Math.Round(), Math.Floor(), Math.Ceil(), Math.sqrt(), besides the traditional +-*/.<br />
The disadvantage of this is twofold:<br />
- you can&#8217;t read it<br />
- it&#8217;s alot slower because most of the time i would be substituting a bunch of nested if statements with a single expression composed of alot of operations.</p>
<p>With if statements the code is alot longer, but the program execution goes through those statements very fast, like in a tree, taking log(n) time instead of the k*n operations of the math approach.<br />
Now THAT is bad. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Newton</title>
		<link>http://www.sodaware.net/blog/2006/06/five-things-i-wish-id-known-when-i-started-programming/comment-page-1/#comment-1154</link>
		<dc:creator>Phil Newton</dc:creator>
		<pubDate>Thu, 13 Jul 2006 21:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sodaware.net/blog/1970/01/five-things-i-wish-i%e2%80%99d-known-when-i-started-programming/#comment-1154</guid>
		<description>At least you give an explanation for them. My single letter variables used to crop up all over the place, and they were all globals as well. Sometimes I wonder how I managed to complete anything back then.</description>
		<content:encoded><![CDATA[<p>At least you give an explanation for them. My single letter variables used to crop up all over the place, and they were all globals as well. Sometimes I wonder how I managed to complete anything back then.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katy</title>
		<link>http://www.sodaware.net/blog/2006/06/five-things-i-wish-id-known-when-i-started-programming/comment-page-1/#comment-1143</link>
		<dc:creator>Katy</dc:creator>
		<pubDate>Tue, 11 Jul 2006 15:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.sodaware.net/blog/1970/01/five-things-i-wish-i%e2%80%99d-known-when-i-started-programming/#comment-1143</guid>
		<description>I completely agree about the comments bit.

The number of times I&#039;ve looked at code and it&#039;s taken me 3 times as long to fix because the comments are so bad (or there aren&#039;t any at all).

The one thing I do though to keep myself happy is use strange variable names (which I know is bad form but I do DIM them with an explanation at the top of the page).

My current favourites are Dilbert, Dogbert, Ratbert, Catbert and PHB.

Sad, I know... :p</description>
		<content:encoded><![CDATA[<p>I completely agree about the comments bit.</p>
<p>The number of times I&#8217;ve looked at code and it&#8217;s taken me 3 times as long to fix because the comments are so bad (or there aren&#8217;t any at all).</p>
<p>The one thing I do though to keep myself happy is use strange variable names (which I know is bad form but I do DIM them with an explanation at the top of the page).</p>
<p>My current favourites are Dilbert, Dogbert, Ratbert, Catbert and PHB.</p>
<p>Sad, I know&#8230; :p</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 222/244 objects using disk

Served from: www.sodaware.net @ 2012-02-11 16:03:33 -->
