Skip to content

Understanding the added benefit of workflows over just using compose #358

Discussion options

You must be logged in to vote

I think about this a lot!

Workflow has a couple primary design goals:

  1. Allow business logic to be separated from UI, while still driving things like navigation which are often BL concerns.
  2. Encourage writing logic in terms of explicit state machines – that is, state is an explicit entity that is mutated atomically by explicit actions.
  3. Different parts of business logic should be self-contained, have clear APIs, and be re-usable in different parts of the app ("composable").
  4. Favor explicitness over "magic" – while magic makes for cool demos, it makes a large codebase unmaintainable.

Workflow started out as a design pattern, and eventually crystalized into actual implementations with common A…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by steve-the-edwards
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants