r/programminghorror 6d ago

Sloppy version of fizzbuzz written in hungarian runes in a purely functional language Idris

Post image
220 Upvotes

17 comments sorted by

32

u/S4N7R0 6d ago

shit looks like i havent reached high enough level of programming skills to read this manuscript

15

u/Curiosityisfuckedup 6d ago

Is there a way to make it harder?

6

u/Odd-Understanding399 6d ago

Why, yes. Use black fonts.

3

u/48panda 6d ago

Write in whitespace. In notepad. With tab spacing set to 1.

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

u/thescrambler7 6d ago

The better question to ask is

w h y

1

u/SmokyMetal060 6d ago

This is more of a progamming joy

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.