346

Date a programmer. We break loops, not hearts.

Comments
  • 12
    And sometimes break code... B..code
  • 3
    Nice one! Haven't heard this before
  • 4
    Even better!!! Usage of break and jump is ALWAYS deprecated and discouraged!!!!
  • 0
    @mngr break; is actually not discouraged anywhere AFAIK. Think of it: a for-loop where you go through all indexes of an array, knowing that one index contains a value you need, but you don't know the exact index and value. As soon as you find it, you can just exit the whole loop instead of wasting processing power.
  • 1
    (but yeah, jump/goto is bad and I've learned that too lol)
  • 3
    Would be amazing if anybody who wasn't a programmer would get it.
  • 2
    @filthyranter yea, you are right, break is used, but not at his full spaghetting potential, if you know what i mean
  • 8
    We do have CONDITIONS, though ;-)
  • 1
    Gold!👍
  • 4
    Desperate for marriage? We can accidentally write deadlocks!
  • 3
    We also might break the occasional keyboard.
  • 1
    But get ready for infinite loop of being friendzone! 😝
  • 2
    I C# what you did there
  • 4
    I don't think you will git any girls this way
  • 4
    @Teknas I try to commit myself, but they push me away
  • 0
    187++s more for a free stess ball🤣 Come on fam you can do this💙
  • 0
    @filthyranter my teacher told me it didn't look great when I did that for that exact reason. He much preferred a while loop with a boolean value set to true. And when found it would set the value to false and stop the while loop. I guess people have their own opinions on how code should look.
Add Comment