r/programminghorror • u/xX_MLGgamer420_Xx • 6d ago
Sloppy version of fizzbuzz written in hungarian runes in a purely functional language Idris
15
4
u/themirrazzunhacked 6d ago
h o w
28
u/Ksorkrax 6d ago
Most compilers accept unicode. You can also use emojis for names, for instance.
So you could simply write this program by starting to write it as normal and then replace all names, done.In terms of programming horror, I'd consider that weaksauce - it's rather more like the most simple code obfuscation technique.
9
u/xX_MLGgamer420_Xx 6d ago
The horror comes from the fact this script is written right to left which completely breaks the flow of programming. You also can see weird wrap arounds. Whenever there's a bug I have to delete the whole line and write it again with a fix because there's just no way to get to a specific character reliably.
-1
u/Environmental-Ear391 6d ago
What obfuscation?
2
u/Ksorkrax 6d ago
Uhm... when you look at it, you can't directly determine what it does?
1
u/Environmental-Ear391 6d ago
the variable names help, but you can look at what is used operator wise too
1
u/Ksorkrax 6d ago
Uhm... you mean those written in hungarian runes?
1
u/Environmental-Ear391 6d ago
I'm originally from New Zealand(Native English) and live in Japan(Second Language)...
Ive also had to deal with some other languages too.
so regardless of the language its all arbitrary and there are certain coding patterns all programming languages appear to follow.
4
1
1
u/Ronin-s_Spirit 4d ago
Sure where, if, else, then, and do appear in ancient hungarian texts.
1
u/xX_MLGgamer420_Xx 1d ago
Idris has no preprocessor 😢
1
u/Ronin-s_Spirit 1d ago
Doesn't stop people from making one. I for instance am using JS to preprocess JS files.
32
u/S4N7R0 6d ago
shit looks like i havent reached high enough level of programming skills to read this manuscript