Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kage9255y@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. -
@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. -
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.
-
C0D4681455y@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 π³ -
@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. -
C0D4681455y@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. -
ππππππππππππππππππππππππππππππ
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
rant