this post was submitted on 02 Dec 2024
340 points (99.4% liked)

Programmer Humor

19817 readers
930 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 9 comments
sorted by: hot top controversial new old
[–] corroded 31 points 3 weeks ago (4 children)

C++ compiler errors still won't fit on either screen.

[–] [email protected] 6 points 3 weeks ago

Ah, a fellow template enjoyer!

[–] [email protected] 6 points 3 weeks ago

Nah, g++ is actually pretty sane imho.

[–] alper_celik 3 points 3 weeks ago

Especially the template errors

[–] raldone01 3 points 3 weeks ago* (last edited 3 weeks ago)

My worst one was over 70kB. I still shudder.

The MSVC one was just 200 bytes and just told me error with no further information.

[–] jaybone 7 points 3 weeks ago (1 children)

I love all the Java haters. Like is a stack trace from any other language somehow more readable? Python stack traces are fucking backwards, and also annoying as fuck since you don’t have any type info. C++ you have to enable core dumps and then run a separate tool. Okay fully qualified class names in Java are long, but that’s because you have proper packaging and namespaces which plenty of other languages manage to do much worse at.

[–] qaz 2 points 3 weeks ago* (last edited 3 weeks ago)

C++ you have to enable core dumps and then run a separate tool.

It's really not that bad when using something like Clion in debug mode. It clearly shows each function it went through and clicking instantly takes you to the relevant function.

But you're right. Java stacktraces really aren't that bad, throw some syntax highlighting and links in and it's actually a really decent option. I sure know what I would prefer when comparing it to JavaScript.

[–] [email protected] 5 points 3 weeks ago (1 children)

I'm thinking keep the horizontal one at the bottom and put 3 vertical ones over it, now the vertical one is all the way over there.

[–] affiliate 1 points 3 weeks ago

maybe this way you’ll be able to read up to 3 java statements at a time