this post was submitted on 03 Feb 2024
840 points (97.4% liked)

Programmer Humor

19564 readers
583 users here now

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

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 24 points 9 months ago (4 children)

We can optimize this further:

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

..No, there is no instance where unsatisfied changes state

[–] [email protected] 4 points 9 months ago (3 children)

You should just be able to while(true)

[–] [email protected] 9 points 9 months ago (1 children)
[–] [email protected] 3 points 9 months ago

That sounds like an excuse.

load more comments (1 replies)
load more comments (1 replies)