<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Pseudocode and indentation</title>
	<atom:link href="http://www.burobjorn.nl/blog/2009/11/03/pseudocode-and-indentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.burobjorn.nl/blog/2009/11/03/pseudocode-and-indentation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pseudocode-and-indentation</link>
	<description>Burobjorn houdt zich bezig met open source software en online media. Van advies tot concept. Van prototype tot implementatie.</description>
	<lastBuildDate>Wed, 25 Jan 2012 02:34:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: BjornW</title>
		<link>http://www.burobjorn.nl/blog/2009/11/03/pseudocode-and-indentation/#comment-246555</link>
		<dc:creator>BjornW</dc:creator>
		<pubDate>Tue, 17 Nov 2009 10:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.burobjorn.nl/?p=648#comment-246555</guid>
		<description>Hi Bruce,

Thanks for your comment. I&#039;ve edited the transcript and added the word &#039;move&#039;. As far as I remember that&#039;s what he said in his lecture and this makes more sense :)

Regarding the &quot;when things move from one page to another for example you can’t tell what level of nesting it is&quot;, in the context of he lecture he refers to writing down algorithms in pseudo code and I presume his students are required to hand in algorithmic solutions written down on paper. Then a page makes sense ;) 

Actually, even if you&#039;re using an editor like Vim or Emacs you&#039;re limited to what you can see of the code due to the size of your screen, so when scrolling large pieces of code it still might make sense (although in my experience if a related block of code is longer than a screen scroll, you might want to divide it up into more manageable chunks, but that&#039;s a different discussion) to use braces instead of indentation in languages where indentation is not part of the language such as Python.   

As for why I quoted Leiserson: there&#039;s tons of people writting php code without braces and using indentation instead. Since the php language does nothing to enforce indentations it can become quite ugly and very annoying code to maintain or extend. Especially with regards to &#039;refactoring&#039; or just adding code to for instance if..elseif..else type of control structures. In the Wordpress community I&#039;ve come across this misuse of indentation instead of braces on a daily basis and it&#039;s a pain to work with. I would prefer people to apply the conventions of the languages they use. In Python this means indentation and in PHP it means using braces.   </description>
		<content:encoded><![CDATA[<p>Hi Bruce,</p>
<p>Thanks for your comment. I&#8217;ve edited the transcript and added the word &#8216;move&#8217;. As far as I remember that&#8217;s what he said in his lecture and this makes more sense <img src='http://www.burobjorn.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regarding the &#8220;when things move from one page to another for example you can’t tell what level of nesting it is&#8221;, in the context of he lecture he refers to writing down algorithms in pseudo code and I presume his students are required to hand in algorithmic solutions written down on paper. Then a page makes sense <img src='http://www.burobjorn.nl/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>Actually, even if you&#8217;re using an editor like Vim or Emacs you&#8217;re limited to what you can see of the code due to the size of your screen, so when scrolling large pieces of code it still might make sense (although in my experience if a related block of code is longer than a screen scroll, you might want to divide it up into more manageable chunks, but that&#8217;s a different discussion) to use braces instead of indentation in languages where indentation is not part of the language such as Python.   </p>
<p>As for why I quoted Leiserson: there&#8217;s tons of people writting php code without braces and using indentation instead. Since the php language does nothing to enforce indentations it can become quite ugly and very annoying code to maintain or extend. Especially with regards to &#8216;refactoring&#8217; or just adding code to for instance if..elseif..else type of control structures. In the WordPress community I&#8217;ve come across this misuse of indentation instead of braces on a daily basis and it&#8217;s a pain to work with. I would prefer people to apply the conventions of the languages they use. In Python this means indentation and in PHP it means using braces.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.burobjorn.nl/blog/2009/11/03/pseudocode-and-indentation/#comment-246552</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Tue, 17 Nov 2009 09:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.burobjorn.nl/?p=648#comment-246552</guid>
		<description>I haven&#039;t watched the presentation and I just wanted to comment what you&#039;ve written above (there seems to be a transcription error by the way, see [sic] below).

The only valid argument I&#039;ve come across against using indentation to delimit blocks is that it can make refactoring your code a bit more difficult. But the argument Leiserson makes in this presentation, that it&#039;s a bad idea because &quot;when things [sic] from one page to another for example you can’t tell what level of nesting it is&quot; makes no sense, what&#039;s a &quot;page&quot; anyways?

I&#039;ve been dabbling in Python over the last few years and I have never had a problem with the indentation, though I must admit that I haven&#039;t done any truly intensive refactoring. Any language with braces nowadays just feels verbose to me.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t watched the presentation and I just wanted to comment what you&#8217;ve written above (there seems to be a transcription error by the way, see [sic] below).</p>
<p>The only valid argument I&#8217;ve come across against using indentation to delimit blocks is that it can make refactoring your code a bit more difficult. But the argument Leiserson makes in this presentation, that it&#8217;s a bad idea because &#8220;when things [sic] from one page to another for example you can’t tell what level of nesting it is&#8221; makes no sense, what&#8217;s a &#8220;page&#8221; anyways?</p>
<p>I&#8217;ve been dabbling in Python over the last few years and I have never had a problem with the indentation, though I must admit that I haven&#8217;t done any truly intensive refactoring. Any language with braces nowadays just feels verbose to me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

