www.webdeveloper.com
Results 1 to 1 of 1

Thread: The most ______ you have ever encountered in a computer language.

  1. #1
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,742

    The most ______ you have ever encountered in a computer language.

    I thought I'd start a little conversation about various programming languages we have used and mention some extremes associated with them. I'll start off with mine:

    Language: DragonSpeak
    Extreme: Slowest-running Loop

    Language: DragonSpeak
    Extreme: Most coding for a loop.

    Speed: One iteration per second. That's not a typo, not a missed word, but how you do loops in DragonSpeak.

    Code:
    (0:3) When somebody moves into object type #66,
       (1:194) and timer #1 is not still counting down,
                (5:300) set variable #%Count to the value #0.
                (5:50) set countdown timer #1 to go off in #1 seconds.
                (5:41) place object type #497 at (#12,13).
    (0:50) When countdown timer #1 goes off,
       (1:202) and variable #%Count is less than #10,
                (5:50) set countdown timer #1 to go off in #1 seconds.
                (5:302) take variable #%Count and add #1 to it.
                (5:301) copy the value of variable #%Count into variable #%ShowObject.
                (5:302) take variable #%ShowObject and add #497 to it.
                (5:41) place object type #%ShowObject at (#12,13).
    Strip out the the unnecessary text (which basically describes what the line does) and you get:

    Code:
    (0:3) 66
       (1:194) 1
                (5:300) %Count 0
                (5:50) 1 1
                (5:41) 497 12 13
    (0:50) 1
       (1:202) %Count 10
                (5:50) 1 1
                (5:302) %Count 1
                (5:301) %Count %ShowObject
                (5:302) %ShowObject 497
          (3:2) 12 13
                (5:41) %ShowObject 12 13
    Object type #66 is the post in the picture, and the %ShowObject numbers display the numbers in yellow triangle, which are objects type 497 - 507. The basic loop code (subtracting the lines that display the numbers) takes up eight lines.
    Attached Images Attached Images
    Last edited by Mr Initial Man; 12-21-2012 at 05:17 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles