<?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>Richard Knop&#039;s Zend Framework Blog &#187; Pseudocode</title>
	<atom:link href="http://blog.richardknop.com/tag/pseudocode/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.richardknop.com</link>
	<description>Zend Framework, PHP, MySQL, jQuery, JavaScript, AJAX, SEO, E-commerce and more</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:49:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using pseudocode to develop algorithms</title>
		<link>http://blog.richardknop.com/2009/05/using-pseudocode-to-develop-algorithms/</link>
		<comments>http://blog.richardknop.com/2009/05/using-pseudocode-to-develop-algorithms/#comments</comments>
		<pubDate>Fri, 22 May 2009 20:29:05 +0000</pubDate>
		<dc:creator>Richard Knop</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Pseudocode]]></category>

		<guid isPermaLink="false">http://blog.richardknop.com/?p=223</guid>
		<description><![CDATA[I am used to jumping right into programming and just come up with algorithmical solutions on the go but lately I&#8217;ve been playing a bit with pseudocode. The idea is simple. Before you start programming, you write the algorithm down in a simple informal language &#8211; pseudocode. The pseudocode usually uses some conventions from normal [...]]]></description>
			<content:encoded><![CDATA[<p>I am used to jumping right into programming and just come up with algorithmical solutions on the go but lately I&#8217;ve been playing a bit with <a href="http://en.wikipedia.org/wiki/Pseudocode">pseudocode</a>. The idea is simple. Before you start programming, you write the algorithm down in a simple informal language &#8211; pseudocode.</p>
<p>The pseudocode usually uses some conventions from normal programming languages (like if/else, while, for and other statements) but things not important for humans are omitted &#8211; the aim is to describe the algorithm in a way clear to humans not machines. Here&#8217;s an example of my pseudocode:</p>
<pre>get the latest articles

for all articles
    if article is published
        write title
        write content
        write number of comments
    endif
endfor</pre>
<p>As you can see there are no rules. No variables declarations and no system-specific code. Personally, I like to use if/endif, for/endfor to make the code more readable.</p>
<p>Why use it? It can save lots of time as translating algorithms to a specific language is much easier when you already have all business logic described. There&#8217;s also a chance you will find and fix potential issues before the real programming.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.richardknop.com/2009/05/using-pseudocode-to-develop-algorithms/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
