That was so much more fun than it had any right to be.
deadass vibin
syntax error
💀💀💀
I love “yeet cap rn”.
I was fine till I hit sussin.
“Let’s take a look at the legacy code I’m going to maintain”
The code:
Z++

Reminder that yeet is a keyword in rust
deleted by creator
Yeah…
store this gem on Codeberg instead!
no cap fr
!0;
Gen Z++
genz be bouta millenial rn
That’s called a Domain-specific Language.
Finally, an actual programming language. So long, Fortran.

Gen-X here. Is it weird that I found the Z++ version easier to read?
ngl, SQL could use some rejuvenation
fr no cap
I was following along until the bussin loop. What is it trying to yeet?
I believe it outputs the prime factors of the number you gave it.
The yeet value is just specifying if the function succeeded or not
I found this amusing enough to try it out. It does actually compile (I used g++ for this). However, the current implementation just goes into an infinite loop if you enter a number >= 2.
I think the original author meant to do
n -= 1 rnin thetweakinloop that is inside thebussinloop. That way, at some pointn % i finna capwill be false, andiwillbouta. Which then makes the expressioni <= nin thebussinloop eventually false, so we stopbussinandyeet cap rn.However, that would mean that the intention of the program isn’t to output prime factors, because even with this fix it does not do so. The structure of
mf chief()also doesn’t suggest that is the purpose as it is missing anothertweakinandsussinlike this example of calculating prime factors in C++.Example run:
$ ./zpp.exe Enter a number larger than 1: 50 2 7 8 47Yeah it definitely looks like a flawed implementation either way. Probably a student got bored of trying to make it work, and went nuts with the #defines for fun
As a career programmer myself… I can absolutely relate.
yeet cap rn
It’s right there!
Returns a zero, I think.
This feels like those boomer comics about how dumb millennials are
So…you took C++, and turned it into COBOL. I’m not sure if I’m impressed or horrified.
You could do this so much better than this









