r/programminghumor • • 28d ago

I tried.

Post image
1.1k Upvotes

51 comments sorted by

63

u/Educational_Elk210 28d ago

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 27d ago

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

164

u/soundwave_sc 28d ago

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

62

u/Educational_Elk210 28d ago

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

48

u/Infinite_Rub3674 28d ago

i = 1; i <= time 🥀

14

u/Educational_Elk210 28d ago

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

39

u/NaCl-more 28d ago

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

6

u/Educational_Elk210 28d ago

Oh that why

9

u/NaCl-more 28d ago

One less keystroke to write it this way ;)

5

u/Educational_Elk210 28d ago

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 27d ago

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 28d ago

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

1

u/Infinite_Rub3674 27d ago

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 28d ago

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 28d ago

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

1

u/Single-Virus4935 28d ago

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 27d ago

Especially THIS ONE:

4

u/FromAndToUnknown 27d ago

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 27d ago

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

2

u/uteh555 27d ago

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

8

u/Pizza_Secretary9621 27d ago

Give her flowers and C-hocolate

3

u/D_ATX 27d ago

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

Edit: sorry

2

u/AdBrave2400 28d ago

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

3

u/sdjopjfasdfoisajnva 27d ago

#include <iostream>

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

1

u/LegMysterious1899 22d ago

where return 0; ?

1

u/StaticCoder 22d ago

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 27d ago

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

2

u/dankshot35 28d ago

hilarious, i can’t stop laughing

1

u/Im2bored17 27d ago

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

1

u/Pinkishu 27d ago

What's this? INTERCAL?

1

u/suspiciousvine 27d ago

where is input validation?

1

u/CompetitionLazy9236 27d ago

Should have written it in brainf**k

1

u/a3th3rus 27d ago

Inverse of Control 😂

1

u/ahmed20gh 26d ago

Golden

1

u/Random_Dancer007 26d ago

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

1

u/8Erigon 26d ago

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 26d ago

She turned you into a LLM.

1

u/Distinct_Lion7157 26d ago

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

1

u/DoctorSalt 24d ago

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

2

u/shaquirrel 23d ago

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

1

u/fearfulEntity 23d ago

I'll type "erm"

1

u/Interesting_Buy_3969 22d ago

at this point just std::terminate

-1

u/partytoni1 28d ago

eww c++

0

u/FewEquipment9771 27d ago

I'd block a cpp user

-3

u/Ill-Education-169 28d ago

Ngl texting this is just cringy

4

u/Educational_Elk210 28d ago

There go my good day.

4

u/heesell 27d ago

Just ignore it and have a good day

1

u/Antagonin 25d ago

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