<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Indentation</title>
		<link>http://kogics.wikidot.com/forum/t-520265/indentation</link>
		<description>Posts in the discussion thread &quot;Indentation&quot; - Should the Script Editor follow the official Scala indentation convention?</description>
				<copyright></copyright>
		<lastBuildDate>Mon, 10 Aug 2026 10:26:47 +0000</lastBuildDate>
		
					<item>
				<guid>http://kogics.wikidot.com/forum/t-520265#post-1505957</guid>
				<title>Re: Indentation</title>
				<link>http://kogics.wikidot.com/forum/t-520265/indentation#post-1505957</link>
				<description></description>
				<pubDate>Thu, 12 Jul 2012 10:35:23 +0000</pubDate>
				<wikidot:authorName>EnthusiasticEducator</wikidot:authorName>				<wikidot:authorUserId>1395618</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>You can link easily using the URL link or URL link wizard buttons</p> </blockquote> <p>I can write a link easily enough, but then my comment isn't allowed to post - the forum requires sufficient karma before links are accepted. I guess this problem affects all the &quot;newbies&quot; in this forum!</p> <blockquote> <p>4-spaces seems to hit the sweet spot between too much and too little?</p> </blockquote> <p>I completely agree actually, but then, I just can't work out if that is just because I've been brainwashed by writing so much code with four spaces in the past! Perhaps if I was only used to two-space (the way Scala should be when written &quot;properly&quot;) I would think of four spaces as being weird, annoying, and leaving too much whitespace&#8230; I shall attempt to reorient my brainwashing towards two spaces, using the Formatting option you described - thanks a lot!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-520265#post-1505755</guid>
				<title>Re: Indentation</title>
				<link>http://kogics.wikidot.com/forum/t-520265/indentation#post-1505755</link>
				<description></description>
				<pubDate>Thu, 12 Jul 2012 04:40:09 +0000</pubDate>
				<wikidot:authorName>lalitp</wikidot:authorName>				<wikidot:authorUserId>66813</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>For children who are being taught the importance of indentation for readability, aesthetics, and even a sign of something being wrong (if code formatting results in wierd looking, improperly indented, code), 4-spaces seems to hit the sweet spot between too much and too little?</p> <p>In any case, you can go, from the Script Editor contect menu, into <em>Experimental Features -&gt; Advanced Options</em>, click on <em>Editor</em>, click on <em>Formatting</em>, and set the desired <em>Number of Saces per Indent</em>.</p> <p>PS.</p> <blockquote> <p>can't link here</p> </blockquote> <p>You can link easily using the <em>URL link</em> or <em>URL link wizard</em> buttons</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://kogics.wikidot.com/forum/t-520265#post-1504522</guid>
				<title>Indentation</title>
				<link>http://kogics.wikidot.com/forum/t-520265/indentation#post-1504522</link>
				<description></description>
				<pubDate>Tue, 10 Jul 2012 22:50:29 +0000</pubDate>
				<wikidot:authorName>EnthusiasticEducator</wikidot:authorName>				<wikidot:authorUserId>1395618</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Boring and pedantic point, and not occupying a high priority, but if you look at Scala's official style guide (can't link here but easily googleable!):</p> <blockquote> <p>Indentation should follow the “2-space convention”. &#8230; [some code examples follow]</p> <p>The Scala language encourages a startling amount of nested scopes and logical blocks (function values and such). Do yourself a favor and don’t penalize yourself syntactically for opening up a new block. Coming from Java, this style does take a bit of getting used to, but it is well worth the effort.</p> </blockquote> <p>The Script Editor currently seems to apply the 4-space convention: admittedly this is what I'm used to myself and therefore seems perfectly normal to me (e.g. it's in the PEP8 Python style guide and is standard in Java) but there would seem to be some logic in following Scala's style guide. A foolish consistency is the hobgoblin of little minds etc, but Kojo's default layout, with the Script Editor and Output Pane sharing the bottom of the screen, does leave the typing space fairly narrow.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>