r/firstweekcoderhumour • • 14d ago

meme

Post image
226 Upvotes

46 comments sorted by

100

u/erthyacheck 14d ago

this one is first day coder humor

36

u/AOAqua 14d ago

That ain't even the first day That's like a person who only heard about programming

-25

u/LegMysterious1899 14d ago • Regret

dang it's just a meme, it ain't that deep

22

u/ButterscotchThat3119 14d ago

do u like, know what this sub is about

-7

u/LegMysterious1899 14d ago

first week coding humour? i mean there is nothing wrong with my post?

10

u/AOAqua 14d ago

It ain't that deep If you get triggered by comments - delete social networks

→ More replies (13)

2

u/erthyacheck 14d ago

it's a little bit extreme but it's okay

1

u/LegMysterious1899 14d ago

bro i declared a variable, i am cool 😎. 99% of world population is not able to do this

25

u/fedsmoker9 14d ago

A 12 year old Indian made this post

1

u/LegMysterious1899 14d ago

i don't think a 12 y/o indian would learn cpp

9

u/potato-master369 14d ago

really? I thought C++ is what they teach children because they can't do assembly? /j

Edit: add the /j

1

u/Good_Doctor_150 14d ago

You know that if you edit fast enough it doesn't show as edited. So you don't need to say "Edit:"

For exemple this part was added with an edit.

2

u/potato-master369 13d ago

Apologies, I do it as a courtesy since I feel it would be nice for people to know what the edit was.

3

u/YungSkeltal 14d ago

this is outdated cpp anyways

40

u/GardenerAether 14d ago

this one is radioactive holy shit

18

u/violetvoid513 14d ago

const bool? Wtf, is this person a yandere or something?

11

u/AngryChaoticBoi 14d ago

and a misleading 'i' prefix that is typically used for (i)nteger types but used for boolean here

11

u/Scared_Accident9138 πŸ•΅οΈβ€β™‚οΈπŸš¨ BS Detector | Truth Teller πŸ—―οΈπŸ”₯ 14d ago

I've never seen a programmer with experience try to use a programming language to write a message quite 1:1 to natural language, but for some reason others keep doing it from time to time

0

u/[deleted] 14d ago

[deleted]

4

u/Scared_Accident9138 πŸ•΅οΈβ€β™‚οΈπŸš¨ BS Detector | Truth Teller πŸ—―οΈπŸ”₯ 14d ago

I mean forcing natural language into it, like in the post and that doesn't actually do anything

8

u/B_bI_L 14d ago
const me = new Human();
const you = new Human();
const rel = me.createRelation(you);
rel.set('love', true);

8

u/ilnarildarovuch 14d ago

Segmentation Fault (core dumped)

4

u/PresentJournalist805 14d ago

Compiler error: Unused variable. :(

2

u/originalmicrousb 14d ago

i died after reading thisΒ 

2

u/EagleEyeA2HX 14d ago

Why is it a constant? That seems like a heavy undertaking... Jensen Huang seems to use a variable for this.

1

u/andunai 12d ago

Trying to fill the volatile void*

2

u/akoOfIxtall 14d ago

Damn, const bool, that's how you know they're for real

1

u/confused-photon 14d ago

But the variable isnt an integer, hungarian notation naming is pain

1

u/_katarin 13d ago

but const doesn't make it immutable? ie if you get a pointer to it

1

u/Maqi-X 13d ago

It does make it immutable, if you take a pointer to it you get const bool* so still immutable

1

u/TheChief275 12d ago

You would think so, but the compiler isn't allowed to reason like that about a non-static const because the code might be loaded as a library and imported as an extern bool, or a const_cast casting the const away

1

u/Maqi-X 12d ago

Using extern bool for a variable defined as const bool is undefined behavior, it should be extern const bool. Const casting to bool* is I guess valid but when you try to actually modify the value through the pointer it's undefined behavior too.

1

u/TheChief275 12d ago

My void * taking function begs to differ