MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/eli5_programming/comments/b0pt24/eli5_state/eiih5tx/?context=3
r/eli5_programming • u/thecaptainrad • Mar 13 '19
3 comments sorted by
View all comments
Show parent comment
1
I can't put it any more simply than "state is the data present in a program at a particular moment".
The word "state" in normal usage means: "a condition; a set of circumstances applying at any given time."
Run a program. Freeze time. Look at what's currently in RAM. That's your state.
Run mspaint. Pick the spray tool. Click around to make some sprays. After you've done that, the state of the program is more or less:
View all comments
Show parent comment
1
u/[deleted] Mar 14 '19
I can't put it any more simply than "state is the data present in a program at a particular moment".
The word "state" in normal usage means: "a condition; a set of circumstances applying at any given time."
Run a program. Freeze time. Look at what's currently in RAM. That's your state.
Run mspaint. Pick the spray tool. Click around to make some sprays. After you've done that, the state of the program is more or less: