<?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>antipaucity &#187; code</title>
	<atom:link href="http://antipaucity.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://antipaucity.com</link>
	<description>fighting the lack of good ideas</description>
	<lastBuildDate>Sat, 04 Feb 2012 20:21:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>the deadly sins of programming &#8211; again?</title>
		<link>http://antipaucity.com/2011/02/18/the-deadly-sins-of-programming-again/</link>
		<comments>http://antipaucity.com/2011/02/18/the-deadly-sins-of-programming-again/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 13:11:21 +0000</pubDate>
		<dc:creator>antipaucity</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[commentary]]></category>
		<category><![CDATA[reprint]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://antipaucity.com/?p=814</guid>
		<description><![CDATA[InfoWorld this week published yet another article on &#8220;The 7 deadly sins of software development&#8221;. For those who don&#8217;t care to read the ~1 page article (that&#8217;s split unless you use the &#8220;print&#8221; option that puts it all on one page), here&#8217;s the list: Lust &#8211; overengineering Gluttony &#8211; not refactoring Greed &#8211; cross-team competition [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2011/02/18/the-deadly-sins-of-programming-again/' addthis:title='the deadly sins of programming &#8211; again? ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://infoworld.com/print/151872">InfoWorld</a> this week published yet another article on &#8220;The 7 deadly sins of software development&#8221;. For those who don&#8217;t care to read the ~1 page article (that&#8217;s split unless you use the &#8220;print&#8221; option that puts it all on one page), here&#8217;s the list:</p>
<ol>
<li>Lust &#8211; overengineering</li>
<li>Gluttony &#8211; not refactoring</li>
<li>Greed &#8211; cross-team competition</li>
<li>Sloth &#8211; not validating input</li>
<li>Wrath &#8211; no/bad comments</li>
<li>Envy &#8211; no version control</li>
<li>Pride &#8211; no unit testing</li>
</ol>
<p>Spiffy. Items 1, 4, 5, and 7 are beaten to <strong><em>DEATH</em></strong> in every computer science / information systems / intro programming / advanced programming / algorithms / data structures / etc / etc class I have every attended, read about, heard about, or thought about. Why is it rehashed AGAIN by InfoWorld?</p>
<p>Better yet, why does an article like this appear every 9-18 months (or more!) in a major publication or on a major website (<a href="http://infoworld.com">InfoWorld</a>, <a href="http://computerworld.com">ComputerWorld</a>, <a href="http://arstechnica.com">arstechnica</a>, <a href="http://joelonsoftware.com">joelonsoftware</a>, <a href="http://codinghorror.com">codinghorror</a>, <a href="http://stackoverflow.com/questions/57058/what-are-bad-programming-practices-in-c">etc</a> <a href="https://duckduckgo.com/?q=bad+programming+practices">etc</a>)?</p>
<p>Is it because, as my friend <a href="http://theexceptioncatcher.com/blog">Steven</a> said they&#8217;re &#8216;<em>basically new writers {&#8220;i&#8217;m fresh out of college and i know everything&#8221;} or quotas on programming articles</em>&#8216;? Is it because programmers are <em>really</em> <strong>THAT</strong> lazy? Or that bad? Or that inconsiderate? Or that management hasn&#8217;t encouraged a culture of excellence and teamwork? Yes, <a href="http://www.joelonsoftware.com/items/2009/09/23.html">shipping <em>IS</em> a feature</a>. It&#8217;s really important. So is having developers who care about their work &#8211; and who care for their fellow workers who will have to look at / modify / care for / clean their work later.</p>
<p>Lack of version control will bite you HARD everytime you don&#8217;t use it (don&#8217;t ask how I know &#8211; call it a <a href="http://www.imdb.com/title/tt0317740/quotes?qt0480142">Bad Experience</a>™). Competing with other teams is just dumb: you&#8217;re all <em>supposed</em> to be working for the same company, the same end goal, and, ultimately, the same customers who will eventually pay for whatever it is you&#8217;re writing (I&#8217;ll relate another moderately-humorous anecdote on that another time).</p>
<p>If developers really are that bad, or their employers are bad enough to not help/fix behavior, then we&#8217;re all in a lot of trouble. And if they&#8217;re not &#8211; then it must just be that it was a slow week, so somebody thought they&#8217;d regurgitate and modify the same thing we&#8217;ve all heard hundreds of times.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2011/02/18/the-deadly-sins-of-programming-again/' addthis:title='the deadly sins of programming &#8211; again? ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://antipaucity.com/2011/02/18/the-deadly-sins-of-programming-again/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>firsts &#8211; programming</title>
		<link>http://antipaucity.com/2011/02/10/firsts-programming/</link>
		<comments>http://antipaucity.com/2011/02/10/firsts-programming/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 00:09:22 +0000</pubDate>
		<dc:creator>antipaucity</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[firsts]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://antipaucity.com/?p=800</guid>
		<description><![CDATA[I realized earlier this week that it&#8217;s been 19 years since I first started programming. Not my first exposure to computing, which was in about 1986 on my aunt&#8217;s Mac 512 .. but still a long time ago My aunt gave me a Tandy 102 laptop that had a whole walloping 21446 bytes of storage. [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2011/02/10/firsts-programming/' addthis:title='firsts &#8211; programming ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I realized earlier this week that it&#8217;s been 19 years since I first started programming. Not my first exposure to computing, which was in about 1986 on my aunt&#8217;s Mac 512 .. but still a long time ago <img src='http://antipaucity.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My aunt gave me a Tandy 102 laptop that had a whole walloping 21446 bytes of storage. It had the capability to store up to 19 files, and the names had to be in a 6.2 form (ie, not the &#8220;standard&#8221; DOS 8.3 naming convention).</p>
<p>It shipped with MS BASIC somethingorother, and had a 40 character wide by 8 character tall screen. Oh, and don&#8217;t forget the built-in 300 bps modem (that &#8216;rotary&#8217; dialed)!</p>
<p><img class="alignright" title="Lien - Tandy BASIC" src="http://www.computinghistory.org.uk/userdata/PRODPIC-1827.jpg" alt="" width="250" height="314" /> I learned BASIC from <a href="http://www.amazon.com/s/?tag=antipaucity-20&creative=392009&campaign=212361&link_code=wsw&_encoding=UTF-8&search-alias=aps&field-keywords=Learning BASIC for the Tandy&Submit.x=0&Submit.y=0&Submit=Go">Learning BASIC for the Tandy</a> by <a href="http://www.amazon.com/s/?tag=antipaucity-20&creative=392009&campaign=212361&link_code=wsw&_encoding=UTF-8&search-alias=aps&field-keywords=David A Lien&Submit.x=0&Submit.y=0&Submit=Go">David A Lien</a>. I learned a LOT from that book &#8211; not the least of which was that color doesn&#8217;t work on a monochrome screen <img src='http://antipaucity.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I also learned how pseudorandom numbers can be &#8220;manipulated&#8221; to help you win games .. and that typos suck : mightily.</p>
<p>Some of my programming habits that I still carry (even in writing &#8220;throwaway&#8221; scripts), come from my time of writing programs on an <em>extremely</em> limited machine.</p>
<p>After playing with BASIC for a year or so, I started writing for my aunt&#8217;s old Mac iiVX (which had 5MB RAM and an 80MB hard disk!) using Microsoft QuickBASIC 1.0 (a compilable BASIC), then moved into Turbo Pascal for a couple months, and then into C++ in 1993. My introduction to C++ was in the form of working with a family friend from church who wanted to learn C++ (but knew C), and who wanted to try-out some ideas he had for work with finite element analysis software. So we (I built the mesh generator/parser, and acted as syntax fiend) built a FEA application using Borland C++ 4.0 on his 486 running Windows 3.11 for workgroups. That was a screamer compared to my little laptop: it ran at 66Mhz, and had 16MB RAM! Wow: those were the days <img src='http://antipaucity.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My cell phone has more RAM than that now, and a faster CPU, to boot!</p>
<p>I know I didn&#8217;t start as long ago, or as young, as some of my friends, colleagues, and cofiends &#8211; but there&#8217;s my story <img src='http://antipaucity.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2011/02/10/firsts-programming/' addthis:title='firsts &#8211; programming ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://antipaucity.com/2011/02/10/firsts-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress plugins</title>
		<link>http://antipaucity.com/2010/08/11/wordpress-plugins/</link>
		<comments>http://antipaucity.com/2010/08/11/wordpress-plugins/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 03:10:41 +0000</pubDate>
		<dc:creator>antipaucity</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://antipaucity.com/?p=706</guid>
		<description><![CDATA[I&#8217;ve started writing [simple] plugins for WordPress &#8211; the blogging tool I use to manage antipaucity.com. As I write more, if I think they&#8217;re worth sharing, I&#8217;ll write about them here. A full list will also be available at http://antipaucity.com/plugins.<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2010/08/11/wordpress-plugins/' addthis:title='wordpress plugins ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started writing [simple] plugins for <a href="//wordpress.org">WordPress</a><a></a> &#8211; the blogging tool I use to manage <a href="/">antipaucity.com</a>.</p>
<p>As I write more, if I think they&#8217;re worth sharing, I&#8217;ll write about them here. A full list will also be available at <a href="http://antipaucity.com/plugins">http://antipaucity.com/plugins</a>.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2010/08/11/wordpress-plugins/' addthis:title='wordpress plugins ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://antipaucity.com/2010/08/11/wordpress-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>shell scripting</title>
		<link>http://antipaucity.com/2009/10/15/shell-scripting/</link>
		<comments>http://antipaucity.com/2009/10/15/shell-scripting/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 09:33:58 +0000</pubDate>
		<dc:creator>antipaucity</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://antipaucity.com/?p=443</guid>
		<description><![CDATA[I&#8217;ve been playing around with bash scripting quite a bit recently in relation to my current job. Came up with one that&#8217;s really useful (imho) around chkconfig: # mass set all services known to chkconfig to be `on` or `off` at given level # written by warren myers - warren@warrenmyers.com # 28 sep 2009 echo [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2009/10/15/shell-scripting/' addthis:title='shell scripting ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with bash scripting quite a bit recently in relation to my current job.</p>
<p>Came up with one that&#8217;s really useful (imho) around <code>chkconfig</code>:</p>
<p><code># mass set all services known to chkconfig to be `on` or `off` at given level<br />
# written by warren myers - warren@warrenmyers.com<br />
# 28 sep 2009</code></p>
<p><code>echo "USAGE:"<br />
echo " $0 &lt;level&gt; [on|off]"<br />
echo</code></p>
<p><code># list all services, just the name, skip blank lines, do in order<br />
SERVICES=`chkconfig --list | cut -f 1 | grep -v ^$ | grep -v ':' | sort`</code></p>
<p><code>for SERVICE in $SERVICES<br />
do<br />
  chkconfig --level $1 $SERVICE $2<br />
  echo "$SERVICE has been altered for $1 to state $2"<br />
done<br />
</code></p>
<p>Yes &#8211; there&#8217;s an evil you could perform:</p>
<p><code>for CS in `chkconfig --list | cut -f 1 | grep -v ^$ | grep -v ':'`<br />
do<br />
  chkconfig --level 12345 $CS off<br />
done<br />
</code></p>
<p>So, if you wanted to stop all services from coming on at startup, you could &#8211; and not know you did it until you rebooted.</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2009/10/15/shell-scripting/' addthis:title='shell scripting ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://antipaucity.com/2009/10/15/shell-scripting/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>tiny code</title>
		<link>http://antipaucity.com/2009/09/02/tiny-code/</link>
		<comments>http://antipaucity.com/2009/09/02/tiny-code/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 18:52:02 +0000</pubDate>
		<dc:creator>antipaucity</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[technical]]></category>

		<guid isPermaLink="false">http://antipaucity.com/?p=391</guid>
		<description><![CDATA[I ran across the Tiny Code site recently, and was reminded of how many of us started programming on ancient machines that barely had enough horsepower to handle typing &#8211; yet we&#8217;d spend hours on end writing little games and whatnot that had to be small or they wouldn&#8217;t run. I&#8217;d love to see a [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2009/09/02/tiny-code/' addthis:title='tiny code ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I ran across the <a href="http://kmkeen.com/tiny-code/index.html">Tiny Code</a> site recently, and was reminded of how many of us started programming on ancient machines that barely had enough horsepower to handle typing &#8211; yet we&#8217;d spend hours on end writing little games and whatnot that <strong><em>had</em><span style="font-weight: normal;"> to be small or they wouldn&#8217;t run.</span></strong></p>
<p><strong><span style="font-weight: normal;">I&#8217;d love to see a return to a minimalist approach to development &#8211; but I know it&#8217;s only a pipe dream.</span></strong></p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2009/09/02/tiny-code/' addthis:title='tiny code ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://antipaucity.com/2009/09/02/tiny-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gold medallion</title>
		<link>http://antipaucity.com/2009/07/22/gold-medallion/</link>
		<comments>http://antipaucity.com/2009/07/22/gold-medallion/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 02:29:08 +0000</pubDate>
		<dc:creator>antipaucity</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://antipaucity.com/?p=313</guid>
		<description><![CDATA[While certainly not as exciting as Tarus&#8217; achievement, I did just roll to Gold status with Delta &#8211; and had I never cashed-in flier miles in the past, I&#8217;d be sitting in the neighborhood of 250k instead of 150. So yes, like him I&#8217;m in that group that everybody else hates &#8211; the folks who [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2009/07/22/gold-medallion/' addthis:title='gold medallion ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>While certainly not as exciting as Tarus&#8217; <a href="http://blogs.opennms.org/?p=1030">achievement</a>, I did just roll to Gold status with Delta &#8211; and had I never cashed-in flier miles in the past, I&#8217;d be sitting in the neighborhood of 250k instead of 150.</p>
<p>So yes, like him I&#8217;m in that group that everybody else hates &#8211; the folks who get on first if we want <img src='http://antipaucity.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://antipaucity.com/2009/07/22/gold-medallion/' addthis:title='gold medallion ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://antipaucity.com/2009/07/22/gold-medallion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

