9
Kage
5y

Nothing but love for my coworker;
but my coworker (who's a fellow programmer for at least 3 years) thought the `continue` statement in a `foreach` literally meant to keep going with the code.

He was confused his code after the continue didn't run. xD

Comments
  • 1
    My god, 3 years of experience and never used a continue in a for loop?
  • 0
    @HisAxelency I asked him if he really didn't know it, or if it was just a brainfart.
    But he has never used `continue` before, he is used to writing nested if/else statements.

    He saw it for the first time in the piece of stackoverflow code he copied&edited.
  • 1
    @Kage "He saw it for the first time in the piece of stackoverflow code he copied&edited."

    Oh joy...

    That being said, I usually fail a code review on continue or break being used in loops. There's almost always a clearer way to write it.
  • 3
    Hold on. If he thought their was a statement that says "continue running" then surely he'd need to add it after ever line of code in the app---or it would suddenly stop.
  • 2
    Quite questionable considering his experience.
  • 1
    πŸ€”either this is fake, or he's still a early day junior.
  • 2
    @legacy07 @C0D4
    all of his experience is in WordPress & VueJS.
    I moved the company towards Laravel (PHP framework) about half a year ago.
  • 1
    @Kage that's not my name πŸ˜‚

    Still, Js has the 'continue' with loops, so I'm still questioning this 😏

    Unless... he doesn't use loops 😳
  • 1
    @C0D4

    I've heard of senior devs in some big consultancy firm in Belgium who didn't know what recursive methods were.
    So a mid level dev that hasn't heard of 'continue' isn't impossible.
  • 1
    @HisAxelency
    See if you kept that to junior/mid I would have been able to swallow it, but seniors who don't know recursion... that's outstandingly unbelievably.

    They obviously are not in those potions on merit or experience.
  • 1
    πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚
Add Comment