r/AskProgramming • u/Imagine-Dragons-fan • 32m ago
Lets say that theoretically professor asks to write a program in ANY programming language. What is the best way to make him regret giving the opportunity to write it in ANY programming language? Asking for a friend
Give ideas that would make even devil cry
4
Upvotes
2
u/Flamme2 28m ago
MGIFOS
7
u/obdevel 27m ago
https://en.wikipedia.org/wiki/Brainfuck
3
u/shagieIsMe 17m ago
This really depends on the task.
If it's IO heavy, then you're going to be writing it in a more capable language. If it ends up as "write this and it outputs a single number"... then you're deep in esolang territory.
https://esolangs.org/wiki/Main_Page
Anything from there would be good. Piet ( https://esolangs.org/wiki/Piet ) would probably be one of the most "WTF?" ones as it would be difficult to understand.
Befunge is a favorite of mine.
Rail might be useful and doable. https://esolangs.org/wiki/Rail
INTERCAL is the classic awful language.
MUMPS is a real language that people regret using (it has no keywords and crazy shortcuts ...
IF IF=THEN DO THENis valid, and is equivalent toI I=T D T). https://en.wikipedia.org/wiki/MUMPSOne of the things that I don't suggest is a language where you write it in one language and then transpile it to another language since that takes no real skill.
2
u/lyubomir-bozhinov 20m ago
Someone's already said Brainfuck, but there are other choices in increasing levels of unreadability: Haskell --> Perl --> Whitespace
Build your own ladder of evil. ;D
2
u/regular_hammock 20m ago
You could use one of the esoteric programming languages such as Unlambda, Intercal, Piet or Shakespeare.
As far as mainstreamish programming languages go, I find that in stack based programming languages such as Forth or RPL, it's fairly easy to write code that works and is a total pain to read later. Bonus exotica points for using colorForth.
•
u/DefEddie 5m ago
This sounds like one of those “gotcha” assignments where everybody tries to stump the teacher only to find out that the real test is gonna be disassembling and grading/commenting each others assignments.
1
u/Yctallua 17m ago
I'd like to throw in malbolge, but you will suffer as much as your prof
•
u/ummaycoc 6m ago
K is a real world programming language (I worked at a K shop for a bit) that isn't easy for those unfamiliar with these sort of incantations.
•
u/AntiX1984 6m ago
I see a bunch for just really hard languages, but I think this one would just be hilarious! Rockstar
•
u/Business-Decision719 5m ago
Whitespace.
•
u/Scared-Letterhead949 9m ago
Why would you want to make them regret it? You think this is the first time they've ever heard about brain fuck?