Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

J. Landman Gay jacque at hyperactivesw.com
Thu Dec 11 23:07:35 EST 2008


Brian Yennie wrote:
> If you want ugly code in Rev, the key is to do things in a horrible, 
> obtuse and irrational fashion. Smoke and mirrors, my friends!
> (nope, haven't tested this but it looks right to me =))
> 
> on foo
>  put item -5 of "fox,cat,dog,horse" into t
>  put 0*pi*100 into x
>  repeat while (x < (256 - charToNum(space)))
>      put empty into l
>      put numToChar(x+32) after l
>      put numToChar(32) before l
>      put (x+32) before l
>      put l into line (x+1) of t
>      put x + 1 into x
>  end repeat
>  replace space with "   "&space&space&space&"   " in t
>  sort lines of t numeric by word 1 of each
>  put line 1 to -1 of (t&cr)
> end foo

You should omit the line: put x + 1 into x

Then wait to see what happens.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list