Main Menu

Spaghetti

Started by cormullion, October 19, 2008, 01:24:19 AM

Previous topic - Next topic

cormullion

nl-format -mode="spaghetti"



http://unbalanced-parentheses.nfshost.com/images/spaghetti-format-mode.png">



;)



Edit: I broke all the links on my site :))

newdep

#1
Yeah !



Is that thing realy working ? ;-) nice nice..
-- (define? (Cornflakes))

DrDave

#2
Quote from: "newdep"Yeah !



Is that thing realy working ? ;-) nice nice..


Isn't it clear that the ouput was just a side effect of too much beer?
...it is better to first strive for clarity and correctness and to make programs efficient only if really needed.

\"Getting Started with Erlang\"  version 5.6.2

cormullion

#3
The beer was used, but only to keep the scripter occupied. :)



The curvature of the text is supposed to increase or decrease with the nesting of the code (so deeper lists curve faster), and the colour of the text depends on the type of element and the depth of code nesting. There's a sprinkling of randomness in the direction of the flow.