<?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>Comments for page &quot;Code Generation &amp; Visual Smog in Code (part II)&quot;</title>
		<link>http://250bpm.com/forum/t-853349/code-generation-visual-smog-in-code-part-ii</link>
		<description>Posts in the discussion thread &quot;Code Generation &amp; Visual Smog in Code (part II)&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Sat, 01 Aug 2015 21:48:57 +0000</lastBuildDate>
		
					<item>
				<guid>http://250bpm.com/forum/t-853349#post-2020496</guid>
				<title>(no title)</title>
				<link>http://250bpm.com/forum/t-853349/code-generation-visual-smog-in-code-part-ii#post-2020496</link>
				<description></description>
				<pubDate>Sun, 27 Apr 2014 11:59:30 +0000</pubDate>
				<wikidot:authorName>martin_sustrik</wikidot:authorName>				<wikidot:authorUserId>939</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The idea was to minimise possible clashes with Ruby.</p> <p>The assumption was that a dot at the beginning of the line is very rare i Ruby. A dot following a whitespace may be less rare:</p> <div class="code"> <pre> <code>foo .bar() .baz()</code> </pre></div> <p>The sequence of multiple dots should be actually viable. Still, I feel like anchoring the generated code to the left is good for readability, i.e. the indentation of the text you see (within a single function) is the same as the one in the output. Kind of wysiwyg principle.</p> <p>That would not apply, if mutliple dots are allowed:</p> <div class="code"> <pre> <code>........a ....b</code> </pre></div> <p>Would produce:</p> <div class="code"> <pre> <code>a b</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://250bpm.com/forum/t-853349#post-2020491</guid>
				<title>(no title)</title>
				<link>http://250bpm.com/forum/t-853349/code-generation-visual-smog-in-code-part-ii#post-2020491</link>
				<description></description>
				<pubDate>Sun, 27 Apr 2014 11:44:22 +0000</pubDate>
				<wikidot:authorName>Pierre Chapuis</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Why don't you allow identation *before* the dot for generated code lines? Or alternatively allow any number of dots?</p> <p>So this:</p> <div class="code"> <pre> <code>.foo = bar; if(a == 0) .++foo; if(b == 0) .if (foo == 3) . bar = 0; if(c == 0) .++bar; end .foo = 0; end end</code> </pre></div> <p>could become this:</p> <div class="code"> <pre> <code>.foo = bar; if(a == 0) .++foo; if(b == 0) .if (foo == 3) . bar = 0; if(c == 0) .++bar; end .foo = 0; end end</code> </pre></div> <p>or this:</p> <div class="code"> <pre> <code>.foo = bar; if(a == 0) .....++foo; if(b == 0) .........if (foo == 3) ......... bar = 0; if(c == 0) .............++bar; end .........foo = 0; end end</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>