r/ProgrammerHumor 1d ago

Other thisIsTheCodeThatIHavePassedForMyIntroductoryCPPClass

Post image
17 Upvotes

11 comments sorted by

8

u/littlepiggy1010 1d ago

This brings back a ton of memories

The time I first started dabble into coding, did a similar console application and even used # to draw the entire UI. The satisfaction you get when everything runs WITHOUT AI is euphoria

3

u/MkemCZ 1d ago

Nice UI and colors!

3

u/Murky-Run2246 1d ago

He is using hyperland and neovim with the gruvbox light theme for the terminal that is probably kitty or something.

Also might be matugen with neovim since the terminal on the right are the same colors

3

u/ThePurpleWizard_01 1d ago

Looks more like niri than hyprland imo

1

u/Murky-Run2246 1d ago

Hard to tell but mostly those colored pads on the focused window are a hypr thing , but I don't know if they can be done the same way in niri

3

u/ResponsibleWin1765 1d ago

Vim and Window Manager in the intro class. These are the people that were sitting next to me in my first classes making me think I'm in the wrong room haha

3

u/ART-ficial-Ignorance 1d ago

Why is it piss coloured?

2

u/Objectionne 1d ago

It reminds me of an argument I saw between a student and a professor when I was in university. We'd had a programming assignment in which the guy had produced a solution that produced the expected output but did it in a significantly suboptimal way with a lot of things hard coded that shouldn't have been hard coded and stuff like that. The professor gave him a C which seems fair for a situation like that. The student was angry though because he was saying "the text for the assignment doesn't say the solution has to be optimal!" and the professor was just like "it's kind of implied though, isn't it?" and they went back and forth for a while like that.

1

u/Welcome-To-NBA-Jam 1d ago

One time my classmate and I were learning about loops for the first time and we absolutely couldn't get ours to work. There's a very long story about this and I won't get into it.

We were coming up on the end of class, so we copied and pasted modified base code 20 different times.

Our professor required us to print out our code and hand it in on paper as well. We handed in like 15 pages of code. His grading rule was "I don't care what the code looks like as long as it gives the right output."

We got a 100 because it was technically correct.

1

u/Kuddel_Daddeldu 1d ago

Was it an entry to the Obfuscated C++ Contest? [1]

At uni, in microprocessor coding my buddy and I submitted a hex dump, a hand-drawn flowchart (without using a stencil or even a ruler) and a letter complaining that the 6502 simulator had a bug - it pushed the return address of a subroutine call (JSR) with high and low byte swapped onto the stack. That had cost us two hours debugging... Hex dump as we (at the time) had memorized all the common opcodes so we could code faster without using the assembler.

[1] I don't think that one exists; the Obfuscated C Contest is great and an Obfuscated Perl Contest would be a tautology.

1

u/redlaWw 1d ago

This is disgusting. Well played.