The world is coming to an end.

This is a discussion on The world is coming to an end. within the A Brief History of Cprogramming.com forums, part of the Community Boards category; http://lolcode.com/ The scary thing is that there's even a working compiler for this....

  1. #1
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    435

    The world is coming to an end.

    http://lolcode.com/

    The scary thing is that there's even a working compiler for this.

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    took me 30 seconds to spot the first bug in one of their examples

    Code:
    HAI
    CAN HAS STDIO?
    I HAS A VAR
    GIMMEH VAR
    IZ VAR BIGGER THAN 10?
        YARLY
            BTW this is true
            VISIBLE "BIG NUMBER!"
        NOWAI
            BTW this is false
            VISIBLE "LITTLE NUMBER!"
        KTHX
    KTHXBYE
    is either a bug that would print both big number and littel number in teh case of a buig number, or else they are not specifying that a new case implies KTHX for the previous case.

    so the code shoudl be
    Code:
    HAI
    CAN HAS STDIO?
    I HAS A VAR
    GIMMEH VAR
    IZ VAR BIGGER THAN 10?
        YARLY
            BTW this is true
            VISIBLE "BIG NUMBER!"
        KTHX
        NOWAI
            BTW this is false
            VISIBLE "LITTLE NUMBER!"
        KTHX
    KTHXBYE
    yay I just picked up a new language LOLXORZIHAVEALAZERGUNPEWPEW
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,678
    shame shame shame
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  4. #4
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,678
    Actually, I think someone already mentioned this a while ago.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  5. #5
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by abachler View Post
    took me 30 seconds to spot the first bug in one of their examples

    [...]

    is either a bug that would print both big number and littel number in teh case of a buig number, or else they are not specifying that a new case implies KTHX for the previous case.
    What are you talking about? It's the equivalent of an if-else statement, not a switch.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #6
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    The fact that there's a lolcode for dummies enhances the viciousness of circle.

  7. #7
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,074
    I don't like that N is an operator. I frequently use it as a looping variable, myself.
    Sent from my iPad®

  8. #8
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,751
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  9. #9
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Actually, I think someone already mentioned this a while ago.
    Doubtful . . . the only two threads that turn up when you search the boards for "lolcode" are this current one and this one: noob, ned hlp

    Although it's not about the programming language lolcode, it's still rather amusing.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  10. #10
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    That has to be the dumbest language I've seen. I almost like VB more than lolcode.

  11. #11
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,751
    At least the Shakespeare language as got some style about it
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  12. #12
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Now cats can program.

  13. #13
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Quote Originally Posted by indigo0086
    Now cats can program.
    As well as dogs, and the occasional hampster.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  14. #14
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    >hampster
    hamster.

    Not to mention ants! Teamwork all the way!
    Give me enough ants, and I can program that computer!
    http://thinkexist.com/quotation/give...on/220792.html
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  15. #15
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by Sang-drax View Post
    What are you talking about? It's the equivalent of an if-else statement, not a switch.
    Then perhaps its a deficiency in the specification, becasue there is no terminator for the YARLY(TRUE) condition. In C this is explicitly done by both the endign bracket } and the subsequent else keyword. As I said, the NOWAI keyword may in fact be used as the terminator, but this behavior is not specified.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help! Placement of nodes in a Linked List
    By lostmyshadow in forum C Programming
    Replies: 6
    Last Post: 12-17-2007, 01:21 PM
  2. The 7 New Wonders of the World
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 36
    Last Post: 12-08-2006, 01:55 PM
  3. singly linked to doubly linked
    By jsbeckton in forum C Programming
    Replies: 10
    Last Post: 11-06-2005, 07:47 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  5. Religious Bull****
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 119
    Last Post: 10-23-2001, 08:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21