State Machine

#state #thinking #code

A state machine describes all possibly states for a given business logic or situation

They are very useful to model business logic, like ecommerce order status, UI transitions, manager transfer and more.

Global State

Links to
  • Global StateRedux single immutable atom for the whole UI hard to code split hard to optimize Selector: useSelector Recoiljs multiple immutable atoms for the UI it works with sync and async…
Shares tags with
  • DichotomyDichotomy is to divide the whole in 2 parts We have many dichotomies in life and in code server/client we want to do some work on the server and some work in the client sync/async…
  • Abstract NodeYou can model knowledge as a graph of nodes of concepts/ideas When you abstract 2 or more ideas in a more general concept finding the edges among those nodes This will make show…
  • Abstractionsblock An abstraction is something that helps us An abstraction can help build concrete things twitter thread React is the abstraction to build UI using components D3 is the low…
  • AtomWe can use atom to describe something that is minimal and indivisible We can have an atom of state like redux recoiljs We can have an atom of thought as Roam and Zettelkästen uses…
  • Being wrongYou can be wrong in many situations Make sure to always revalidate your ideas on new information like Bayesian approach P(A I): your probability of something should changed based…

Sign in with GitHub to reply.

Select any passage to quote it.

Comments