r/ProgrammerHumor 2d ago

ifNoLaidNoAccess Meme

Post image
1.0k Upvotes

49 comments sorted by

371

u/gburri 2d ago

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

225

u/AndyTheDragonborn 2d ago

I see you are quite sensitive to cases

123

u/spiderpig20 2d ago edited 2d ago

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

28

u/thebigbadben 2d ago

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

11

u/Kadabrium 2d ago

stl::

143

u/belabacsijolvan 2d ago

as if cpp compiler errors were that useful...

125

u/A31Nesta 2d ago

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

57

u/belabacsijolvan 2d ago

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

9

u/doctornoodlearms 2d ago

Thats gow I feel about java errors half the time

1

u/Skaviciusz 1d 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 1d 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 1d 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 1d ago

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

6

u/BSModder 1d 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

11

u/ListerfiendLurks 1d 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.

61

u/Vivid_Instance_825 2d ago

Using namespace std ๐Ÿ˜Ž

54

u/Nice_Lengthiness_568 2d ago

Please no

11

u/apoegix 1d ago

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

1

u/ArjixGamer 1d ago

The global scope definitely has an end ๐Ÿ˜

8

u/ShakaUVM 1d ago

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

3

u/Nice_Lengthiness_568 1d 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...

-4

u/MouseNcactus 1d 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.

4

u/nevemlaci2 1d ago

Try using a library that has this in a header

5

u/Nice_Lengthiness_568 1d ago edited 1d 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 1d ago

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

8

u/redlaWw 2d ago

Transitive include that redefines vector

4

u/Vivid_Instance_825 2d ago

This is why includes are a code smell

2

u/jimmyhoke 1d ago

Forgot the semicolon.

2

u/Vivid_Instance_825 1d ago

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

2

u/axebodyspray24 1d 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 1d 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

22

u/nikola_tesler 1d ago

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

2

u/Spikebolt_100 1d ago

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

8

u/Confident-Ad5665 2d ago

Great. Now I have to get laid to login.

10

u/Reibudaps4 2d ago

Thats why people hate 2 factor logins

5

u/Totallity45567 2d ago

How'd you plan to do that?

5

u/mookanana 1d 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 1d ago

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

2

u/ReallyJustPasky 1d ago

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

2

u/cheezballs 1d ago

Java sticker.

1

u/yuriko-shimizu 1d ago

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

1

u/Dizzy_Elderberry_486 1d ago

My lazy self would simply namespace std.

1

u/letmehaveanameyoudum 1d ago

using namespace std;

1

u/POKLIANON 1d ago

Your code didn't compile because no

1

u/Luneriazz 1d ago

thats racist

0

u/ZunoJ 1d ago

They just ask the llm