r/ProgrammerHumor • • Jan 05 '19

You know it's true

Post image
60.6k Upvotes

1.1k comments sorted by

View all comments

1.1k

u/HenryFrenchFries Jan 05 '19

I'll have to agree on this one. 90% of the "jokes" on this sub are clearly from people who either just started programming or suck at it (or both). Rarely do I see a genuinely funny/smart post.

For example, all the missing semicolon jokes. I hate them. Nobody ever does have a problem with semicolons unless they're rookies.

0

u/[deleted] Jan 05 '19

[deleted]

20

u/[deleted] Jan 05 '19

Yeah 20 years ago C++ compilers were pretty bad at highlighting things like that. That's a pretty obvious mistake IMO but there are similar less obvious ones, e.g. forgetting a semicolon at the end of a class declaration at the end of a header - then the error will be reported in some other completely unrelated file.

However modern C++ compilers (especially Clang) give much nicer error messages so it isn't so much of an issue. I wouldn't be surprised if Clang warned you about an empty if body.

10

u/Rangsk Jan 05 '19

I feel like most CS students these days would massively benefit from -Wall -Werror and maybe even -Wextra -Wpedantic. However, I also fear that most programs provided by textbooks and professors will generate warnings, so there's an education problem involved here as well.

→ More replies (4)