<?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>KILLERSITES.COM &#187; Web Design</title>
	<atom:link href="http://www.killersites.com/blog/tag/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.killersites.com/blog</link>
	<description>Real world talk about web design, programming and the business of web design.</description>
	<lastBuildDate>Fri, 06 Nov 2009 16:49:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Page Layout Strategies</title>
		<link>http://www.killersites.com/blog/2008/css-page-layout-strategies/</link>
		<comments>http://www.killersites.com/blog/2008/css-page-layout-strategies/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 03:57:52 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Professional Web Design]]></category>
		<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/css-page-layout-strategies/</guid>
		<description><![CDATA[If you&#8217;ve been struggling with CSS based page layouts (as apposed to using tables) and you&#8217;ve been smacking your head against the wall to get things to work &#8230; believe me, you&#8217;re not the only one!
No, you&#8217;re not stupid &#8230; CSS for page layout is. 
What?! CSS is flawed?
Indeed. CSS for page layout sucks hard [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been struggling with CSS based page layouts (as apposed to using tables) and you&#8217;ve been smacking your head against the wall to get things to work &#8230; believe me, you&#8217;re not the only one!</p>
<p>No, you&#8217;re not stupid &#8230; CSS for page layout is. </p>
<p><strong>What?! CSS is flawed?</strong></p>
<p>Indeed. CSS for page layout sucks hard because the logic behind CSS page layout is weak at best, and perhaps, even flawed. I can say this with experience in other languages like Java and even VB. Not that I am saying CSS is a programming language. </p>
<p>Anyway &#8230;</p>
<p>For web designers used to the craziness of CSS layouts, they would be flabbergasted at how easy creating layouts/views/screens are in VB or even Java when compared to CSS. </p>
<p><strong>What&#8217;s the main problem with CSS?</strong></p>
<p><span id="more-326"></span></p>
<p>The main problem with CSS (and HTML) is that it was not conceived as a user interface technology. Rather, it was considered and engineered as a document/page technology. </p>
<p>Think about it, we talk about <strong>web pages</strong> and not <strong>web user interfaces</strong>. </p>
<p>Despite the original intention of the Web being a bunch of documents, today the Web is largely a bunch of user interfaces. Yes, most web sites these days are much more like a user interface that we see in software than they are simple &#8216;pages&#8217;. So therein lies the core of the problem: </p>
<p><em>CSS was designed to style pages and not to build user interfaces. </em></p>
<p>-</p>
<p><strong>So what has happened?</strong></p>
<p>Well, because web designers realized the advantages of CSS for laying out pages, they figured out how to bend, stretch and sometimes break the very limited CSS technology to create modern web pages. </p>
<p>The problem is that you have a bunch of methods and practices that don&#8217;t really make much sense &#8230; logically speaking. That&#8217;s why when you are new to CSS, it is hard as heck to create many common layouts as compared to doing it in tables.</p>
<p>Think about it, a center aligned liquid layout with three columns is a snap to do with HTML tables. With CSS though, it took the community a long time to figure out how to get this to work. </p>
<p>&#8230; It shouldn&#8217;t take the <em>efforts of a community</em> to get common layouts to work. That is a sure sign of a broken technology.</p>
<p><strong><br />
Even the CSS nerds know it.</strong></p>
<p>Like most human beings, nerds are loath to admit when they&#8217;ve screwed up. So it&#8217;s pretty telling when you see the invention of CSS tables. Yes, CSS tables are basically tables created with CSS rather than with HTML. </p>
<p>CSS nerds finally realized that for user interfaces, you need a grid structure sometimes &#8230; tables are essentially grids. Problem is that CSS tables are not YET widely supported in the major browsers.</p>
<p><strong><br />
So why not use HTML tables if they are so easy?</strong></p>
<p>Because you would be missing out on the two big reasons for using CSS for page layout:</p>
<ol>
<li>CSS based pages are much easier to update and maintain.</li>
<li>CSS based pages are much <strong>more likely</strong> to work any many devices like iPhones, PDA&#8217;s, your printer etc&#8230;</li>
</ol>
<p>I want to comment on the touted advantages of CSS. First, most devices today have powerful browsers that can read just about any type of web page (CSS or not) &#8230; so you have to question the 2nd argument. You also hear other arguments about why you should use CSS:</p>
<ul>
<li>Your pages will be lighter in KB&#8217;s.</li>
<li>Your pages will be forward compatible.</li>
</ul>
<p>&#8230; Both these arguments have proven to be what I said they were years ago: total crap. So forget them.</p>
<p>So if HTML tables should not be used and CSS is crappy for page layout, what is a nerd to do? As always, I try to come to you with real solutions. Check it out &#8230;</p>
<p><strong>The Big Two CSS strategies:</strong></p>
<ol>
<li>Use templates</li>
<li>Use IE conditional comments</li>
</ol>
<p>Comments:</p>
<p>Since nerds have already gone through the trouble of figuring out the nuances of CSS, you don&#8217;t need to reinvent the wheel! Use a template and just build out from there.</p>
<p>If any issues should pop up where Internet Explorer is not working handling/displaying the CSS like FireFox, then just use <a href="http://www.killersites.com/blog/2006/ie-conditional-comments-video/">IE Conditional Comments</a> to solve the problem. </p>
<p>Thanks for reading,</p>
<p>Stefan Mischook (a.k.a.: The web design heretic)</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/css-page-layout-strategies/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Web Designers are Not Icon Designers!</title>
		<link>http://www.killersites.com/blog/2008/web-designers-are-not-button-designers/</link>
		<comments>http://www.killersites.com/blog/2008/web-designers-are-not-button-designers/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 22:08:14 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/web-designers-are-not-button-designers/</guid>
		<description><![CDATA[I recently got a call from someone wanting to know what I thought about various image editing programs in terms of their abilities to make buttons:


&#8220;Stef, what program do you think I should use to create buttons for my websites? One buddy tells me he likes Corel Draw and another guy is big on Adobe [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got a call from someone wanting to know what I thought about various image editing programs in terms of their abilities to make buttons:</p>
<p><img src='http://www.killersites.com/blog/wp-content/uploads/2008/08/button-tower.gif' alt='shopping-cart-icons' style="float: right; margin: 10px;" /></p>
<blockquote><p>
&#8220;Stef, what program do you think I should use to create buttons for my websites? One buddy tells me he likes Corel Draw and another guy is big on Adobe Fireworks. What do you use?&#8221;</p></blockquote>
<p>My answer to this question is simple: </p>
<p><strong>Web designers should not be making buttons.</strong></p>
<p><span id="more-318"></span></p>
<p>Today a web designer&#8217;s job is much different from it was just say 5-6 years ago. Once upon a time, web designers were typically just graphic designers moving into web design because that&#8217;s where the money was. It still is by the way. Anyway &#8230; </p>
<p>These days web design as a profession and skill set has evolved into it&#8217;s own beast. Web designers have many skills that go way beyond ordinary design:</p>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>Usability</li>
<li>Site architecture and SEO</li>
<li>And yes, some design basics</li>
</ul>
<p>&#8230; and lots of other stuff to. </p>
<p>Did you notice that design, was at the bottom of the list? Yes, having good design chops is always a plus, but the fact of the matter is, is that a web designer is more like an architect that puts together the pieces, rather than being the carpenter that builds things. </p>
<p>Web designers (like architects) chooses the materials and puts them together properly &#8230;. but they don&#8217;t build everything from scratch.  </p>
<p><strong>How about the buttons?</strong></p>
<p>You can buy great looking buttons / icons for $10-$15 a set. Why on earth would you want to spend HOURS making buttons that will probably not look half as good anyway? The answer is: you wouldn&#8217;t want to and you shouldn&#8217;t.</p>
<p>PS: web designers don&#8217;t make buttons!</p>
<p>Thanks,</p>
<p>Stefan Mischook.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/web-designers-are-not-button-designers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>What is an organic website?</title>
		<link>http://www.killersites.com/blog/2008/what-is-an-organic-website/</link>
		<comments>http://www.killersites.com/blog/2008/what-is-an-organic-website/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 16:50:27 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Podcast | Videos]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/what-is-an-organic-website/</guid>
		<description><![CDATA[Hi,
I just released another episode for the &#8216;Ask a Web Nerd&#8217; show/podcast. This time around I explain what an organic website is, and how to create one.
Let me know what you think.
Thanks,
Stefan Mischook
www.killersites.com
]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I just released another episode for the &#8216;Ask a Web Nerd&#8217; show/podcast. This time around I explain what an <a href="http://www.killersites.com/magazine/2008/what-is-an-organic-website/">organic website</a> is, and how to create one.</p>
<p>Let me know what you think.</p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/what-is-an-organic-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do you need to go to web design school?</title>
		<link>http://www.killersites.com/blog/2008/web-design-school/</link>
		<comments>http://www.killersites.com/blog/2008/web-design-school/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 15:49:10 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Podcast | Videos]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/web-design-school/</guid>
		<description><![CDATA[This is the first of a new series of podcast that I am creating called: ‘Ask a web nerd.’
Not the greatest title, but I hope it tells something about this series; I will be answering common questions put to me by people everyday. Questions about anything regarding web design, web programming, getting into the web [...]]]></description>
			<content:encoded><![CDATA[<p>This is the first of a new series of podcast that I am creating called: ‘Ask a web nerd.’</p>
<p>Not the greatest title, but I hope it tells something about this series; I will be answering common questions put to me by people everyday. Questions about anything regarding web design, web programming, getting into the web design game etc …</p>
<p>In this podcast, I will answer a common question put to me every so often:</p>
<blockquote><p> Do you need to go to web design school, or college, to become a professional web designer? </p></blockquote>
<p>Check out the podcast in the killersites.com <a href="http://www.killersites.com/magazine/">web design magazine</a>: </p>
<p><a href="http://www.killersites.com/magazine/2008/do-you-need-web-design-school/">web design school?</a></p>
<p>If you have any comments or any new questions you would like answered, just post a comment here or on the magazine and I will do my best. </p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com<br />
www.killerphp.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/web-design-school/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Three Critical Aspects of a Web Site</title>
		<link>http://www.killersites.com/blog/2008/the-three-critical-aspects-of-a-web-site/</link>
		<comments>http://www.killersites.com/blog/2008/the-three-critical-aspects-of-a-web-site/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 18:40:09 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Professional Web Design]]></category>
		<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/the-three-critical-aspects-of-a-web-site/</guid>
		<description><![CDATA[Hi,
I just released a 10 minute video blog talking about the three critical aspects of a web site.
So what are the three critical aspects of a web site?

Content
Ease of use
Design aesthetics

I go over what each mean and I also give you a few hints and examples that you can use in your own web design [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I just released a 10 minute video blog talking about the <a href="http://www.killersites.com/magazine/2008/the-three-critical-aspects-of-a-website/">three critical aspects of a web site</a>.</p>
<p>So what are the three critical aspects of a web site?</p>
<ol>
<li>Content</li>
<li>Ease of use</li>
<li>Design aesthetics</li>
</ol>
<p>I go over what each mean and I also give you a few hints and examples that you can use in your own web design work.</p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com<br />
www.killerphp.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/the-three-critical-aspects-of-a-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are IE8 WebSlices?</title>
		<link>http://www.killersites.com/blog/2008/what-are-ie8-webslices/</link>
		<comments>http://www.killersites.com/blog/2008/what-are-ie8-webslices/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 05:39:38 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/what-are-ie8-webslices/</guid>
		<description><![CDATA[From the killersites.com magazine:
In a nutshell, webslices are an IE8 specific feature that allows the web designer to tag part of a webpage as a ‘webslice’. By tagging sections of a web page, users of IE8 can then subscribe to it, much in the same way that they can subscribe to an RSS feed.
Read the [...]]]></description>
			<content:encoded><![CDATA[<p>From the killersites.com magazine:</p>
<blockquote><p>In a nutshell, webslices are an IE8 specific feature that allows the web designer to tag part of a webpage as a ‘webslice’. By tagging sections of a web page, users of IE8 can then subscribe to it, much in the same way that they can subscribe to an RSS feed.</p></blockquote>
<p>Read the <a href="http://www.killersites.com/magazine/2008/internet-explorer-8-webslices/">full article about webslices</a>. </p>
<p>Thanks for reading,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com<br />
www.killerphp.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/what-are-ie8-webslices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nerds &#8211; you can&#8217;t know it all.</title>
		<link>http://www.killersites.com/blog/2008/you-cant-know-it-all/</link>
		<comments>http://www.killersites.com/blog/2008/you-cant-know-it-all/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 16:19:56 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[learning web design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[web design business]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/you-cant-know-it-all/</guid>
		<description><![CDATA[I&#8217;ve been a professional nerd for many years now, and over that time I&#8217;ve learned to use many different technologies including 8-9 programming languages, a few operating systems and a whole bunch of frameworks, database programs etc &#8230; 
&#8230; The sad truth
Recently, I was challenged with some tech problem, and to be honest about it, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a professional nerd for many years now, and over that time I&#8217;ve learned to use many different technologies including 8-9 programming languages, a few operating systems and a whole bunch of frameworks, database programs etc &#8230; </p>
<p><strong>&#8230; The sad truth</strong></p>
<p>Recently, I was challenged with some tech problem, and to be honest about it, I forgot the specific steps to solve it!!</p>
<p> <img src='http://www.killersites.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>This always bothers me &#8211; when you forget how to do something you once knew so well. </p>
<p>I am now resigned to the fact that I&#8217;ve probably forgotten more than I now remember. I guess there is only so much room in your brain ..?</p>
<p><strong>You can&#8217;t know it all</strong></p>
<p>This brings me to my larger point: as a professional nerd, it is not realistic to think you will learn everything that is out there. There is simply too much and you have to pick your battles. </p>
<p>That said, that doesn&#8217;t mean you should learn one or two things and then just rest on your laurels. No, you have to keep learning otherwise you will fall behind and you won&#8217;t stay competitive. </p>
<p><span id="more-296"></span></p>
<p><strong>Focus on your specialty</strong></p>
<p>It is wise to decide where you want to go in your nerd career, and then focus in that area. </p>
<p>For instance, if you want to be a web designer (I&#8217;m talking design centric stuff) you should learn all that you can about the front-end of web design:</p>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>Basic design principles</li>
<li>A touch of PHP &#8230; just a touch!</li>
<li>Javascript</li>
<li>Maybe some Flash</li>
</ul>
<p>You probably shouldn&#8217;t be so concerned about learning how to set up Apache or how to configure a Linux server. These skills may come in handy once in a while, but these really are the skills that system administrators should worry about.</p>
<p><strong>Play to your strengths</strong></p>
<p>Just because you like something, or are attracted to it, it doesn&#8217;t mean you will be any good at it! </p>
<p>&#8230; Although sometimes, what you like is often what you will be good at.</p>
<p>What works out for me, is to forget about the things I suck at and instead, concentrate on my talents. </p>
<p>I (for example) am at best a moderate designer. Sure, I can build a professional looking website, but it ain&#8217;t going to win any awards! Instead, I rely on the skills of the truly talented web designers (using web templates or simply hire them) and then concentrate on those things that I can do pretty well.</p>
<p>Thanks for reading,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/you-cant-know-it-all/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Here comes IE8</title>
		<link>http://www.killersites.com/blog/2008/here-comes-ie8/</link>
		<comments>http://www.killersites.com/blog/2008/here-comes-ie8/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 15:37:20 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Design News]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/here-comes-ie8/</guid>
		<description><![CDATA[
The web design magazine is slowly taking off.
&#8230; We have our first article from John Beatrice who has given us a sneak-peek at the new IE8:

Internet Explorer 8 is Microsoft’s response to the growing interest in interactive web services and rich online experiences. This is Microsoft’s second attempt to build a browser that follows standard [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.killersites.com/magazine/2008/here-comes-internet-explorer-8/"><img src='http://www.killersites.com/blog/wp-content/uploads/2008/06/ie8-beta-small.png' alt='ie8-beta' style=" margin-bottom: 10px;" /></a></p>
<p>The web design magazine is slowly taking off.</p>
<p>&#8230; We have our first article from John Beatrice who has given us a sneak-peek at the new IE8:</p>
<blockquote><p>
Internet Explorer 8 is Microsoft’s response to the growing interest in interactive web services and rich online experiences. This is Microsoft’s second attempt to build a browser that follows standard compliant HTML and CSS. So, will designers and developers embrace this new Internet Explorer?</p></blockquote>
<p>You can read more about the <a href="http://www.killersites.com/magazine/2008/here-comes-internet-explorer-8/">Internet Explorer 8 beta</a> in the magazine section of the website.</p>
<p>I hope you&#8217;ll find it interesting.</p>
<p>Stefan Mischook</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/here-comes-ie8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft Expression Web 2 is out.</title>
		<link>http://www.killersites.com/blog/2008/microsoft-expression-web-2-is-out/</link>
		<comments>http://www.killersites.com/blog/2008/microsoft-expression-web-2-is-out/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 21:23:16 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/microsoft-expression-web-2-is-out/</guid>
		<description><![CDATA[Microsoft recently released Expression Web 2, their new web design program.
Frontpage is old news:
For those of you who don’t know much about it, Expression Web replaces Frontpage and as such, you won’t be seeing any new versions of Frontpage. 
&#8230; You can read more about Expression Web 2 in the magazine.
Thanks,
Stefan Mischook
www.killersites.com
]]></description>
			<content:encoded><![CDATA[<p>Microsoft recently released Expression Web 2, their new web design program.</p>
<p><strong>Frontpage is old news:</strong></p>
<p>For those of you who don’t know much about it, Expression Web replaces Frontpage and as such, you won’t be seeing any new versions of Frontpage. </p>
<p>&#8230; You can read more about <a href="http://www.killersites.com/magazine/2008/microsoft-expression-web-2/">Expression Web 2</a> in the magazine.</p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/microsoft-expression-web-2-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaner code is better than faster code</title>
		<link>http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/</link>
		<comments>http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/#comments</comments>
		<pubDate>Sun, 11 May 2008 17:29:43 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[hand coding]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/</guid>
		<description><![CDATA[I can&#8217;t tell you how many times that my programming experience (in Java, PHP etc) has guided me in my web design work &#8230; and strangely, even in other aspects of my life not at all related to topics &#8216;nerd&#8217;.
&#8230; Ah, nerd wisdom prevails in all aspects of life.
  
Anyway, here yet again, is [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t tell you how many times that my programming experience (in Java, PHP etc) has guided me in my web design work &#8230; and strangely, even in other aspects of my life not at all related to topics &#8216;nerd&#8217;.</p>
<p>&#8230; Ah, nerd wisdom prevails in all aspects of life.</p>
<p> <img src='http://www.killersites.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, here yet again, is another example where programming guides me: this time, it&#8217;s all about web design and code. </p>
<p>-</p>
<p>Over the last few years, the consensus in the web design community has been to streamline code. In real terms, that comes down to:</p>
<ul>
<li>collapsing html</li>
<li>collapsing css</li>
<li>&#8230; and consolidating css code into one file, to minimize the number of server hits.</li>
</ul>
<p>&#8230; The idea is to speed up web page load times and to reduce web server loads. </p>
<p>This is an important goal and something all web designers should be concerned about. The problem is that if you are concentrating on optimizing your CSS or HTML to speed things up, you are concentrating on the wrong parts of your websites.</p>
<p>The fact is, that most of the optimization opportunities is actually found in your images, Flash movies and other multimedia content &#8211; not the code. </p>
<p><span id="more-280"></span></p>
<p><strong>What is HTML and CSS code collapsing?</strong></p>
<p>In a nutshell:</p>
<p>This is simply removing white space in your code. So you can take this:</p>
<div style="margin-top: 30px; margin-bottom: 30px;">
<pre lang="html">


Web design rocks!



Web design rocks!

</pre>
</div>
<p>And cut it down to this:</p>
<div style="margin-top: 30px; margin-bottom: 30px;">
<pre lang="html">

Web design rocks!

Web design rocks!
</pre>
</div>
<p>&#8230; The idea is that if you cut down 7 lines of code to just 1 line, the file will be a touch smaller. And this is true.</p>
<p>This old-school technique was used back in the 1990&#8217;s when everyone was on slow dial-up Internet connections and everyone had much slower computers.</p>
<p>Collapsing code was once useful, but like the transparent spacer gif trick &#8230; it is no longer needed. Actually, it&#8217;s more trouble than it is worth. </p>
<p><strong>What can web designers learn from programmers?</strong></p>
<p>When it comes to code, the web design community is still (generally) not nearly as experienced as the programming community. There are still lessons to be learned by the average web designer, lessons that have been fundamental in software development for years.</p>
<p>&#8230; Programmers have known for years that when it comes to code, it is better make it cleaner than speedier, because clean code is much easier to read, write and maintain. </p>
<p>So in our example above, seven lines of code are better than one.</p>
<p><strong>What is &#8216;cleaner&#8217; code?</strong></p>
<p>Clean code can be broken down to:</p>
<ul>
<li>Lots of white space so the code is easy to read.</li>
<li>Lots of comments so that you can much more easily understand what is going on 6 months down the road.</li>
<li>Code that is &#8216;chunked&#8217; into logical groups so that (again) it is easy to update etc.</li>
</ul>
<p>The rise of object oriented programming is the best example of this understanding. </p>
<p>Object oriented code will almost always be slower (when running) than old school procedural programming. Nonetheless, object oriented programming now dominates the programming world and all the major languages use it including:</p>
<ul>
<li>Java</li>
<li>PHP</li>
<li>Ruby</li>
<li>Actionscript</li>
</ul>
<p>&#8230; and many others.</p>
<p>After decades of experience, programmers have learned through hard experience that cleaner code is much better than faster code.</p>
<p><strong>How does this apply to web design?</strong></p>
<p>Well, write cleaner css and HTML that is easier to understand and easier to work with. To repeat the list from above:</p>
<ul>
<li>Use lots of white space so the code is easy to read.</li>
<li>Use lots of comments (in your html and css) so that you will be more able to understand what is going on 6 months down the road. This becomes more important when you are dealing with tricky CSS layouts that require seemingly strange markup.</li>
<li>Organize your <a href="http://www.killersites.com/blog/2008/how-to-organize-css/">css into logical groups (and pages)</a> so that it is easy to update etc.</li>
</ul>
<p><strong><br />
Won&#8217;t cleaner code slow down my pages?</strong></p>
<p>The fact of the matter is, for the vast majority of websites (%99.99999999999999999) you will not see ANY difference in terms of speed or cost in bandwidth. </p>
<p>&#8230; The &#8216;optimize code to save money&#8217; is a wurban (Web + urban) myth.</p>
<p>Stefan Mischook</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2008/cleaner-code-is-better-than-faster-code/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
