r/badcode • u/rotteegher39 • Dec 29 '22
rust My friend just started learning Programming and showed me THIS xD (It compiles) NSFW
714
Upvotes
r/badcode • u/rotteegher39 • Dec 29 '22
310
u/npafitis Dec 29 '22
One image a thousand words, most documented piece of code I've encountered in years
158
u/mteblesz Dec 29 '22
5th and 6th penis line would be moved a bit to left
37
u/Oman395 Dec 29 '22
This looks a lot more like either an experienced programmer making a joke, or a beginner programmer trying to find a way to have the strings line up in the code. I'm betting on the former, because who the hell learns rust as their first language?
48
u/DangyDanger Dec 29 '22
uhhhh, why wouldn't it compile if it's part of a string?
3
u/Live-Profit3063 Dec 29 '22
interesting but whats the language used
3
u/FrezoreR Dec 30 '22
What's bad about this code? Bad as in sexy bad?
5
u/NetherFX Dec 29 '22
what's bad about it? apart from the humor
2
u/CarpinchoNotCapibara Dec 30 '22
Who tf messures balls when messuring dick?
57
u/mistahspecs Dec 29 '22
Least sexually obsessed rust programmer
112
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 29 '22 edited Dec 29 '22
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
3
u/Cephlot Dec 29 '22
Honestly, starting with Rust is a bit ballsy
8
u/wegotpinecones Dec 29 '22
cargo fmt39
u/koenigsbier Dec 29 '22
Your friend decided to learn programming... with Rust. Yeah, right...
7
u/[deleted] Dec 29 '22
a work of art
7
u/TarkFrench Dec 29 '22
there's worse out there
8
u/T-Skittle Dec 29 '22
We will watch your career with great interest....
1
u/fnieidhfenmbvfekh Mar 24 '23
It’s upside down.
3
u/[deleted] Dec 29 '22
One of us one of us gooble gabble one of us
3
u/[deleted] Dec 30 '22
Programming noob and also a girl so I don't know much about the design but... Can't all those if statements be replaced by a case? If not, can you explain why?
7
u/ablablababla Dec 29 '22
6/10, needs to be longer and wider
2
u/BobFellatio Dec 30 '22
Fuckin dismissed, head outta here,
2
u/TheTimBrick Dec 30 '22
The crazy thing is I know exactly what this does and I have little experience with Rust
2
u/[deleted] Dec 30 '22
I don't speak rust, can someone explain what's going on here? This reminds me of my first exposure to java when I wanted to mod minecraft as a kid
2
u/Pangocciolo Dec 30 '22
Well, it could be rewritten by splitting it in two loops interleaved with hardcoded output... but who really wants to get it split?
1
u/Ceros007 Dec 29 '22
Why is "balls size" okay to print but not penis?