WAT / Ugliest Code

closed account (S6k9GNh0)
Post some of the dumbest looking code that is *valid* in any one language. I can't think of anything atm but I'll post some here in a bit. These are also called "WAT"s.
Last edited on
<Anything and everything written in niche languages like BF, whitespace, etc>
closed account (S6k9GNh0)
Strangely, I find whitespace elegant.
This: http://en.wikipedia.org/wiki/INTERCAL

Hello World:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DO ,1 <- #13
PLEASE DO ,1 SUB #1 <- #238
DO ,1 SUB #2 <- #108
DO ,1 SUB #3 <- #112
DO ,1 SUB #4 <- #0
DO ,1 SUB #5 <- #64
DO ,1 SUB #6 <- #194
DO ,1 SUB #7 <- #48
PLEASE DO ,1 SUB #8 <- #22
DO ,1 SUB #9 <- #248
DO ,1 SUB #10 <- #168
DO ,1 SUB #11 <- #24
DO ,1 SUB #12 <- #16
DO ,1 SUB #13 <- #162
PLEASE READ OUT ,1
PLEASE GIVE UP


Even though the language is a joke, it does work. Read the article, it's quite amusing.

Edit: On the other side of the spectrum, I found something I might enjoy reading.

Wikipedia Article: http://en.wikipedia.org/wiki/LOLCODE

Language example:
1
2
3
4
5
6
7
8
9
HAI
CAN HAS STDIO?
I HAS A VAR
IM IN YR LOOP
   UP VAR!!1
   VISIBLE VAR
   IZ VAR BIGGER THAN 10? KTHX
IM OUTTA YR LOOP
KTHXBYE


I like reading the language because it makes me laugh that it actually works.
Last edited on
Topic archived. No new replies allowed.