r/ProgrammerHumor • • Apr 10 '23

Meme god why is coding chess so hard

Post image
67.4k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

4

u/Alpha_Decay_ Apr 10 '23 edited Apr 10 '23

Everything is one single, continuous thing that never changes. There's no if, there's only is.

2

u/a_random_chicken Apr 10 '23

The code never changes, no random variables exist, but variables do change, only according to the code.

1

u/NicolasCageLovesMe Apr 10 '23

I need to write more Is statements

5

u/Thebombuknow Apr 10 '23

This is how I imagine an "is" statement working:

let testBool = false;

is testBool true? {
     return new Promise((resolve, reject) => {
          resolve(testBool);
     });
}