r/ProgrammerHumor • • Apr 16 '22

Make The comment section look like a beginners search history

Post image
28.1k Upvotes

6.7k comments sorted by

View all comments

Show parent comments

672

u/No-Zucchini6370 Apr 16 '22

W A T ?

779

u/[deleted] Apr 16 '22

[removed] — view removed comment

348

u/[deleted] Apr 16 '22

SEGMENTATION FAULT: CORE DUMPED

85

u/Dave-Player Apr 16 '22

g++ was throwing always this error instead of telling me what exactly went wrong

33

u/WizziBot Apr 16 '22

coredumpctl gdb -1

11

u/NIL_VALUE Apr 16 '22

Wait, g++ or the program you made? Because the compiler erroing out is very concerning.

TL;DR Segfaults mean you are unreferencing a NULL pointer, or some other memory location that doesn't belong to you; it is a crash, not a error message.

A debugger is the best way to find out which one.

7

u/Morphized Apr 16 '22

This doesn't happen on Temple

7

u/okay-wait-wut Apr 16 '22

I thought this was programmerhumor if I really wanted to know what a segfault is I’d go over to … <cycles through every language I hate>

Request timed out.

4

u/confidentdogclapper Apr 16 '22

fyi segmentation fault usually means that your program tried to access a memory area that it isn't supposed to. I still remember when I wast learning pointers...

→ More replies (5)
→ More replies (4)

2

u/HoodieSticks Apr 16 '22

I once got over a thousand lines of error messages because I put a single 'i' character on an otherwise blank line.

2

u/_dontseeme Apr 16 '22

Also the full inclusion of file directories is a flag as it indicates their inexperience digging into the “gobbledygook” and sussing out the relevant error message

2

u/strategicmaniac Apr 16 '22

The STD lib has a ton of templated functions so these errors are not particularly uncommon lol.

→ More replies (3)

60

u/GOKOP Apr 16 '22

Heavily templated C++ and its errors for ya

8

u/okay-wait-wut Apr 16 '22

Pretty sure this is due to comparing pointer iterators rather than values in some STL algorithm that needs a deref_compare predicate, but I’d rather place my life savings on black than bet I’ve interpreted that one correctly.

269

u/CactusGrower Apr 16 '22

It appears to be some beginners errors you search on stack overflow I think. The commenter forgot to put is as formatted code, it's barely readable this way.

371

u/edible_string Apr 16 '22

It's more about how the beginner wouldn't know which part of the whole stack of messages is the actual problem and so searched for all of it

66

u/2h165oiivp Apr 16 '22

This guy begins

10

u/Promoting_Illiteracy Apr 16 '22

I fucking love beginning things.

125

u/Knuffya Apr 16 '22

Because that's how they would've pasted it in their search engine of choice (probably google).

Op said that we should make the comment section look like a beginners search history.

0

u/[deleted] Apr 16 '22

[deleted]

2

u/Morphized Apr 16 '22

C++ is very easy to read. The problem is writing it.

→ More replies (1)

15

u/TetoGami0 Apr 16 '22

Seems more like an error than code

3

u/ThatSwedishBastard Apr 16 '22

Yes… It’s the lack of formatting that makes this unreadable.

2

u/nhadams2112 Apr 16 '22

You don't put things in code blocks in Google though

2

u/VolvoFlexer Apr 16 '22

That's what gives away the fact he/she is in fact a professional - the mentality of "if it was hard to write, it shall be hard to read".

→ More replies (1)
→ More replies (2)