States vs Events

I often see coders confuse these two. It may happen when they want to trigger an external event on a state change, or another module needs to know something happened.

The difference is that events are transitory (ideally instant), and that states are not. States can be temporary

For example:

I [started] a new twitter account (event).

I am now growing the account, I am in [growth] mode (state).

Reply to this note

Please Login to reply.

Discussion

No replies yet.