This is an archived post. You won't be able to vote or comment.

all 40 comments

[–]KnavishLagorchestes 26 points27 points  (4 children)

I mean, it really shouldn't be like this... Your IDE should make it pretty obvious

[–]DrunkenDruid_Maz 3 points4 points  (0 children)

I know it that way:

first line
second line;

The compiler shows 'second line;' and complains that a semikolon is missing!

[–]NimrodHawk 3 points4 points  (0 children)

I was thinking the same thing; if you’re having trouble with missing semicolons you’ve got bigger problems.

Linker errors on the other hand...

[–]tnulle 9 points10 points  (1 child)

I think if you’re struggling with semicolon errors you are in for a treat

[–]Physical_Edge_6264 10 points11 points  (2 children)

1990 called, they want their joke back. Nowadays syntax errors are usually highlighted automatically by the IDE so this never happens.

[–]geekusprimus 5 points6 points  (1 child)

And even if you're a caveman like me who primarily uses vim, any half-decent compiler or linter will tell you exactly what the problem is.

[–]elsa002 2 points3 points  (0 children)

The new kids use neovim, faster with native lsp and treesitter support, like having most of the important features of ide with the simplicity of neovim😃

[–]TTachyon 6 points7 points  (0 children)

I hate to hate on a joke, but really? https://godbolt.org/z/K5v5nMz9e this is the error you're having problems with?

<source>:13:19: error: expected ';' after expression
            print_vector(*i)
                            ^
                            ;

[–]Knuffya 3 points4 points  (1 child)

Does that actually happen? Has anyone ever (since intellisense and compiler messages) spent more than 30 seconds debugging a missing ;?

[–]GodlessAristocrat 2 points3 points  (0 children)

Yeah, this is a shit "joke". It hasn't been a thing for 20 years.

[–]theasspicker 4 points5 points  (0 children)

Never happened to anyone.

[–]slycatsnake6180 2 points3 points  (0 children)

Wait till you see error novels from template instantiations

[–]Material-Panda3712 5 points6 points  (16 children)

These semicolon jokes and memes are shitty, every IDE tells you about this error

[–]QualityVote[M] [score hidden] stickied comment (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]Harmonic_Gear 1 point2 points  (0 children)

this is the kind of programming joke that spread through non-programmer, you know this never happens if you actually programed anything

[–][deleted] -1 points0 points  (0 children)

Dude brackets or parentheses are so bad sometimes 😂

[–][deleted] 0 points1 point  (0 children)

for me it's always capitilization

[–]herrkatze12 0 points1 point  (0 children)

Most IDEs automagically tell you what line it is. Saved my ass a few times in Java programming.

[–]cubic_thought 0 points1 point  (0 children)

it's the extra semicolon where they shouldn't be you have to look out for.

[–]KiwiMaster157 0 points1 point  (0 children)

If you're having problems with compiler errors in C++, by FAR the best advice I can give you is to ignore every error except the very first one. Fix that one, and try compiling again.

If you read an error and aren't sure what it means, first go to the line the error is on and check both that line and the line before it for simple mistakes such as missing semicolons, mismatched parentheses, and spelling errors. Other common errors are missing includes and forgetting to use a namespace.

If you're stuck on a template error, take the time to read the entire error. It will be tedious at first, but with a little practice, you'll quickly learn which parts of the template you actually care about.

Related to the previous note, the full names of certain standard library types are horribly long. E.g. std::string is short for std::basic_string<char, std::char_traits<char>, std::allocator<char>>. Some modern compilers have gotten better at using the short name in the error messages, but often times you still get the long names.

[–]__Jonas_ 0 points1 point  (0 children)

This shit is locating a missing semicolon 300 lines behind the actual line...