<?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>David Lewis</title>
	<atom:link href="http://www.david-lewis.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.david-lewis.com</link>
	<description>Mostly HTML, CSS and JavaScript</description>
	<lastBuildDate>Sun, 21 Feb 2010 00:53:16 +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>Return of the Sheep Game</title>
		<link>http://www.david-lewis.com/2010/02/20/return-of-the-sheep-game/</link>
		<comments>http://www.david-lewis.com/2010/02/20/return-of-the-sheep-game/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 00:53:16 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.david-lewis.com/?p=36</guid>
		<description><![CDATA[Return of the Sheep Game? Maybe&#8230; as it approaches it&#8217;s 10th birthday what am I going to do?
The bulk of the code for the Sheep Game has been untouched since 2001, when I updated from Flash 4 to Flash 5. I&#8217;ve had a couple of attempts at rebuilding the game, but never quite managed it.
With [...]]]></description>
			<content:encoded><![CDATA[<p>Return of the Sheep Game? Maybe&#8230; as it approaches it&#8217;s 10th birthday what am I going to do?</p>
<p>The bulk of the code for the <a href="http://www.sheepgame.co.uk">Sheep Game</a> has been untouched since 2001, when I updated from <a href="http://www.sheepgame.co.uk/museum/stuff/sheepgame.htm">Flash 4 </a>to <a href="http://www.sheepgame.co.uk/launch.php">Flash 5</a>. I&#8217;ve had a couple of attempts at rebuilding the game, but never quite managed it.</p>
<p>With the tests I&#8217;ve done in the last few years (playing with <a href="http://www.david-lewis.com/test/SG02/">AS3.0</a> and <a href="http://www.david-lewis.com/test/SG03/">Unity</a>) I always thought it would be to make a 3D version of the game, but it&#8217;s never quite come together.</p>
<p>In the last week I&#8217;ve put together the following demo: <a href="http://www.david-lewis.com/test/SGJS/">http://www.david-lewis.com/test/SGJS/</a> when you look at it you might just think &#8220;erm, that looks like the old game except I can&#8217;t resize it&#8221;, and you&#8217;d be correct. I&#8217;d be happy if you thought that because that demo has been written from scratch using only HTML, JS and CSS. I think this is where the new version of the game will come from.</p>
<p>When it comes to producing a richer user experience, the combination of HTML, JS and CSS has always been the poor cousin of Flash + ActionScript. I&#8217;m starting to see that this situation will change as technology like HTML5 + CSS3 settle and we all continue to play with things like <a href="http://www.raphaeljs.com">Raphael </a>and <a href="http://www.jquery.org">jQuery</a></p>
<p>This demo has shown me that I can produce something that is Flash like in around 10 hours, that works on every modern browser (yes this demo even works in IE6), and it was great fun to produce.</p>
<p>From this I hope to use the SheepGame to deliver a professional looking game using the fundamental technologies of the WWW.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.david-lewis.com/2010/02/20/return-of-the-sheep-game/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Working together with CSS</title>
		<link>http://www.david-lewis.com/2009/11/07/working-together-with-css/</link>
		<comments>http://www.david-lewis.com/2009/11/07/working-together-with-css/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 23:39:09 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.david-lewis.com/?p=10</guid>
		<description><![CDATA[For the majority of the time I&#8217;ve been developing websites I&#8217;ve done it alone, not having to worry about other people understanding my code or thinking about what happens when I&#8217;m not longer around to look after it.
In the last 3 years I have worked in larger and larger teams and I&#8217;ve found the following [...]]]></description>
			<content:encoded><![CDATA[<p>For the majority of the time I&#8217;ve been developing websites I&#8217;ve done it alone, not having to worry about other people understanding my code or thinking about what happens when I&#8217;m not longer around to look after it.</p>
<p>In the last 3 years I have worked in larger and larger teams and I&#8217;ve found the following guidelines quite useful for making the change from solo developer to a member of a team.<span id="more-10"></span></p>
<h2>Some General Rules to keep in mind</h2>
<ul>
<li>Working in a team, you have to surrender some of your personal preferences when writing your CSS (eg comments style, how you format the document, and how you build the directory structure).</li>
<li>Expectaion should be that by looking at the web page, you can predict the CSS code before you look at the source file, and that you can quickly scan the CSS file to find what element is being styled.</li>
<li>The basis of good CSS needs to be in consistently written HTML, if HTML is inconsistent you will end up writing CSS to compencate. More code means more difficulty in maintenance.</li>
<li>Be consistent with the CSS file, don&#8217;t mix formatting styles or selector styles. If you lose consistency it will make the developer have to stop and think each time consistency is broken. This will slow you down.</li>
<li>If you are going to be maintaining the CSS after site launch: Out of the selector and the style defined, the selector is more important to you. The formatting of your document should reflect this.</li>
</ul>
<p>Bear in mind that these rules can&#8217;t always work for you, but try to follow them if you can.</p>
<h2>Stock standard CSS</h2>
<p>Use reset, and a common way to measure fonts. Establish the font measurements and stick to them.</p>
<h2>What CSS to put on what area of the page</h2>
<h3>Layout</h3>
<p>Layout should only deal with the grid layout for the page, therefore you shouldn&#8217;t need anything more that widths, floats, position&#8230; maybe some padding or margins.</p>
<h3>Site Furniture, Modules and page specific content</h3>
<p>These are similar in concept. This makes up the majority of your page, you should avoid setting explicit widths on modules, allowing the layout to take care of how wide modules and furniture should be.</p>
<h2>Formatting code and consistent selectors</h2>
<p>These two areas need to be consistent, once they are you will be able to quickly scan your CSS document to find which rules are applying to which elements</p>
<h3>Formatting code</h3>
<ul>
<li>One line, alphabetical order of properties (I know alphabetical is anal)</li>
<li>Don&#8217;t indent your code, the approach to using the selectors will automatically take care of that.</li>
</ul>
<h3>Selectors</h3>
<ul>
<li>Try to keep general style rules for tags to a minimum.</li>
<li>Begin all your selectors from the same place, and begin them from either the layout, furniture, module or page specific root. eg (.module .heading .h3 {} .group .item .)</li>
<li>Be as descriptive as you can be with you selector</li>
<li>Only make a general rule if you are confident it&#8217;s not going to cause problems with other elements</li>
</ul>
<h2>Dealing with Hacks</h2>
<p>Don&#8217;t use hacks inline with the stylesheet, seperate them out and put them in a seperate style sheet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.david-lewis.com/2009/11/07/working-together-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First post</title>
		<link>http://www.david-lewis.com/2009/11/07/hello-world/</link>
		<comments>http://www.david-lewis.com/2009/11/07/hello-world/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 22:34:30 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[setting up]]></category>

		<guid isPermaLink="false">http://www.david-lewis.com/?p=1</guid>
		<description><![CDATA[This is the first toe in the water&#8230; whilst I short my bits and bobs out you may want to nip over to: eisabainyo.net where there are lots of great tips on guidelines on web development.
In getting myself up and running I&#8217;ve chosen to use the rather lovely jQ theme by devolux.
]]></description>
			<content:encoded><![CDATA[<p>This is the first toe in the water&#8230; whilst I short my bits and bobs out you may want to nip over to: <a href="http://eisabainyo.net/weblog/">eisabainyo.net</a> where there are lots of great tips on guidelines on web development.</p>
<p>In getting myself up and running I&#8217;ve chosen to use the rather lovely <a href="http://wordpress.org/extend/themes/jq">jQ </a>theme by devolux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.david-lewis.com/2009/11/07/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
