Skip to content

Make the Krausest benchmark code stream-oriented #54

@dariomannu

Description

@dariomannu

The current Krausest benchmarks created in #42 look ok, but are too much object-oriented (as originally conceived by Stefan and the team). Rimmel is a stream-oriented library so we should showcase this paradigm instead of OOP.

  • remove the store: only use pure streams instead
  • only use derived streams: no calls to stream.next(). You get derived streams with the zip, withLatestFrom, combineLatest and similar RxJS operators.
  • feed streams directly from buttons: no onclick="${() => doSomething } but onclick="${stream}". This article gives an idea how you turn plain functions into streams you can later compose.

If anything is unclear (which is normal, given SP is a new paradigm), don't hesitate to ask!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions