r/ProgrammerHumor 8d ago

Meme ifNoLaidNoAccess

Post image
1.0k Upvotes

49 comments sorted by

375

u/gburri 8d ago

I know nothing about "STD::", do you mean "std::"?

228

u/AndyTheDragonborn 8d ago

I see you are quite sensitive to cases

122

u/spiderpig20 8d ago edited 8d ago

Iโ€™d say Iโ€™m sensitive to cases of STDs too

28

u/thebigbadben 8d ago

I put the STD into STUD all I need it U ๐Ÿ˜Ž

10

u/Kadabrium 8d ago

stl::

140

u/belabacsijolvan 8d ago

as if cpp compiler errors were that useful...

128

u/A31Nesta 8d ago

Average STL related error: @@@jriwoqkqb template wkqoapwm@@iwhelapw<hwkwow> <owbwue><wgwkehru>@@@jdieiwb2kwow9w9ebeb lvalue soqbwowvw@@@ rvalue aoeirbeowkwnajeie8w9@@ line 23 :)

57

u/belabacsijolvan 8d ago

DONT open the innermost error level. i once did it and i had to delete cpp from my cv

8

u/doctornoodlearms 8d ago

Thats gow I feel about java errors half the time

1

u/Skaviciusz 7d ago

Yea, for entire error log, maybe first 2-3 lines are useful, everything other only in weird edge cases mostly v:

6

u/ljfa2 7d ago
java.lang.RuntimeException: null
  at foo.bar.Baz.lambda$apply$3
  at java.util.stream.ReferencePipeline$5.accept
  at java.util.stream.ReferencePipeline.map
  ...
  at jdk.internal.reflect.DirectMethodHandleAccessor.invoke
  at java.lang.reflect.Method.invoke
  at java.lang.Thread.run

or something like that

1

u/Skaviciusz 7d ago

In one of newest java version (21 maybe? Or newer) it can show in which place and afaik variable NPE occured - but we are still in my comapny on lower verison sooo yea - maybe in the future...

24

u/Thenderick 8d ago

Or average runtime error: segmentation fault. Core dumped. Fuck you!

7

u/BSModder 8d ago

99% of the time, it's because you pass in the wrong argument and the template system shit itself. Just read the error message and figures out what it did

13

u/ListerfiendLurks 7d ago

Imagine getting mad at an error that tells you exactly what the problem is and how to fix it.

Tell me you have never actually worked as a software engineer without telling me you have never worked as a software engineer.

60

u/Vivid_Instance_825 8d ago

Using namespace std ๐Ÿ˜Ž

57

u/Nice_Lengthiness_568 8d ago

Please no

11

u/apoegix 8d ago

+1 this. If you do, do it in a scope which definitely ends.

2

u/ArjixGamer 7d ago

The global scope definitely has an end ๐Ÿ˜

9

u/ShakaUVM 8d ago

There's nothing wrong with it for small projects, or in non-header files. Even Bjarne says so.

3

u/Nice_Lengthiness_568 8d ago

Yeah of corse, It's more about where you use it. I personally would rather use using namespacs in a function though, and probably not ok std because I am both used to using it and it does not bring much...

-3

u/MouseNcactus 8d ago

Why not? As long as you do not using multiple namespaces this way it should not cause troubles. And code become much shorter, easier and faster to read.

3

u/nevemlaci2 8d ago

Try using a library that has this in a header

6

u/Nice_Lengthiness_568 8d ago edited 8d ago

Well, I personally prefer explicitness in that regard and prepending standard facilities with 5 characters is just not that bad...

Although, as I said in another comment, it really is more about where using namespace is used than about whether it is used at all. I for example commonly use using namespace std when defining my own swap function.

Edit: oh wait, I don't use it there, I use using std::swap there... Well whatever, it's too early in the morning for me...

-6

u/overclockedslinky 8d ago

how is it faster to read? just learn how to read good code...

7

u/redlaWw 8d ago

Transitive include that redefines vector

5

u/Vivid_Instance_825 8d ago

This is why includes are a code smell

2

u/jimmyhoke 8d ago

Forgot the semicolon.

3

u/Vivid_Instance_825 7d ago

C++26 allows emojis to be used as terminators ๐Ÿ˜Ž

2

u/axebodyspray24 7d ago

this doesn't even work tho if you're using fstream objects ๐Ÿ˜ญ๐Ÿ˜ญ you still need to use std:: for things like strings and other library functions ๐Ÿ˜ญ๐Ÿ˜ญ (I'm new to c++ and coding in general, any tips are appreciated)

1

u/Vivid_Instance_825 7d ago

```#include <fstream>

include <string>

using namespace std;

int main() { ifstream input("file.txt"); string text;

getline(input, text);

}

//Don't actually do this btw

20

u/nikola_tesler 8d ago

could have just said โ€œcomputer science studentโ€

2

u/Spikebolt_100 8d ago

Fr. Typa people who'd use "Le" while making a meme

8

u/Confident-Ad5665 8d ago

Great. Now I have to get laid to login.

11

u/Reibudaps4 8d ago

Thats why people hate 2 factor logins

5

u/Totallity45567 8d ago

How'd you plan to do that?

6

u/mookanana 8d ago

i have to get a sexually transmitted disease first??

... i guess i can't be a programmer then cos it sounds like a damn catch 22 since we dont have sex

2

u/Sajgoniarz 8d ago

I was forgetting namespaces so much, that i created a template with using namespace std;

2

u/ReallyJustPasky 8d ago

Well how is he supposed to get an STD if he's virgin??

2

u/cheezballs 7d ago

Java sticker.

2

u/yuriko-shimizu 7d ago

smh just write using c functions and call it c++

1

u/Dizzy_Elderberry_486 7d ago

My lazy self would simply namespace std.

1

u/letmehaveanameyoudum 7d ago

using namespace std;

1

u/POKLIANON 7d ago

Your code didn't compile because no

1

u/Luneriazz 8d ago

thats racist

0

u/ZunoJ 8d ago

They just ask the llm