<?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; plugin</title>
	<atom:link href="http://www.thisrand.com/tag/plugin/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>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>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_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/08/how-to-fix-wp-ecommerce/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

