Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Dark Hunter on October 26, 2007, 03:24:28 pm

Title: This is the most awesome programming language...
Post by: Dark Hunter on October 26, 2007, 03:24:28 pm
I'm sure what with so many of this forum's people being coders, some of you have heard of this, but my professor just showed it to us in my CS lecture, and it was too funny not to share:

LOLCode.  :lol:

Code: [Select]
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

Actual programming language, the above code compares a variable to the number 10 and if it's larger, says "big number", smaller, says "little number".

This had the entire class roaring with laughter for nearly five minutes straight (the code he showed us was longer and had more weird things in it, such as "IM IN UR LOOPZ" to start a loop).

Anyway, just thought I'd share for laughs.  :D
Title: Re: This is the most awesome programming language...
Post by: BengalTiger on October 26, 2007, 04:00:39 pm
Looks like this guy invented it:

(http://globalnerdy.com/wp-content/uploads/2007/05/i-can-has-programming-language.jpg)
Title: Re: This is the most awesome programming language...
Post by: Turey on October 26, 2007, 04:11:08 pm
I am actively involved in the LOLCODE community.  I'm helping develop the language.
Title: Re: This is the most awesome programming language...
Post by: Goober5000 on October 26, 2007, 08:41:18 pm
:wakka:
Title: Re: This is the most awesome programming language...
Post by: Turey on October 26, 2007, 09:43:58 pm
http://lolcode.com/ is the website where we're working on the language. Anyone wanting to help can drop in and offer up some suggestions.
Title: Re: This is the most awesome programming language...
Post by: JGZinv on October 26, 2007, 11:03:46 pm
Do I dare ask if this is the self same language being worked into
FS2 to provide new features?

SRY

FOTT EM MOWTH DWISODR

KTHXBYE
Title: Re: This is the most awesome programming language...
Post by: Turey on October 26, 2007, 11:10:05 pm
Do I dare ask if this is the self same language being worked into
FS2 to provide new features?

SRY

FOTT EM MOWTH DWISODR

KTHXBYE

Of course. It's replacing Lua as the scripting language of choice.  :p

BTW, here's my prime factoring program:
Code: [Select]
BTW LolCode Implementation of a program I had to write for my Java class, a long time ago.
BTW LolCode Spec 1.2, with GOIN UP/DOWN as laid out here: http://forum.lolcode.com/viewtopic.php?pid=2406#p2406
BTW There might be some syntax/usage/logic errors around, but that's to be expected in a language that's still forming and doesn't have a standard compiler.
HAI
    BTW Define some useful functions
    HOW DUZ I SGN YR SPEECHINGS
        GOIN DOWN 0 AN SPEECHINGS MKAY
        O RLY?
            YA RLY
                FOUND YR -1
            NO WAI
                FOUND YR 1
        OIC
    IF U SAY SO
    HOW DUZ I ABS YR SPEECHINGS
        FOUND YR PRODUKT OF SPEECHINGS AN SGN SPEECHINGS
    IF U SAY SO
   
    I HAS A WHATUSAY
    I HAS A factor1 ITZ 1
    I HAS A factor2 ITZ 0
    I HAS A numOfFactors ITZ 0
    VISIBLE "Input a number to be factored."
    GIMME WHATUSAY
    WHATUSAY IS NOW A NUMBR
    VISIBLE "Factors of " AN WHATUSAY AN ":"
    IM IN YR loop
        GOIN UP ABS WHATUSAY AN PRODUKT OF factor1 AN factor1 MKAY
        O RLY?
            YA RLY
                GTFO
        OIC
       
        BOTH SAEM 0 AN MOD OF WHATUSAY AN factor1
        O RLY?
            YA RLY
                factor2 R QUOSHUNT OF WHATUSAY AN factor1
                numOfFactors R SUM OF numOfFactors AN 1
                VISIBLE "[" AN factor1 AN "," AN factor2 AN "]"
                VISIBLE "[" AN PRODUKT OF factor1 AN -1 AN "," AN PRODUKT OF factor2 AN -1 AN "]"
        OIC
        factor1 R SUM OF factor1 AN 1
    IM OUTTA YR loop
    BOTH SAEM 1 AN numOfFactors
    O RLY?
        YA RLY
            VISIBLE "Note: This number is a prime number."
    OIC
KTHXBYE
Title: Re: This is the most awesome programming language...
Post by: achtung on October 27, 2007, 01:05:11 am
No one ever credits the right people for the memes they uses.
Title: Re: This is the most awesome programming language...
Post by: Excalibur on November 01, 2007, 10:31:27 pm
When people is not understand,

change mind to:

they still don't understand... I don't know the slightest thing about programming, and when is above = more gibberish