41
Gogy
6y

Has anyone actually forgot semicolon in the last 10 years and couldn't find the error it causes in a less than 30 seconds? I mean these jokes/memes are annoying as fuck.

Comments
  • 8
    When I started coding two years ago, I actually spent 2 full days trying to find a semicolon. So yes
  • 4
    I imagine its more of a problem in c or c++ since it has more flexible syntax with macros and such.

    Long time since I used c myself but at that time the compilers had problems realizing it was a missing ; and no intellisense.

    Also, when something goes wrong you can end up with hundreds or thousands or errors with no idea of which is the trigger that resolves all others.

    In C# its not very often you get it since often you just start looking where intellisense starts flagging red.
  • 1
    Tell me what character this is: ;
  • 3
    No, finding bugs with the syntax is easy and doesn't take much time (C hacker here). It gets more scary when the compiler doesn't complain, but you have undefined behaviour somewhere, and the compiler suddenly optimises parts of your program away.

    @Voxera In C, it's easy. If you get a huge amount of error spew, then it's usually some forgotten bracket, parenthesis or missing semicolon - and the only relevant thing is the first error because the rest is just follow-up. That's why you can instruct the compiler to abort after the first N errors. In C++, it can be more tricky if something is wrong deep down in the template sewers.
  • 2
    @Fast-Nop well my c experience is a bit dated ;) (20+ years or so)
  • 1
    @ScriptCoded I'm on mobile so out of experience I'm just going to guess (rather than inspect element etc) a Greek question mark?
  • 2
    Nope. I've never spent more than a minute looking for a semicolon. In any language.

    *EDIT* It's like putting a period at the end of my sentences. Never forget 'em.
  • 2
    @GMR516 Periods at the end of sentences!! That must be the problem. So many people out there tend to "forget" those these days, especially on YouTube comments and Facebook.. maybe it's the same with semicolons (which would say a lot about the average developer out there actually)... *sigh* -.-`
  • 0
    I'm so cool so I'm gonna code in vim with no plugins, syntax highlighting and code assist/completion.
  • 2
    @Condor That's probably the problem. XD
  • 2
    @muliyul try a lineeditor lile edlin if you really like to have a hard time ;)

    Thats what was used for bat files in old msdos (version 2-3 at least)
  • 0
    @taigrr Uhu, and that's how you spend more than 38 seconds looking for a semicolon 🙈
Add Comment