<?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>Chris Klepeis&#039; Rants</title>
	<atom:link href="http://www.klepeis.com/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.klepeis.com/wp</link>
	<description>I don&#039;t know what the internet is, but I want to be on it!</description>
	<lastBuildDate>Wed, 07 Oct 2009 02:36:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ha, you drive a square</title>
		<link>http://www.klepeis.com/wp/2009/10/ha-you-drive-a-square/</link>
		<comments>http://www.klepeis.com/wp/2009/10/ha-you-drive-a-square/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 23:24:25 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ugly cars]]></category>

		<guid isPermaLink="false">http://www.klepeis.com/wp/?p=52</guid>
		<description><![CDATA[Driving home from work today, the strangest thing happened. I saw a square driving past me. Funny thing is, this isn't the first time I've seen such an object devoid of shape and style drive past me on the road.



Exhibit A:
Imagine for a second that you're a hotshot designer pitching your new idea to the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-68" title="2005 TRD-Equipped Scion xB" src="http://www.klepeis.com/wp/wp-content/uploads/2009/10/scion-xb-500-150x150.jpg" alt="2005 TRD-Equipped Scion xB" width="150" height="150" />Driving home from work today, the strangest thing happened. I saw a square driving past me. Funny thing is, this isn't the first time I've seen such an object devoid of shape and style drive past me on the road.</p>
<p><span id="more-52"></span></p>
<pre>
</pre>
<p>Exhibit A:</p>
<div id="attachment_55" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-55" title="2009-nissan-denki-cube-concept-1" src="http://www.klepeis.com/wp/wp-content/uploads/2009/10/2009-nissan-denki-cube-concept-1-300x243.jpg" alt="Ugly" width="300" height="243" /><p class="wp-caption-text">Ugly</p></div>
<p>Imagine for a second that you're a hotshot designer pitching your new idea to the boss.</p>
<p><strong>You:</strong> I have a great new idea that will bring us big numbers!<br />
<strong>Boss:</strong> Great! Lets hear about it!<br />
<strong>You:</strong> Instead of cutting corners, lets embrace them! 90 degree angles are really getting popular, just take a look at the Honda Element, and Scion xB.<br />
<strong>Boss:</strong> I was under the impression people wanted sleek designs which emitted class, style, and sophistication?<br />
<strong>You:</strong> You're wrong.<br />
<strong>Boss:</strong> You're clearly a cunning linguist. I'm sold.</p>
<p>I have to admit, there might have been less discussion about these vehicle designs than in my hypothetical (albeit, totally believable) pitch above.  What I kept thinking to myself is how do they make money, who buys these vehicles? Then, in an instant of clarity it all made sense...</p>
<div id="attachment_57" class="wp-caption aligncenter" style="width: 294px"><img class="size-medium wp-image-57" title="gumby_blockhead" src="http://www.klepeis.com/wp/wp-content/uploads/2009/10/gumby_blockhead-284x300.jpg" alt="Block Head" width="284" height="300" /><p class="wp-caption-text">Block Head</p></div>
<p>Yup, block head, of Gumby fame.</p>
<p>These masters of business who pushed forth the Nissan Cube into a anxious society are surely pondering what more they can do for the 2011 model year. More square, more "edgy"... something that would appeal to their existing audience, while breaking through into another segment. Me, always keeping my mind open, and having an entrepreneurial spirit decided to take a few minutes to design such a concept vehicle. Nissan, Honda, Scion... your welcome.</p>
<div id="attachment_60" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-60" title="awesomeCar" src="http://www.klepeis.com/wp/wp-content/uploads/2009/10/awesomeCar-300x293.png" alt="The Picasso Xtreme SS" width="300" height="293" /><p class="wp-caption-text">The Picasso Xtreme SS</p></div>
<p>Lets examine in excruciating detail how awesome this vehicle is. First off, the name is the "Picasso Xtreme SS". It will appeal to artsy folk, MMA fighters, and soccer moms everywhere. The slight angle in the front of this vehicle says "yeah, I can party, I'm just one of the guys". You think Wendy's doesn't cut corners, you haven't seen nothin' yet! Covering half of the rear wheels appeals to the baby boomer's who miss the 70's era vehicles. Tinted windows? You bet!  Need to haul some kids to Chucky Cheese... check out the spacious third row seating! And what vehicle has purple tinted windows? I won't even go into aerodynamics, I think the picture speaks for itself.</p>
<p>Feel free to contact me at any time. My design is, of course, patented, copyrighted, and trademarked.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klepeis.com/wp/2009/10/ha-you-drive-a-square/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MS SQL Tips</title>
		<link>http://www.klepeis.com/wp/2009/10/ms-sql-tips/</link>
		<comments>http://www.klepeis.com/wp/2009/10/ms-sql-tips/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 16:51:33 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[ms sql server]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.klepeis.com/wp/?p=26</guid>
		<description><![CDATA[When working on a project, the first, and arguably most important thing to consider is the database. Similar to how a building cannot be built without a solid infrastructure, a good program cannot survive without a solid, well designed database structure. This post will hopefully provide some pointers to fellow developers.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-35" title="Microsoft-SQL-Server" src="http://www.klepeis.com/wp/wp-content/uploads/2009/10/Microsoft-SQL-Server-150x150.jpg" alt="Microsoft-SQL-Server" width="105" height="105" />When working on a project, the first, and arguably most important thing to consider is the database. Similar to how a building cannot be built without a solid infrastructure, a good program cannot survive without a solid, well designed database structure. This post will hopefully provide some pointers to fellow developers - SQL and MS SQL do's and don'ts.</p>
<p><span id="more-26"></span></p>
<p>Prior to jumping into a project, a developer should always lay out the database design plans first. A poorly thought out database design can and will cause headaches in the future. Any developer having to work with a legacy system that has a poorly designed database will surely attest to this.</p>
<p><strong>1. Normalize your design</strong></p>
<p>A database design should be, for the most part, normalized. There are several levels of <a href="http://en.wikipedia.org/wiki/Database_normalization#Background_to_normalization:_definitions" target="_blank">normalization</a>. Without going into the details of what each level surmises, normalization essentially prevents data duplication (more details in a future post). Normalizing your database will reap its benefits when your database grows. Do not cut corners when building your table structure. Trust me!</p>
<p><strong>2. Naming Convention</strong></p>
<p>Oftentimes when multiple developers are working on the same project, they won't follow the same naming convention. Although SQL is not case sensitive, all developers in a team should be following the same naming convention to keep everything consistent and much more pleasurable to work with. With table names, I personally prefer to capitalize the first letter of every word. Non-alphanumeric characters should be avoided.</p>
<p><strong>3. Use Schemas</strong></p>
<p>As of <a href="http://msdn.microsoft.com/en-us/library/ms190387.aspx" target="_blank">MS SQL Server 2005</a>, users and schemas are separated. When a table is referenced as dbo.Table, "dbo" is the schema. When developing in .Net this is essentially what namespaces are used for. This allows us to group tables into logical structure, set permissions based on these schema's, and generally organize our database objects easier.</p>
<p><strong>4. Never use *</strong></p>
<p>ColdFusion developers will be all too familiar with this rule. When using * in ColdFusion it will sometimes throw errors because field names are cached, and if a field in the table changes, ColdFusion will still try to access it based off of sed cache, throwing an error. It's good practice to take the time to write the field names out. If you change a field name, or add a field to a table it may cause your program to shat itself (if a table your joining against has that same field name).</p>
<p><strong>5. Always reference objects with the schema</strong></p>
<p>In your queries, you should always have the schema plugged in next to the object name. If you don't, then MS SQL Server does an unnecessary check in the database to see if the object is a built in object, as opposed to something you created.</p>
<pre class="brush: sql;">
SELECT field1 FROM dbo.MyTable
</pre>
<p>opposed to</p>
<pre class="brush: sql;">
SELECT field1 FROM MyTable
</pre>
<p><strong>6. Use stored procedures where applicable</strong></p>
<p>Creating stored procedure caches the query and 9 times out of 10 makes the query run faster in subsequent executions. Another major benefit of using stored procedures is the ability to fix a query without having to recompile code. On the flip-side, don't use stored procedures for <em>EVERYTHING</em>, its easy to get carried away.</p>
<p><strong>7. Consider synonyms when migrating an application</strong></p>
<p>If your given the unenviable task of updating an existing program, consider using synonyms. Synonyms are exactly what they imply, objects that reference other objects. If you have a table named dbo.THISisACrappyNamedTable you can create a synonym for this table, give it a better name, and eventually rename the original table once all references to it are updated.</p>
<p><strong>8. Correctly set the clustered index</strong></p>
<p>There are two types of indexes in MS SQL Server, clustered and unclustered. Clustered indexes are faster, and by default they are created on your primary key fields. If your primary key field isn't what gets hits the most then consider changing it to another field. Use the execution plan in a development environment to test it out and see if you get a performance boost.</p>
<p><strong>9. Join tables correctly</strong></p>
<p>I frequently see developers writing deprecated joins.</p>
<pre class="brush: sql;">
SELECT t.field, t2.field
FROM dbo.Table1 t, dbo.Table2 t2
WHERE t.field2 = t2.field2
</pre>
<p>Joining tables like this is deprecated and should be avoided. Instead, use the proper syntax:</p>
<pre class="brush: sql;">
SELECT t.field, t2.field
FROM dbo.Table1 t INNER JOIN dbo.Table2 t2 ON t.field2 = t2.field2
</pre>
<p>Well, that completes my first programming blog post. I was trying to hit on a bunch of topics, and will probably go more in depth in future posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klepeis.com/wp/2009/10/ms-sql-tips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;m Finally on the Internet!</title>
		<link>http://www.klepeis.com/wp/2009/10/im-finally-on-the-internet/</link>
		<comments>http://www.klepeis.com/wp/2009/10/im-finally-on-the-internet/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 07:15:07 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.klepeis.com/wp/?p=3</guid>
		<description><![CDATA[I finally gave in and installed WordPress, despite having a tendency to  build my own CMS'. I have to admit, WordPress is pretty darn cool. There was a time when I would cringe when I heard someone use the term "blog". In my mind it was a term invented by non-tech savvy users who flooded the internet [...]]]></description>
			<content:encoded><![CDATA[<p>I finally gave in and installed WordPress, despite having a tendency to  build my own CMS'. I have to admit, WordPress is pretty darn cool. There was a time when I would cringe when I heard someone use the term "blog". In my mind it was a term invented by non-tech savvy users who flooded the internet with websites that had no personalities of their own. I suppose I've changed my perspective since then. My goal with my WordPress blog is to quickly and easily share my idea's with others as well as note them down for myself - not so much concerned with having a unique design to display these ideas.</p>
<p>What to expect from my blog? Mostly programming related topics, from Flex Builder 3 to .Net to SQL, but for now, I'm going to pass out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.klepeis.com/wp/2009/10/im-finally-on-the-internet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
