Skip to content

Scenarios

fluth is suitable for reactive programming scenarios. Compared to reactive data, organizing code with streams offers the following advantages:

  • Easier to build reactive logic, reducing business complexity
  • More declarative programming style, greatly reducing code volume
  • Easier to read code, with clear upstream and downstream relationships

image

Build Reactive Logic

For vue or react developers, reactive updates in the view improve efficiency significantly, but the reactive value in the logic layer is often underutilized.

In business logic, we often use watch (or useEffect) to listen to changes and then update logic accordingly. This approach has these problems:

  • Poor semantics
  • Unclear data flow
  • Timing issues are hard to manage

So the scenarios are limited. With fluth's stream paradigm, you can build the entire logic reactively and improve productivity!