r/programminghumor • • Oct 23 '26

I tried.

Post image
1.1k Upvotes

53 comments sorted by

63

u/Educational_Elk210 Oct 23 '26

I just wanted to share the humour but everyone is attacking me, I thought this a fun group but just miserable people spreading misery to others☹. I am just a beginner, I am learning C++ from "Bro code" YouTube channel. ( I gonna quit reddit just as I quit Tiktok.)

25

u/BruteCarnival Oct 23 '26

Lol devs can be a salty bunch. Don’t take it personally :) treat this like a circlejerk sub

1

u/Affectionate_Ad_8714 10d ago

Nooo pls stay here!!! We dont bite :)

164

u/soundwave_sc Oct 23 '26

Bro, just compile it, give it to her on a USB and flowers.

62

u/Educational_Elk210 Oct 23 '26

Let me write that down on my note book. This is gold, dude.

48

u/Infinite_Rub3674 Oct 23 '26

i = 1; i <= time 🥀

14

u/Educational_Elk210 Oct 23 '26

I am a beginner, is that not true or low level?

39

u/NaCl-more Oct 23 '26

typically you’d do `i=0;i<time` instead

6

u/Educational_Elk210 Oct 23 '26

Oh that why

9

u/NaCl-more Oct 23 '26

One less keystroke to write it this way ;)

5

u/Educational_Elk210 Oct 23 '26

Ok noted it, i am a beginner so i wrote to understand and read better, not for an efficiency. Thanks for the head up.

11

u/West-Pay-2941 Oct 23 '26

Not only that. The current version actually has a bug. If they pass the value 2147483647, it will enter an infinite loop because incrementing i will overflow to -2147483648. The loop condition will then never be met. Using i < time instead would fix this.

18

u/That_Anything_1291 Oct 23 '26

It's also the correct way to index through array, so there's 2 reasons

1

u/Infinite_Rub3674 Oct 23 '26

We have all been there, now you know how to do it right and there is also nothing wrong with doing it your way, since that makes it a bit less confusing, but as mentioned if you want to use a loop to iterate through an array or vector you have to start with i = 0 because the first element in an array has the index 0

12

u/Single-Virus4935 Oct 23 '26

I get it is funny but sorry is just lazy and Easy said, regardless of how often.  It doesn't acknowledge any mistake, doesn't vakidste the feeling of the other person and doesn't provide a outlook how the person wants to make sure it doesn't happen again. 

11

u/Educational_Elk210 Oct 23 '26

Yeah, it is a joke. The other person is me. I used two account.

1

u/Single-Virus4935 Oct 23 '26

I know its a joke and mist of these are fake. But I just wanted to add some wisdom bc every joke has a little truth in it.

5

u/BinaryBolias Oct 23 '26

Especially THIS ONE:

4

u/FromAndToUnknown Oct 23 '26

I get this but people using "sry" makes it even worse.

Didn't even care enough to actually write 5 letters, so shortening it to 3? Well thanks.

2

u/BinaryBolias Oct 23 '26

*me when i'm just trying to scry🔮 but misspell*

2

u/uteh555 Oct 24 '26

“I get it its funny” proceeds to be a complete buzzkill for no reason

8

u/Pizza_Secretary9621 Oct 23 '26

Give her flowers and C-hocolate

3

u/D_ATX Oct 24 '26

while (1) std::cout << "sorry ";

Edit: sorry

2

u/AdBrave2400 Oct 23 '26

Uh who doesnt just use the printf and scanf except some cases with better string handling

3

u/sdjopjfasdfoisajnva Oct 23 '26

#include <iostream>

int main() { std::cout << ''me''; }

1

u/LegMysterious1899 Oct 28 '26

where return 0; ?

1

u/StaticCoder Oct 28 '26

C++ users obviously. And I'd definitely argue that << is vastly superior to printf, as you can define arbitrary formatters and streams. Both scanf and >> should never be used outside toy examples though. Real parsing is never that easy.

2

u/Otherwise_Rain_4879 Oct 23 '26

What is wrong with the text? Is this fuckin AI?

2

u/Distinct_Lion7157 Oct 25 '26

i love python
print("sorry\n"*int(input("How many time you want me to say sorry?: ")))

2

u/dankshot35 Oct 23 '26

hilarious, i can’t stop laughing

1

u/Im2bored17 Oct 23 '26

Can tell this app wasn't vibe coded because it lacks a 10-line comment describing the function

1

u/Pinkishu Oct 23 '26

What's this? INTERCAL?

1

u/suspiciousvine Oct 23 '26

where is input validation?

1

u/CompetitionLazy9236 Oct 23 '26

Should have written it in brainf**k

1

u/a3th3rus Oct 24 '26

Inverse of Control 😂

1

u/Random_Dancer007 Oct 24 '26

Use the namespace std man, so you dont have to add std:: so often

1

u/Cool_Stress4272 8d ago

bad practise

1

u/8Erigon Oct 24 '26

You should flush the cout (or use endl) Otherwise it may not but wait for further text (not sure how it works and it may even still work) 

1

u/yuehuang Oct 25 '26

She turned you into a LLM.

1

u/DoctorSalt Oct 27 '26

I find it annoying they dont have i = 0; i < 1000; i++

2

u/shaquirrel Oct 27 '26

I find it annoying both of you used i++ and not ++i

1

u/fearfulEntity Oct 27 '26

I'll type "erm"

1

u/Interesting_Buy_3969 Oct 28 '26

at this point just std::terminate

0

u/FewEquipment9771 Oct 23 '26

I'd block a cpp user

-3

u/Ill-Education-169 Oct 23 '26

Ngl texting this is just cringy

4

u/Educational_Elk210 Oct 23 '26

There go my good day.

4

u/heesell Oct 23 '26

Just ignore it and have a good day

1

u/Antagonin Oct 25 '26

You can cause UB, if you say "fuck you" instead.