<?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>Freya.no &#187; test</title>
	<atom:link href="http://wp.freya.no/tag/test/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.freya.no</link>
	<description>Knowledge is power</description>
	<lastBuildDate>Sat, 04 Sep 2010 21:00:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clean code</title>
		<link>http://wp.freya.no/2010/02/clean-code/</link>
		<comments>http://wp.freya.no/2010/02/clean-code/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 20:13:49 +0000</pubDate>
		<dc:creator>Tatyana</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Memorable]]></category>
		<category><![CDATA[clean code]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=585</guid>
		<description><![CDATA[The book by Robert C. Martin &#8220;Clean Code&#8221; is a really very useful material for all programmers. You can disagree with him sometimes (as I do), but it still provides some useful notes that helped me to place my programmer experience and knowledge where they belong. Here I&#8217;ll provide some key notes that I did [...]


Related posts:<ol><li><a href='http://wp.freya.no/2010/05/ugly-code-the-law-of-demeter/' rel='bookmark' title='Permanent Link: Ugly code: The Law of Demeter'>Ugly code: The Law of Demeter</a></li>
<li><a href='http://wp.freya.no/java/recipe-for-a-high-quality-equals-method/' rel='bookmark' title='Permanent Link: Recipe for a high-quality &#8220;equals&#8221; method'>Recipe for a high-quality &#8220;equals&#8221; method</a></li>
<li><a href='http://wp.freya.no/java/testing-java-with-junit/' rel='bookmark' title='Permanent Link: Testing java with JUnit'>Testing java with JUnit</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The book by Robert C. Martin &#8220;Clean Code&#8221; is a really very useful material for all programmers. You can disagree with him sometimes (as I do), but it still provides some useful notes that helped me to place my programmer experience and knowledge where they belong. Here I&#8217;ll provide some key notes that I did while reading the book and that I&#8217;d like to memorize.</p>
<p>What you as a programmer <strong>SHOULD DO</strong>:</p>
<p>1. Give everything meaningful, searchable and pronounceable names.<br />
2. Use names that other programmers can understand. Remember that the code is for programmers, not customers.<br />
3. Functions should be small and smaller than that.<br />
4. Functions should do one thing. They should do it well. They should do it only.<br />
5. The ideal number of arguments for a function is zero. Max 3.<br />
6. Prefer exceptions to returning error codes. Create informative error messages.<br />
7. Prefer meaningful names to comments.<br />
8. Write JavaDoc only for public API&#8217;s.<br />
9. Format your code. While working in a team use a single formatting style.<br />
10. Test your code with clean tests. Remember that test code is just as important as production code.<br />
11. Test just one concept per test.<br />
12. Test should follow the FIRST rule:</p>
<ul> <strong>Fast </strong>-  tests should be fast.<br />
<strong>Independent </strong>- tests should not depend on each other<br />
<strong>Repeatable </strong>- tests should be repeatable in any environment<br />
<strong>Self-validating</strong> &#8211; the test should have a boolean output<br />
<strong>Timely </strong>- write unit tests before the production code.</ul>
<p>What you as a programmer should <strong>AVOID</strong>:<br />
1. Avoid encoding<br />
2. Avoid duplicate code. Watch out not only duplicate functions but also duplicate functionality.<br />
3. Avoid noisy, redundant, uninformative comments. Remember that one of the more common motivations for writing comments is bad code.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=585" width="1" height="1" style="display: none;" />

<p>Related posts:<ol><li><a href='http://wp.freya.no/2010/05/ugly-code-the-law-of-demeter/' rel='bookmark' title='Permanent Link: Ugly code: The Law of Demeter'>Ugly code: The Law of Demeter</a></li>
<li><a href='http://wp.freya.no/java/recipe-for-a-high-quality-equals-method/' rel='bookmark' title='Permanent Link: Recipe for a high-quality &#8220;equals&#8221; method'>Recipe for a high-quality &#8220;equals&#8221; method</a></li>
<li><a href='http://wp.freya.no/java/testing-java-with-junit/' rel='bookmark' title='Permanent Link: Testing java with JUnit'>Testing java with JUnit</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2010/02/clean-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Garmin nüvi 765T review: part 1</title>
		<link>http://wp.freya.no/2008/12/garmin-nuvi-765t-review-part-1/</link>
		<comments>http://wp.freya.no/2008/12/garmin-nuvi-765t-review-part-1/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 06:34:39 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Ikke interessant]]></category>
		<category><![CDATA[Game review]]></category>
		<category><![CDATA[garmin]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[road]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=206</guid>
		<description><![CDATA[I just bought myself a shiny new GPS yesterday, the choice was hard, but it was Garmin who picked the longest straw. The other competitors was Mio and TomTom. I&#8217;ve had it out for a few testdrives here in Oslo. It had all the roads I were driving and it easily managed to calculate new [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I just bought myself a shiny new GPS yesterday, the choice was hard, but it was Garmin who picked the longest straw. The other competitors was Mio and TomTom.</p>
<div class="wp-caption aligncenter" style="width: 310px"><img title="Garmin nüvi 765T" src="https://buy.garmin.com/shop/store/assets/images/products/010-00715-20/en/cf-lg.jpg" alt="Garmin nüvi 765T" width="300" height="300" /><p class="wp-caption-text">Garmin nüvi 765T</p></div>
<p>I&#8217;ve had it out for a few testdrives here in Oslo. It had all the roads I were driving and it easily managed to calculate new routes when I turned right when I&#8217;ve should have gone straight forward or left.</p>
<p>The display is large and colorful, but the touchscreen is somewhat slow when I try to scroll the map or rotate the map. It&#8217;s 3D view of buildings is ok, but it isn&#8217;t exactly the latest FarCry2 engine. While driving you want to keep your eyes on the road, not on the 3D buildings, so it doesn&#8217;t really matter.</p>
<p>It has lots of Points of Interest (POI), though I&#8217;ve only checked some major ones. There are lots of restaurants, bars and gas stations on the map. Big plus for having both IKEAs in Oslo available as a POI! <img src='http://wp.freya.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The second time I were out driving wasn&#8217;t that cheerful. It&#8217;s live traffic alarm wasn&#8217;t spot on. In fact, it didn&#8217;t get anything right. One place it marked a whole section of the road as road work with a 2 minute delay, but there were none. It also guided me through the busy parts of the city with mostly red traffic lights at every intersection. As a &#8220;bonus&#8221;, as I might call it, it literally died upon me. Luckily I was familiar in the area so I managed to get home on my own. My wife tried to revive the GPS by holding the off button pressed for a long time. It didn&#8217;t respond. It displayed the map from where it froze. When I got home it finally could be revived by pressing the off button for 5 seconds. A big disappointment!</p>
<p>When I&#8217;m more familiar with this unit, I&#8217;ll post an updated review.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=206" width="1" height="1" style="display: none;" />

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2008/12/garmin-nuvi-765t-review-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
