<?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; hand coding</title>
	<atom:link href="http://www.killersites.com/blog/tag/hand-coding/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>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>
		<item>
		<title>Intelligent Paths Make Websites Friendlier.</title>
		<link>http://www.killersites.com/blog/2008/intelligent-paths-make-websites-friendlier/</link>
		<comments>http://www.killersites.com/blog/2008/intelligent-paths-make-websites-friendlier/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 03:29:35 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[hand coding]]></category>
		<category><![CDATA[learning web design]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2008/intelligent-paths-make-websites-friendlier/</guid>
		<description><![CDATA[
Killersites.com is an old site, nearly 12 years old now! 
Over that time (as we added more articles and tutorials), our directory structures and file naming styles changed as conventions changed.  So now I have a huge mess to clean up. 
&#8230; There is a lot of information buried in killersites.com that people just [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.killersites.com/blog/wp-content/uploads/2007/01/ie_7.gif' alt='ie7 screen shot' style="float: right; margin: 15px" /></p>
<p>Killersites.com is an old site, nearly 12 years old now! </p>
<p>Over that time (as we added more articles and tutorials), our directory structures and file naming styles changed as conventions changed.  So now I have a huge mess to clean up. </p>
<p>&#8230; There is a lot of information buried in killersites.com that people just don&#8217;t find.</p>
<p> <img src='http://www.killersites.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Fortunately, over the last 12-13 years of building websites and web applications, I&#8217;ve been able to figure out the best way to organize a website:</p>
<p>In this article, I discuss how to create an easier to maintain, more user friendly website by way of using <strong>intelligent paths</strong>.</p>
<p>-</p>
<p>So what are &#8216;intelligent paths&#8217;?</p>
<p>I&#8217;m talking about URL structures of course! So that means a few things:</p>
<ol>
<li>Building a SENSIBLE website directory structure.</li>
<li>Using meaningful words in page names and directories.</li>
<li>Using lower case text for page and directory names.</li>
<li>Using dashes between words in both page and directory names.</li>
</ol>
<p>&#8230; Let&#8217;s go over the details.</p>
<p><span id="more-254"></span></p>
<p><strong><br />
Sensible website directory structures</strong></p>
<p>I am talking about being logical (in the hierarchy of your website) so that it should be easy for people to find content in your site. So for example, on killersites.com I now have major sections for Wordpress, Dreamweaver and soon Flash. So when someone comes to my web site and finds themselves in the Dreamweaver section:<br />
<a href="http://www.killersites.com/dreamweaver/"><br />
http://www.killersites.com/dreamweaver/</a></p>
<p>That same person, an enterprising nerd, might think that given the above Dreamweaver address/URL, that the Wordpress URL could be found at:<br />
<a href="http://www.killersites.com/wordpress/"><br />
http://www.killersites.com/wordpress/</a></p>
<p>&#8230; And thankfully, they would be correct!</p>
<p>And since killersites.com has plenty of free video tutorials to offer, it only makes sense that the videos be kept in a &#8216;videos&#8217; sub-directory:</p>
<p>http://www.killersites.com/wordpress/videos/</p>
<p>Wanting to be consistent (and logical) we should do the same thing for our Dreamweaver videos as well:</p>
<p>http://www.killersites.com/dreamweaver/videos/</p>
<p>Later on, as I add new content (and reorganize the old content) I should remember to keep my directory/URL structures consistent. This will make the web site easier to navigate (users perspective) and easier to manage for us web designers.</p>
<p><strong>Using meaningful words in page names and directories</strong></p>
<p>I think this point is self describing &#8230;</p>
<p> <img src='http://www.killersites.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As people are getting more web savvy, they will tend to look at page names and URLs more and more. Good (self describing) URLs give the surfer (and search engines) information about the content of the page they are visiting:</p>
<p>www.killersites.com/dreamweaver/videos/</p>
<p>&#8230; I think that it is pretty clear what they will find on this page!</p>
<p>Consider a bad URL:</p>
<p>www.killerdreamweaver.com/dw/vt/2008.html</p>
<p>&#8230; how are people (and search engines) supposed to figure out that the above page is filled with Dreamweaver (dw) video tutorials (vt) made in 2008?</p>
<p><strong>Using lower case text for page and directory names</strong></p>
<p>This is more of an aesthetic thing &#8211; lower case text across the URL text is just nicer to look at. Consider an old (soon to be retired) URL:</p>
<p>http://www.killersites.com/videoTutorials/Tutorial_WebDesign/webDesign.jsp</p>
<p>Yikes! I describe the content well enough but the text just looks ugly! This would be nicer:</p>
<p>http://www.killersites.com/video-tutorials/tutorial-webdesign/web-design.jsp</p>
<p>Easier to read, but some of the combined names will not make Google happy and the URL is kinda long. How about this:</p>
<p>http://www.killersites.com/web-design/videos/</p>
<p>&#8230; Now that&#8217;s a sensible URL!<br />
<strong><br />
Using dashes between words in both page and directory names</strong></p>
<p>I know for a fact that search engines have an easier time discerning the subject of a page when words are separated by dashes as in:</p>
<p>web-design </p>
<p>.. rather than:</p>
<p>webdesign.</p>
<p>Besides the search engine advantage, the use of a dash makes it just a lot easier to read. </p>
<p><strong>Conclusion</strong></p>
<p>Just by following these few simple rules, you can make your web sites easier to maintain, easier to navigate and friendlier to the search engines.</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/intelligent-paths-make-websites-friendlier/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PHP Video Tutorial: Creating your own Functions</title>
		<link>http://www.killersites.com/blog/2007/php-video-tutorial-creating-your-own-functions/</link>
		<comments>http://www.killersites.com/blog/2007/php-video-tutorial-creating-your-own-functions/#comments</comments>
		<pubDate>Mon, 08 Oct 2007 19:32:41 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Podcast | Videos]]></category>
		<category><![CDATA[hand coding]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2007/php-video-tutorial-creating-your-own-functions/</guid>
		<description><![CDATA[
Hi,
In my continued attempts to teach web designers how to program with PHP (now an essential web design skill,) I&#8217;ve just released part 1 of 3, of my video series on creating custom functions in PHP. 
We cover the very basics and learn about one of the key advantages of creating functions in php versus [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.killersites.com/blog/wp-content/uploads/2006/11/video-frog-icon.gif' alt='video_tutorial' /></p>
<p>Hi,</p>
<p>In my continued attempts to teach web designers how to program with PHP (now an essential web design skill,) I&#8217;ve just released part 1 of 3, of my video series on creating custom functions in PHP. </p>
<p>We cover the very basics and learn about one of the key advantages of creating functions in php versus just write straight PHP code to your pages.</p>
<p><strong>The Video: </strong><a href="http://www.killerphp.com/videos/13_functions_custom/functions-custom-part1.php">Custom PHP Functions</a></p>
<p>Part 2 and 3 will be out soon.</p>
<p>Thanks,</p>
<p>Stefan</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2007/php-video-tutorial-creating-your-own-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The technologies you need to master to be a complete web designer.</title>
		<link>http://www.killersites.com/blog/2007/web-designers-study-guide/</link>
		<comments>http://www.killersites.com/blog/2007/web-designers-study-guide/#comments</comments>
		<pubDate>Tue, 18 Sep 2007 05:56:11 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[hand coding]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2007/web-designers-study-guide/</guid>
		<description><![CDATA[Web design has been transformed over the last many years. In many ways, the skills a web designer needed in 1996 are totally different from the skills you need in 2007 &#8230; and the foreseeable future.
I won&#8217;t go into what you needed in the past, because it matters not. So let&#8217;s talk about what you [...]]]></description>
			<content:encoded><![CDATA[<p>Web design has been transformed over the last many years. In many ways, the skills a web designer needed in 1996 are totally different from the skills you need in 2007 &#8230; and the foreseeable future.</p>
<p>I won&#8217;t go into what you needed in the past, because it matters not. So let&#8217;s talk about what you need to know today, to be a complete and competitive web designer.</p>
<p><strong>The Web Designer&#8217;s Study Guide:</strong></p>
<ol>
<li>HTML</li>
<li>CSS</li>
<li>PHP</li>
<li>Javascript</li>
</ol>
<p><span id="more-201"></span></p>
<p>Comments:</p>
<p>I think the first two on the list would make sense to most. But #3 is probably confusing the heck out of some of you, so let me make a few quick points.</p>
<p><strong>WHY WEB DESIGNERS NEED TO LEARN SOME PHP</strong><br />
<strong><br />
In a nutshell:</strong></p>
<ul>
<li>Most web projects will require some basic dynamic functionality that PHP makes easy.</li>
<li>Blogs and CMS software &#8211; read below.</li>
</ul>
<p>Today, it is becoming more and more common that web sites are based on a blog or CMS package. For example:</p>
<ul>
<li>Wordpress</li>
<li>Drupal</li>
<li>Mambo</li>
</ul>
<p>To take full advantage of these, you should be able to dig into the code so that you can make the changes for your clients particular needs. Not all blogs/cms are written in PHP .. but many are, including the ones listed above.</p>
<p>I go into more detail about <a href="http://www.killerphp.com/articles/evangelizing-php/">php for web designers</a> on my dedicated PHP site for web designers:</p>
<p><a href="http://www.killerphp.com">www.killerphp.com</a></p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
<p>www.killersites.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2007/web-designers-study-guide/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Three reasons you should learn to hand code your web pages.</title>
		<link>http://www.killersites.com/blog/2006/three-reasons-to-code/</link>
		<comments>http://www.killersites.com/blog/2006/three-reasons-to-code/#comments</comments>
		<pubDate>Wed, 25 Jan 2006 08:01:21 +0000</pubDate>
		<dc:creator>Stefan Mischook</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Podcast | Videos]]></category>
		<category><![CDATA[Real World Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[hand coding]]></category>

		<guid isPermaLink="false">http://www.killersites.com/blog/2006/three-reasons-you-should-learn-to-hand-code-your-web-pages/</guid>
		<description><![CDATA[In this podcast, I discuss the 3 reasons why learning to hand code your web pages makes sense &#8230; and dollars too!&#160;
Podcast running time: 7:30

Download MP3&#160;link: 3 Reasons to hand code
Thanks,
Stefan Mischook
]]></description>
			<content:encoded><![CDATA[<p>In this podcast, I discuss the 3 reasons why learning to hand code your web pages makes sense &#8230; and dollars too!&nbsp;</p>
<p><strong>Podcast running time:</strong> 7:30</p>
<p><img height="72" alt="" hspace="2" src="http://www.killersites.com/UserFiles/Image/headShot_blog_small.jpg" width="81" vspace="2" /></p>
<p>Download MP3&nbsp;link: <a href="http://www.killersites.com/blog/audio/3_reasons.mp3" target="_blank">3 Reasons to hand code</a></p>
<p>Thanks,</p>
<p>Stefan Mischook</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killersites.com/blog/2006/three-reasons-to-code/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
<enclosure url="http://www.killersites.com/blog/audio/3_reasons.mp3" length="2275396" type="audio/mpeg" />
		</item>
	</channel>
</rss>
