Compose beyond the UI: Molecule at Swedish Railways | Erik Westenius

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024
  • НаукаНаука

Комментарии • 12

  • @andy_lamax
    @andy_lamax 3 месяца назад +2

    I have watched a couple of molecule videos without fully grasping what it is properly, Erik explained it so easily and I finally understood what it is and how to use it

  • @salihdemir3782
    @salihdemir3782 3 месяца назад +3

    These videos are great sources for inspiration. Thanks for sharing!

  • @karimkarimov3759
    @karimkarimov3759 3 месяца назад

    Thanks for sharing the practical use cases!

  • @ChrisAthanas
    @ChrisAthanas 3 месяца назад +3

    I wish we could have heard the questions

  • @juanrincon4110
    @juanrincon4110 3 месяца назад

    This is one of those things where it is overkill for most projects but when you need it you are glad it exists. Great presentation!

    • @_hudeifa23
      @_hudeifa23 3 месяца назад

      I didn't watch the whole video but are referring to the compose when you said it is overkill for most projects please?

    • @HoussamElbadissi
      @HoussamElbadissi 3 месяца назад +1

      @@_hudeifa23 I guess they mean Molecule

    • @Condog64
      @Condog64 2 месяца назад

      That is not the impression I got.
      Most ViewModel's have a primary function of merging data Flows together into some UiState that the UI can consume. Molecule simply allows you to use the Compose runtime as a way to manage merging these Flows into a FlowState. The benefits should be seen immediately. If not, either you have implemented it incorrectly or it is simply not the pattern that fits your needs.

  • @aungkhanthtoo7678
    @aungkhanthtoo7678 3 месяца назад +1

    I can replace combine with merge + scan flow operators instead of an extra 3rd party dependency.

    • @Condog64
      @Condog64 2 месяца назад +1

      Molecule simply allows Kotlin developers to use the existing Compose Runtime to produce StateFlow. It *is* a 3rd party dependency, but it exists to allow you to use what you already know. If you're comfortable with Compose on the UI side, all the sudden you can use it in the rest of your application as well. I have no connections to Google whatsoever but I wouldn't be surprised if there is direct support for this usage from the Compose developers themselves in the not-too-distant future.