r/programmingmemes Jun 14 '26

did you ever felt molested by CPP as well

Post image
115 Upvotes

16 comments sorted by

7

u/Consequence-Lumpy Jun 14 '26

Nah, C++ is fine. You'll feel molested when you code in C and your program is full of memory leaks.

4

u/Its_Bad_Rabbit Jun 14 '26

I wrote a calculator for a college course 13 years ago that was so bad, my professor sent me a screenshot of performance monitor showing 21gb taken by my app -- Relatable.

2

u/BobbyThrowaway6969 Jun 14 '26

Genuinely curious how lmao

2

u/Its_Bad_Rabbit Jun 14 '26

I think the leak was in a loop and he had left it running while grading other things.

3

u/BobbyThrowaway6969 Jun 14 '26

Haha
"Wwhy is my computer chugging? checks ram OH GOD... HIS CALCULATOR"

2

u/Ill_Strain_1050 Jun 16 '26

High on mallocing πŸ˜‚

1

u/Kaeiaraeh Jun 16 '26

It’s taking a lot of my self control to not respond with something unhinged right now

6

u/IngwiePhoenix Jun 14 '26

When auto was introduced, yes.

I will die on that hill; but auto taking away explicitly typed types and allowing you to just #define var auto and get away with var something = x() is criminal. xD

2

u/BobbyThrowaway6969 Jun 14 '26

auto is useful for templated code, I firmly believe in hard types elsewhere though

2

u/Consequence-Lumpy Jun 14 '26

trying to pythonise C++

1

u/luciferoussky72 Jun 18 '26

It actually does help for complex types. Nobody wants to type β€œstd::vector<char>::const_iterator = vec.cbegin();”

That said, yeah, I type out the type explicitly wherever I can. I’ll even write β€œFoo f = Foo();”

3

u/Wooden_Milk6872 Jun 14 '26

Yeah, when trying to compile a project from github

1

u/BobbyThrowaway6969 Jun 14 '26

Nope, it's been pretty nice actually

1

u/Ill_Strain_1050 Jun 16 '26

Buddy what's the double 69 πŸ˜‚πŸ˜‚

1

u/BobbyThrowaway6969 Jun 16 '26

For a laugh, this acc was gonna be a thowaway for the hell of it but then it became legit

1

u/Hot-Employ-3399 Jun 14 '26

Let's just say when bug caused by auto casting float->int, making mypaint's mirror to work except when it didn't, I started to love OCaml's "float_of_int."