You are viewing a single thread.
View all comments
24 points

We can optimize this further:

unsatisfied = true
while(unsatisfied) {
    key.dispatch(
        Keyboard::Ctrl,
        Keyboard::s
    )
}

…No, there is no instance where unsatisfied changes state

permalink
report
reply
4 points

You should just be able to while(true)

permalink
report
parent
reply
9 points

It’s a joke.

permalink
report
parent
reply
3 points

That sounds like an excuse.

permalink
report
parent
reply
4 points

Don’t worry, most modern brains have a builtin jit compiler, so when a habit starts to form, the check will be optimised out. (It saves excess neurons from being generated.)

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.1K

    Monthly active users

  • 955

    Posts

  • 37K

    Comments