My "hello world" was going to be a fizzbuzz. I like it because it nicely illustrates the basics of a language - variables, operators, looping, conditionals, and the likes.
As far as naming goes, the specification allows for a wide variety, so I decided to go
PascalCase all the way, so as to ease up the reading a bit - otherwise the language is a bit harsh on the eyes, to say the least.
I'm curious about how idiomatic my code is - this is my very first
and probably last lolcode program. Did I overlook language constructs that would help readability? How's naming? Indentation? Any issues?
HAI 1.2 I HAS A Fizz ITZ 3 I HAS A Buzz ITZ 5 IM IN YR FrootLoopz UPPIN YR Frootz TIL BOTH SAEM Frootz AN 100 BTW Frootz runs 0 through 99 I HAS A Froot ITZ SUM OF Frootz AN 1 BTW Froot will run 1 through 100 BOTH SAEM 0 AN MOD OF Froot AN PRODUKT OF Fizz AN Buzz O RLY? YA RLY Froot R "FizzBuzz" NO WAI BOTH SAEM 0 AN MOD OF Froot AN Fizz O RLY? YA RLY Froot R "Fizz" NO WAI BOTH SAEM 0 AN MOD OF Froot AN Buzz O RLY? YA RLY Froot R "Buzz" OIC OIC OIC VISIBLE Froot IM OUTTA YR FrootLoopz VISIBLE "DOWN WITH FIZZBUZZ LOL" KTHXBYE