<?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>this.rand() &#187; geekdom</title>
	<atom:link href="http://www.thisrand.com/tag/geekdom/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thisrand.com</link>
	<description>the life of Ryan Meinzer and Jessica Meinzer</description>
	<lastBuildDate>Mon, 19 Sep 2011 01:41: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>Tweaking Jquery AutoSuggest</title>
		<link>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest</link>
		<comments>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest#comments</comments>
		<pubDate>Mon, 31 Jan 2011 17:19:52 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=1521</guid>
		<description><![CDATA[Tweaking the Drew Wilson Jquery autosuggest script to display a full list on double click without typing any input.]]></description>
			<content:encoded><![CDATA[<p>I have been using the <a target="_blank" class="zem_slink" title="JQuery" rel="homepage" href="http://jquery.com/">JQuery library</a> for a long time now, and am still amazed at what people get it to do.  One feature that the base libaray was really lacking was a good <a target="_blank" class="zem_slink" title="Incremental search" rel="wikipedia" href="http://en.wikipedia.org/wiki/Incremental_search">Autosuggest</a> for a text input.  It needed to be <a target="_blank" class="zem_slink" title="Ajax (programming)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> driven, and understand having multiple values.</p>
<p>I found a great example of what I wanted at <a target="_blank" href="http://code.drewwilson.com/entry/autosuggest-jquery-plugin" target="_blank">Drew Wilson&#8217;s blog</a>, complete with almost all the features I needed.</p>
<p>One thing his script is really lacking is a good way to show ALL the results.  We have a huge category list, and want to let someone browse them all.  In the base script, this isn&#8217;t going to work, since there isnt a way to make the look up fire off without input.  I didnt want my users to have to enter in, one by one, each letter of the alphabet looking for what they wanted, so I settled on using a double click event to force the display of the entire list.</p>
<p>And here is how to make that happen:</p>
<p>In the js file (jquery.autoSuggest.js) you will need to make some changes.</p>
<p>~line 149 add:</p>
<pre> }).dblclick(<a target="_blank" class="zem_slink" title="Function (mathematics)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Function_%28mathematics%29">function</a>(){</pre>
<pre> if (timeout){ clearTimeout(timeout); }</pre>
<pre> timeout = setTimeout(function(){ keyChange(); }, opts.keyDelay);</pre>
<p>so it will look like:</p>
<pre> }).blur(function(){</pre>
<pre> if($(this).val() == "" &amp;&amp; values_input.val() == "" &amp;&amp; prefill_value == ""){</pre>
<pre> $(this).val(opts.startText);</pre>
<pre> } else if(input_focus){</pre>
<pre> $("li.as-selection-item", selections_holder).addClass("blur").removeClass("selected");</pre>
<pre> results_holder.hide();</pre>
<pre> }</pre>
<pre> }).dblclick(function(){</pre>
<pre> if (timeout){ clearTimeout(timeout); }</pre>
<pre> timeout = setTimeout(function(){ keyChange(); }, opts.keyDelay);</pre>
<pre> }).keydown(function(e) {</pre>
<p>This will pull up a list on <a target="_blank" class="zem_slink" title="Double-click" rel="wikipedia" href="http://en.wikipedia.org/wiki/Double-click">double click</a>.  You can change dlbclick to just click for a <a target="_blank" class="zem_slink" title="Point-and-click" rel="wikipedia" href="http://en.wikipedia.org/wiki/Point-and-click">single click</a> response instead.</p>
<p>~line 226 comment out the lines:</p>
<pre>if( lastKeyPressCode == 46 || (lastKeyPressCode &gt; 8 &amp;&amp; lastKeyPressCode &lt; 32) ){ return results_holder.hide(); }</pre>
<p>and</p>
<pre>if (string == prev) return;</pre>
<p>and</p>
<pre>if (string.length &gt;= opts.minChars) {</pre>
<p>and then on ~line 252 comment out</p>
<pre> } else {</pre>
<pre> selections_holder.removeClass("loading");</pre>
<pre> results_holder.hide();</pre>
<pre> }</pre>
<p>You will also want to turn the option &#8220;resultsHighlight&#8221; false, when you create the instance.</p>
<p>Now, on double click it will present a full list of options.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://designshack.co.uk/articles/javascript/weekly-freebies-10-brilliant-jquery-plugins">Weekly Freebies: 10 Brilliant jQuery Plugins</a> (designshack.co.uk)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.devcurry.com/2010/11/jquery-144-fadetoggle-function.html">jQuery 1.4.4 fadeToggle() function</a> (devcurry.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://addyosmani.com/blog/jquery-roundrr/">jQuery Roundrr &#8211; How To Create Awesome Circular Image Galleries With jQuery &amp; CSS</a> (addyosmani.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.devcurry.com/2010/10/use-jquery-to-scroll-to-bottom-or-top.html">Use jQuery to Scroll to Bottom or Top of a Page</a> (devcurry.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://renesd.blogspot.com/2011/01/jquery-15-promises-better-future.html">JQuery 1.5 promises a better future.</a> (renesd.blogspot.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=4e0fe6cc-4494-4d0c-a7ab-aa75277a202e" alt="Enhanced by Zemanta" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2011/01/tweaking-jquery-autosuggest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Validation is (still) pointless!</title>
		<link>http://www.thisrand.com/2010/11/html-validation-is-still-pointless</link>
		<comments>http://www.thisrand.com/2010/11/html-validation-is-still-pointless#comments</comments>
		<pubDate>Tue, 23 Nov 2010 20:43:03 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[cute]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[legal]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[www]]></category>
		<category><![CDATA[zoo]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=542</guid>
		<description><![CDATA[Ok, so we all know that we should write &#8220;valid&#8221;* HTML, and yet, less than 5% of websites validate for one reason or another.  Now this statistic can be a...]]></description>
			<content:encoded><![CDATA[<p>Ok, so we all know that we <em>should</em> write &#8220;valid&#8221;* <a target="_blank" class="zem_slink" title="HTML" rel="wikipedia" href="http://en.wikipedia.org/wiki/HTML">HTML</a>, and yet, <a target="_blank" href="http://www.netmag.co.uk/zine/latest-issue/issue-183" target="_blank">less than 5% of websites validate</a> for one reason or another.  Now this statistic can be a bit misleading as a comment from a user that didn&#8217;t use valid markup could invalidate the <a target="_blank" class="zem_slink" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website</a>, so granted, there is some play with the stats (per the usual), but let&#8217;s again assume that number is close.</p>
<p>Why?  Why do we not write perfect HTML?  Surely with the free <a target="_blank" href="http://validator.w3.org/" target="_blank">validator</a> on the authority&#8217;s website there is no excuse to write code that wont validate against the standard.</p>
<p>The answer there is simple, <strong>if and when </strong>all the major browsers (<a target="_blank" class="zem_slink" title="Mozilla Firefox" rel="geolocation" href="http://maps.google.com/maps?ll=45.1238,-123.1138&amp;spn=1.0,1.0&amp;q=45.1238,-123.1138%20%28Mozilla%20Firefox%29&amp;t=h">Firefox</a>, <a target="_blank" class="zem_slink" title="Safari (web browser)" rel="homepage" href="http://www.apple.com/safari/">Safari</a>, IE, <a target="_blank" class="zem_slink" title="Opera Software" rel="homepage" href="http://www.opera.com">Opera</a>, Chrome) all render a page according to the standard, then I will finally start caring about the validation of my websites.  Until then, I will continue to write code that works across the board, and just not care if it is &#8220;valid&#8221;.</p>
<p>To be real though, most of the browsers work pretty well, however the <a target="_blank" href="http://www.w3schools.com/browsers/browsers_stats.asp" target="_blank">800lb gorilla</a> in the room, IE, does not.  <a target="_blank" class="zem_slink" title="Microsoft" rel="homepage" href="http://www.microsoft.com">Microsoft</a> continually changes the standards by which they will render a page, like promising <a target="_blank" href="http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx" target="_blank">CSS 2 support in IE7</a> then bailing on that promise 6 months before release.  And let us not forget the horribly pathetic Javascript <a target="_blank" class="zem_slink" title="Layout engine" rel="wikipedia" href="http://en.wikipedia.org/wiki/Layout_engine">rendering engine</a>, <a target="_blank" class="zem_slink" title="JScript" rel="homepage" href="http://msdn.microsoft.com/en-us/library/hbxc2t98%28VS.85%29.aspx">JScript</a>, that the rest of us just ignore because it can&#8217;t be trusted to behave reliably.</p>
<p>So, like even on this website, we find ourselves writing &#8220;valid&#8221; code, and at the same time having to redefine valid to mean &#8220;Code that works in all the browsers&#8221;, not &#8220;Code that the W3C says is valid even though it looks like crap in IE6&#8243;.  Just to maintain a semblance of order and sanity, we use the handy IE CSS hacks where IE on <a target="_blank" class="zem_slink" title="Windows" rel="homepage" href="http://www.microsoft.com/WINDOWS">Windows</a> will actually arbitrarly execute code depending on the version of the IE browser being used.  Does that sound like an admission of guilt on the part of MS to anyone else?  OK Bill, repeat after me, &#8220;I know my browser sucks, so, instead of fixing it which would severely hamper my marketing and legal budgets, I will just allow hacks in order to ensure you nerdy web guys can still make pretty pages&#8221;.  There, was that so hard!?</p>
<p>So, someone feel free to run the validate against any of my websites.  Don&#8217;t bother sending me the results because I don&#8217;t care.  The sites work, the code looks good, documented, and is maintainable, so, what exactly was the complaint?</p>
<h5>*valid code is extremely subjective, but let&#8217;s assume here I mean W3C &#8220;valid&#8221; code.</h5>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://blogs.msdn.com/ie/archive/2009/02/19/the-css-corner-using-filters-in-ie8.aspx">The CSS Corner: Using Filters In IE8</a> (blogs.msdn.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.inquisitr.com/17897/mozilla-should-be-thanking-microsoft-for-bundling-ie-not-kissing-eus-butt/">Mozilla should be thanking Microsoft for bundling IE not kissing EU&#8217;s butt</a> (inquisitr.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/article/09/01/16/browser-wars-deemed-hot-again_1.html&amp;a=2664880&amp;rid=688f04e7-7910-4d78-8153-78194999c6b9&amp;e=62bf56fb0808fa686789d7d6995fdf45">Browser wars deemed hot again</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.ghacks.net/2009/02/23/how-to-zoom-in-firefox/">How To Zoom In Firefox</a> (ghacks.net)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/article/09/01/23/Microsoft_to_deliver_first_IE8_release_candidate_Monday_1.html&amp;a=2800890&amp;rid=688f04e7-7910-4d78-8153-78194999c6b9&amp;e=32f3ce5da320127c5a388473cabdd420">Microsoft to deliver first IE8 release candidate Monday</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://r.zemanta.com/?u=http%3A//www.infoworld.com/article/08/12/19/Google_issues_first_postbeta_Chrome_update_1.html&amp;a=2330376&amp;rid=688f04e7-7910-4d78-8153-78194999c6b9&amp;e=0d13e5560c2070cb64992b4e6fce5c55">Google issues first post-beta Chrome update</a> (infoworld.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://thenextweb.com/2009/01/27/eu-force-microsoft-include-firefox-future-versions-windows/">The EU Could Force Microsoft to Include Firefox in Future of Versions of Windows</a> (thenextweb.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/688f04e7-7910-4d78-8153-78194999c6b9/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=688f04e7-7910-4d78-8153-78194999c6b9" alt="Reblog this post [with Zemanta]" /></a></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F11%2Fhtml-validation-is-still-pointless&amp;title=HTML%20Validation%20is%20%28still%29%20pointless%21" id="wpa2a_2"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/11/html-validation-is-still-pointless/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Why Drupal Views make so little sense</title>
		<link>http://www.thisrand.com/2010/10/why-drupal-views-make-so-little-sense</link>
		<comments>http://www.thisrand.com/2010/10/why-drupal-views-make-so-little-sense#comments</comments>
		<pubDate>Thu, 14 Oct 2010 19:10:15 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=661</guid>
		<description><![CDATA[I recently had a very short contract gig working for a company that creates websites using Drupal.  While that doesn't sound very interesting or even hard, to make it more so of both, these guys used Views for every]]></description>
			<content:encoded><![CDATA[<p>I recently had a very short contract gig working for a company that creates websites using <a target="_blank" class="zem_slink" title="Drupal" rel="homepage" href="http://drupal.org">Drupal</a>.  While that doesn&#8217;t sound very interesting or even hard, to make it more so of both, these guys used Views for every</p>
<div class="zemanta-img zemanta-action-dragged" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 212px;">
<dt class="wp-caption-dt"><a target="_blank" href="http://commons.wikipedia.org/wiki/Image:Druplicon.vector.svg"><img title="Drupal" src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Druplicon.vector.svg/202px-Druplicon.vector.svg.png" alt="Drupal" width="202" height="231" /></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a target="_blank" href="http://commons.wikipedia.org/wiki/Image:Druplicon.vector.svg">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>thing.  Which I just don&#8217;t get.</p>
<p>If you are a programming, why would you use views?  It is adding a layer of abstraction between the logic and database in an interpreted language with a framework that is already bloated beyond all recognition.  I know when I write plugins for <a target="_blank" class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org">WordPress</a>, I want the plugin to be quick, precise, and add the least amount of overhead possible.  Views just seem to be a way to do all the opposites of those, just for the hell of it.</p>
<p>If you are not very technically inclined, I understand.  Using views is a lot like using <a target="_blank" class="zem_slink" title="Microsoft Access" rel="homepage" href="http://office.microsoft.com/access">MS Access</a>.  You can create fairly complex queries yourself, without having to get someone that actually understands it involved.  And that is the trade off.  You can do it yourself, and eat the extra overhead, or pay/hire/bribe/cajole someone else into doing it for you, specialized, and thus, in theory at least, more efficiently.</p>
<p>These folks claimed to be programmers though, so I just don&#8217;t get it.  Why are you depending on someone else&#8217;s plugin, that extends functionality that is inefficient and clumsy, can&#8217;t do everything, and still requires custom code to be written or even more plugins to be added.  Where exactly does that circular line stop?</p>
<p>The Drupal &#8220;framework&#8221; and I use that term loosely since it is really a CMS that can just be extended, has enough problems and bloat in it, why exactly are views worth adding more?  Again, assuming you know SQL and PHP on even a basic level.</p>
<p>It just doesnt make any sense.  Query writers and views are one thing if you are working directly with the database, (e.g. <a target="_blank" class="zem_slink" title="PhpMyAdmin" rel="homepage" href="http://www.phpmyadmin.net">phpMyAdmin</a> or <a target="_blank" class="zem_slink" title="TOAD (software)" rel="homepage" href="http://www.quest.com/toad">TOAD</a>), but adding it as a layer to a &#8220;custom&#8221; application that you will be supporting when you claim to be capable of actual programming!!??  Please explain that one to me.</p>
<p>To be fair, I dont use Drupal much, I like WP much better.  The OO approach is much more appealing than the very <a target="_blank" class="zem_slink" title="Perl" rel="homepage" href="http://www.perl.org/">Perl</a>-esque (read: old) way of doing things Drupal does with its modules. But I still don&#8217;t get what the big deal is about Views.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://wpthoughts.com/2009/01/before-customizing-wordpress/">Before You Customize Any Part of Your WordPress</a> (wpthoughts.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://ostatic.com/blog/choosing-an-open-source-cms-planning-playing-and-page-views">Choosing an Open Source CMS &#8212; Planning, Playing, and Page Views</a> (ostatic.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.trellon.com/content/blog/7-suggestions-for-new-drupal-users-in-higher-education">7 Suggestions for New Drupal Users in Higher Education</a> (trellon.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=45e2e995-6a2f-4a87-9395-4acbe9e81256" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/10/why-drupal-views-make-so-little-sense/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Programming Standards are NOT pointless</title>
		<link>http://www.thisrand.com/2010/09/programming-standards-are-not-pointless</link>
		<comments>http://www.thisrand.com/2010/09/programming-standards-are-not-pointless#comments</comments>
		<pubDate>Sun, 19 Sep 2010 22:27:49 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[thoughts]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=558</guid>
		<description><![CDATA[It seems some people took my other article a bit too seriously.  While I was very serious and feel strongly about my convictions when it comes to HTML &#8220;validation&#8221;, the...]]></description>
			<content:encoded><![CDATA[<p>It seems some people took my <a target="_blank" href="http://www.thisrand.com/2008/12/html-validation-is-still-pointless">other article</a> a bit too seriously.  While I was very serious and feel strongly about my convictions when it comes to <a class="zem_slink" title="HTML" rel="wikipedia" href="http://en.wikipedia.org/wiki/HTML">HTML</a> &#8220;validation&#8221;, the same cannot be said of <a target="_blank" class="zem_slink" title="Computer programming" rel="wikipedia" href="http://en.wikipedia.org/wiki/Computer_programming">programming</a> standards.</p>
<p>For those of you that have never programming professionally, this stuff may be very new to you.  However, trust me, it is extremely important.  Programming standards are not stupid, are not corners to be cut, and must be strict, otherwise they ARE pointless.</p>
<p>There are standards when it comes to documenting your code, and I wont get into them.  But if you are interested there are programs out there which more or less set the standard if you want to use them.  <a target="_blank" href="http://java.sun.com/j2se/javadoc/" target="_blank">JavaDoc</a>, <a target="_blank" href="http://www.phpdoc.org" target="_blank">PHPDoc</a>, and for those <a target="_blank" href="http://ndoc.sourceforge.net/" target="_blank">MS folks</a>&#8230;.. .  Go check out their websites for good advice on how to format your comments in your code.</p>
<p>Now, for actually coding, I have my own set of standards, developed over the years, to make the code both readable, but also hopefully logical.  Most people I run into think my code is pretty readable, some languages more than others.  Let&#8217;s face it, <a target="_blank" class="zem_slink" title="Perl" rel="homepage" href="http://www.perl.org/">Perl</a> code will never, ever, be as readable or &#8220;pretty&#8221; as <a target="_blank" class="zem_slink" title="Python (programming language)" rel="homepage" href="http://www.python.org/">Python</a>.  It just isn&#8217;t going to happen.  Sorry you old <a target="_blank" class="zem_slink" title="Unix" rel="wikipedia" href="http://en.wikipedia.org/wiki/Unix">UNIX</a> guys, but <a target="_blank" href="http://blog.dedrop.org/2008/07/perl-handy-but-ugly.html" target="_blank">Perl just isn&#8217;t very pretty</a>.  The <a target="_blank" class="zem_slink" title="Oo (digraph)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Oo_%28digraph%29">OO</a> languages are much easier on the eyes.</p>
<p>So, other than for documentation reasons, <a target="_blank" class="zem_slink" title="Readability" rel="wikipedia" href="http://en.wikipedia.org/wiki/Readability">readability</a> (which leads to maintainability), are there actually other reasons to program to a standard?  Only if you want to use your code in some sort of portfolio.  But those first two reasons are EXTREMELY important.  Everyone out there that has programmed professionally will know exactly what I mean.</p>
<p>Tabs or spaces?  Braces at the end of a line or on their own line?  Spaces between concatenation or operators?  Double quotes or single quotes?  Print to buffer or hold in variables?  Globals or object variables?  Arguments or variables?</p>
<p>There are a ton of questions, and I cant answer them all.  But think about why you do something, and if you cant come up with a good reason, probably time to stop doing it.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.codinghorror.com/blog/archives/001218.html">The Sad Tragedy of Micro-Optimization Theater</a> (codinghorror.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://api-madness.com/post/printf-22-printf-documentation/">PRINTF #22 Printf Documentation</a> (api-madness.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://agentultra.com/?p=178">My Road to Lisp</a> (agentultra.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://ejohn.org/blog/javascript-language-abstractions/">JavaScript Language Abstractions</a> (ejohn.org)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://punetech.com/why-you-need-to-learn-ruby-and-rails/">Why you need to learn Ruby and Rails</a> (punetech.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=c6f98bbb-e7e2-4366-ba0b-23528a2ca759" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F09%2Fprogramming-standards-are-not-pointless&amp;title=Programming%20Standards%20are%20NOT%20pointless" id="wpa2a_4"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/09/programming-standards-are-not-pointless/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix WP ECommerce</title>
		<link>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce</link>
		<comments>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce#comments</comments>
		<pubDate>Mon, 30 Aug 2010 22:57:50 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[writings]]></category>
		<category><![CDATA[cute]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reviews]]></category>
		<category><![CDATA[Royalty Interest]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=830</guid>
		<description><![CDATA[On front end pages with no ecommerce functionality, this plugin adds over 220+ database queries.  The more I messed with the code trying to make it behave, the more I...]]></description>
			<content:encoded><![CDATA[<p>On front end pages with no ecommerce functionality, this plugin adds over 220+ database queries.  The more I messed with the code trying to make it behave, the more I understood just how horribly written this plugin is.</p>
<p>Now, as someone that has been doing development long enough to know, there are times that code just gets away from the development team and becomes a mess unto itself.  It happens, especially in the OSS world where code reviews are few if ever.  But, as I read the forums for this thing, the developers are just fooling themselves thinking the code is in good shape.</p>
<p>Here are a few basic suggestions:<br />
1) Check to see if the page needs to execute the plugin.  If it doesnt, dont do it.  There is no reason to increase the number of queries by an order of magantuide when I am on a page that has no WP Ecommerce functionality.<br />
2) Clean up the queries.  For example:<br />
SELECT `id` FROM `wp_product_list` WHERE `active` IN(&#8217;1&#8242;)<br />
should be<br />
SELECT `id` FROM `wp_product_list` WHERE `active` = 1<br />
It is more effiecent.</p>
<p>3) Index the tables!  The query above doesnt use an index.  That is right folks, the field &#8220;active&#8221; in product_list is not indexed.  This is easy and simple.</p>
<p>4) Use arrays or some other data structure for complex data.  Dont use the same basic query over and over again.  Example:</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F08%2Fhow-to-fix-wp-ecommerce&amp;title=How%20to%20fix%20WP%20ECommerce" id="wpa2a_6"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/08/how-to-fix-wp-ecommerce/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Well Played Windows 7, Well Played</title>
		<link>http://www.thisrand.com/2010/02/well-played-windows-7-well-played</link>
		<comments>http://www.thisrand.com/2010/02/well-played-windows-7-well-played#comments</comments>
		<pubDate>Sun, 21 Feb 2010 03:14:29 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[geekdom]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.thisrand.com/?p=929</guid>
		<description><![CDATA[I had been having some problems with my computer lately, I have no idea what caused it, but I was running XP Pro for about 5 years without a single...]]></description>
			<content:encoded><![CDATA[<p>I had been having some problems with my computer lately, I have no idea what caused it, but I was running <a target="_blank" class="zem_slink" title="Windows XP" rel="homepage" href="http://www.microsoft.com/windows/windows-xp/default.aspx">XP Pro</a> for about 5 years without a single re-install, which must be a record of some type.  But the screen would get a bunch of lines on it after any given amount of time, forcing a reboot.  Totally impossible to get anything done.</p>
<p>Well, I thought &#8220;<a target="_blank" class="zem_slink" title="Video card" rel="wikipedia" href="http://en.wikipedia.org/wiki/Video_card">Video Card</a>&#8220;, but I was wrong.  I went out and bought a new <a target="_blank" href="http://www.bit-tech.net/hardware/graphics/2009/10/20/asus-ati-radeon-hd-5870-volt-tweak-review/1" target="_blank">ATI 5870 by Asus</a>.  Turned out replacing my 4870 with that beast didnt do a thing for me.  So, back the $400+ card went.</p>
<p>Well, it must be software then, the problem now being I can either re-install XP, or try Windows 7 since that is where I will have to update to within 6 months anyways.  Out I go to get Windows 7 Pro, and more than $2,000 later, it is finally installed and working.</p>
<p>Upon installing it, I had network driver issues from hell.  Who knew a <a target="_blank" href="http://www.linksysbycisco.com/US/en/products/WMP54G" target="_blank">Linksys wireless G PCI card</a> wouldnt work with <a target="_blank" class="zem_slink" title="Windows 7" rel="homepage" href="http://www.microsoft.com/windows/windows-7/default.aspx">Win7</a>?  What kind of moronic OS development team made it where one of the most prolific network card manufacturers products wouldn&#8217;t work?  Answer:  <a target="_blank" class="zem_slink" title="Microsoft" rel="homepage" href="http://www.microsoft.com">Microsoft</a>!  But since I used the word &#8220;moronic&#8221; we all knew that was coming, right?  Ok, read a lot online about the various woes of people with that card, and I upgraded to a <a target="_blank" class="zem_slink" title="D-Link" rel="homepage" href="http://www.dlink.com.tw">D-Link</a> N card, that seemed better.  Only, it wasnt.  But I knew, from what I read online the network card was correct.  Could it possibly be my <a target="_blank" href="http://www.linksysbycisco.com/US/en/products/WRT54G2" target="_blank">Linksys router</a>?  I mean, really, a router is a router right?  Nope!  I replaced the router with a <a target="_blank" href="http://www.netgear.com/Products/RoutersandGateways/WirelessNRoutersandGateways/WNR2000.aspx" target="_blank">Netgear one</a> and BAM, it works great on the network now.  Spiffy!  Time to start installing software finally.</p>
<p>That&#8217;s right, installing software, because for some dumb-ass reason you can&#8217;t upgrade from XP to Win7, they expect you to have had 2&#215;4 to the head and actually used <a target="_blank" title="Vista is Retarded" href="http://kazza.id.au/2007/10/vista-is-retarded.html" target="_blank">Vista</a>.</p>
<p>Start installing software, and the first reboot, the computer doesn&#8217;t come back up.  Not only that, the primary hard drive isnt even seen by the BIOS anymore.  WTF!!!???  How did Win7 just kill a <a target="_blank" href="http://www.seagate.com" target="_blank">Seagate</a> HD?  I have no idea, but it did.  Off I go to purchase new hard drives.  This time, I got two, so I can RAID 1 them, &#8220;ah ha!&#8221; I will show you Microsoft, I will fix your stupidity with hardware. <a target="_blank" class="zem_slink" title="RAID" rel="wikipedia" href="http://en.wikipedia.org/wiki/RAID">RAID array</a> created, Windows 7 installed (again), and now I can start installing software.</p>
<p>But wait, Adobe CS2 isnt supported by Windows 7, so, $1,699 later, I am the extremely annoyed owner of<a target="_blank" href="http://www.adobe.com/products/creativesuite/web/?promoid=DNOWK" target="_blank"> CS4 Web Premium</a>, a supported version of the ridiclously priced yet required by everyone software suite.</p>
<p>I get everything re-installed, except for my document management software,<a target="_blank" href="http://personable.com/sourcelink/us/std/source_home11.asp" target="_blank"> Source Link</a>.  It seems those retards over there won&#8217;t reissue a CD key without a $60 fee, &#8220;because that is how we control the licenses&#8221;.  &#8220;Why do I use your software again&#8221;, I wonder as I am re-downloading games from <a target="_blank" class="zem_slink" title="Electronic Arts" rel="homepage" href="http://www.ea.com">EA</a>, <a target="_blank" href="http://quickbooks.intuit.com/" target="_blank">Quickbooks</a>,  <a target="_blank" href="http://www.nusphere.com/" target="_blank">NuSphere</a>, and a ton of other software that doesnt require me to pay them to reinstall their software on the same computer. Clearly everyone else has figured it out, even Microsoft and Adobe!  And get this, I get to upgrade as well to SourceLink 2010 in order to have it supported as well.</p>
<p>So, what is the final tab you ask&#8230;.</p>
<p>$200 for Windows 7<br />
$350 for 2 Hard Drives<br />
$70 for Network Card<br />
$70 for Router<br />
$1700 for <a target="_blank" class="zem_slink" title="Adobe Creative Suite" rel="homepage" href="http://www.adobe.com/products/creativesuite/">Adobe CS4</a><br />
$50 for new <a target="_blank" class="zem_slink" title="McAfee" rel="homepage" href="http://www.mcafee.com/">McAfee</a><br />
$169 for SourceLink<br />
Total: $2,609 plus tax for the privelege, nay honor, nay ass raping that is Windows 7.  I bow to Microsoft&#8217;s superior skills at making their products part of everyday life, because both I am in awe I spent that much, and bowing is about all I can do since I won&#8217;t be sitting for at least  week, or until the bleeding stops.</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.lockergnome.com/theoracle/2010/02/18/what-is-adobe-doing/">What IS Adobe Doing?</a> (lockergnome.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://blog.taragana.com/index.php/archive/best-windows-7-tweaks-help/">Best Windows 7 Tweaks &amp; Help</a> (taragana.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.makeuseof.com/tag/3-windows-7-upgrade-issues-avoid/">Three Windows 7 Upgrade Issues &amp; How To Avoid Them</a> (makeuseof.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://crenk.com/how-to-set-up-a-linksys-wireless-router/">How to Set up a Linksys Wireless Router</a> (crenk.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://arstechnica.com/microsoft/news/2010/02/windows-7-eclipses-vista-on-steam-64-bit-dominating-32-bit.ars?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss">Windows 7 eclipses Vista on Steam, 64-bit dominating 32-bit</a> (arstechnica.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.lockergnome.com/theoracle/2010/01/26/windows-7-the-dirty-little-graphics-secret/">Windows 7 &amp; The Dirty Little Graphics Secret</a> (lockergnome.com)</li>
<li class="zemanta-article-ul-li"><a target="_blank" href="http://www.makeuseof.com/tag/windows-7-requirements-installation-tips/">What You Need To Know About Windows 7: Requirements &amp; Installation Tips</a> (makeuseof.com)</li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a target="_blank" class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=4d0c8b3c-2306-46e0-8586-38fc1a12e543" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2010%2F02%2Fwell-played-windows-7-well-played&amp;title=Well%20Played%20Windows%207%2C%20Well%20Played" id="wpa2a_8"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2010/02/well-played-windows-7-well-played/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>You think I have free time!??!?!</title>
		<link>http://www.thisrand.com/2006/07/you-think-i-have-free-time</link>
		<comments>http://www.thisrand.com/2006/07/you-think-i-have-free-time#comments</comments>
		<pubDate>Thu, 01 Jan 1970 01:33:26 +0000</pubDate>
		<dc:creator>Xnuiem</dc:creator>
				<category><![CDATA[links]]></category>
		<category><![CDATA[geekdom]]></category>

		<guid isPermaLink="false">http://99</guid>
		<description><![CDATA[I think sometimes I have too much free time, but it is nothing compared to this guy. This rates up there with the homemade Battlemech, but still pretty cool. Backyard...]]></description>
			<content:encoded><![CDATA[<p>I think sometimes I have too much free time, but it is nothing compared to this guy.  This rates up there with the homemade Battlemech, but still pretty cool.<br />
<a target="_blank" href="http://www.monorails.org/tMspages/Niles.html" target="_blank">Backyard Monorail</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.thisrand.com%2F2006%2F07%2Fyou-think-i-have-free-time&amp;title=You%20think%20I%20have%20free%20time%21%3F%3F%21%3F%21" id="wpa2a_10"><img src="http://www.thisrand.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.thisrand.com/2006/07/you-think-i-have-free-time/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

