Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14

Thread: Code poetry

  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Code poetry

    So does anyone know what code poetry is or got any opinons on "how technologists, creativity and abstract thought go together??"


    got it as a topic to discuss so i said i throw it out there and get ppls views!!!

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts

  • #3
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know if this qualifies, but it's interesting nonetheless:
    Coding Famous Quotes

    shmoove

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Anyone here heard of a language called INTERCAL? That's poetry!
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by liorean
    Anyone here heard of a language called INTERCAL? That's poetry!
    Heard of it... but got no idea what it's like...

  • #6
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    It's basically BASIC with inverted causality. Look at <http://www.catb.org/~esr/intercal/> and <http://www.muppetlabs.com/~breadbox/intercal-man/>

    One have to love constructs such as COME FROM, ABSTAIN, FORGET, GIVE UP, DON'T, that you can specify a qualifier for how likely a statement is to actually be executed, the requirement from many compilers that you are polite (use PLEASE sufficiently often, but not TOO often)

    Look at this sample stolen from the C-Intercal manual, for instance:
    Code:
            DO (5) NEXT
        (5) DO FORGET #1
            PLEASE WRITE IN :1
            DO .1 <- '?":1~'#32768$#0'"$#1'~#3
            DO (1) NEXT
            DO :1 <- "'?":1~'#65535$#0'"$#65535'
                    ~'#0$#65535'"$"'?":1~'#0$#65535'"
                    $#65535'~'#0$#65535'"
            DO :2 <- #1
            PLEASE DO (4) NEXT
        (4) DO FORGET #1
            DO .1 <- "?':1~:2'$#1"~#3
            DO :1 <- "'?":1~'#65535$#0'"$":2~'#65535
                    $#0'"'~'#0$#65535'"$"'?":1~'#0
                    $#65535'"$":2~'#0$#65535'"'~'#0$#65535'"
            DO (1) NEXT
            DO :2 <- ":2~'#0$#65535'"
                    $"'":2~'#65535$#0'"$#0'~'#32767$#1'"
            DO (4) NEXT
        (2) DO RESUME .1
        (1) PLEASE DO (2) NEXT
            PLEASE FORGET #1
            DO READ OUT :1
            PLEASE DO .1 <- '?"':1~:1'~#1"$#1'~#3
            DO (3) NEXT
            PLEASE DO (5) NEXT
        (3) DO (2) NEXT
            PLEASE GIVE UP
    Last edited by liorean; 08-24-2004 at 10:59 PM.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #7
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    You just have to love that...

  • #8
    Regular Coder
    Join Date
    May 2005
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    function kiss(her){
    	try{
    		throw her();}
    	catch(her){
    		return her instanceof Error ? false : true;}}

    a dysfunctional relationship...
    Last edited by enumerator; 05-29-2005 at 08:13 AM. Reason: version 1.0
    Thanks in advance!

  • #9
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #10
    Regular Coder
    Join Date
    Jan 2005
    Location
    Essex
    Posts
    146
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Loving that.
    Danny Hayes
    Under Construction www.hayes-design.co.uk

  • #11
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    .....or you could throw her into an infiniate loop

  • #12
    Regular Coder
    Join Date
    May 2005
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh yeah...
    Code:
    	finally{
    		kiss(her);}}
    Last edited by enumerator; 05-29-2005 at 11:55 PM. Reason: if(her.propertyIsEnumerable("input")) createPopup(ActiveXObject) else new Date;
    Thanks in advance!

  • #13
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Beautiful !

  • #14
    Banned
    Join Date
    Jul 2009
    Posts
    52
    Thanks
    10
    Thanked 4 Times in 4 Posts
    heart.pl...
    Code:
    open (hers,"<first");
    bind myheartto,hers;
    while (my $oul=<hers>){
      if ($oul eq true){
      close (hers); last;
      }
    }
    (i've never used bind before, i just know that whatever it does there doesn't throw up an error... although i know a lot of people who would throw up at my poetry)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •