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.
Reminder that yeet is a keyword in rust
Is it synonymous with
eject
?
deleted by creator
Gen Z++
yeetZ++
genz be bouta millenial rn
Finally, an actual programming language. So long, Fortran.
How regular C++ feels if English isn’t your first language
Gen-X here. Is it weird that I found the Z++ version easier to read?
Millennial here, this is unironically way better, I wanna code in slang from now on.
Z++
fr, I didn’t know dat macros could be used to make nu programming languages.
is nothing but a search and replace from the preprocessor.
I’ve been burned one too many times with
which replaces the directive with the contents of the included headers file (I think that if you’re truly evil you can even include straight .c files and forgo headers entirely)
this had me deadass laughin fr fr no cap
you can use emojis in your username? that’s lit fam
fr mf be bussin
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 rn
in thetweakin
loop that is inside thebussin
loop. That way, at some pointn % i finna cap
will be false, andi
willbouta
. Which then makes the expressioni <= n
in thebussin
loop eventually false, so we stopbussin
andyeet 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 anothertweakin
andsussin
like this example of calculating prime factors in C++.Example run:
$ ./zpp.exe Enter a number larger than 1: 50 2 7 8 47
Yeah 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.
You could do this so much better than this
Let’s see what you got.
No cap.
Your move, busta
deleted by creator
Yeah…
store this gem on Codeberg instead!
no cap fr
!0;
That’s called a Domain-specific Language.