Bloc: What design patter BLoC abstracts ?

Created on 29 Sep 2019  路  4Comments  路  Source: felangel/bloc

Good afternoon, I'm taking a class in Architecture and Software Design and we are building an app with Flutter and we decided to use BLoC for the rich and nicely done structure. When I was studying it I realized that the concepts and some of the code written is very similar to Flux pattern.
For this class we have to use some of the known design patterns, so since we are using BLoC I wanted to know if there is a design pattern that BLoC uses behind the scenes or BLoC would be a new design pattern, or both.
Thank you for your attention :heart:

question

Most helpful comment

Hi @youssef-md 馃憢
Thanks for opening an issue!

The bloc library is an interpretation of the BLoC design pattern and shares characteristics with MVVM, Flux, and Redux 馃憤

All 4 comments

bloc, mvvm, flux, and many more, are patterns that separate ui from business logic.
so there is bound to be similarities between them, but each has its own way of doing things

So BLoC is pattern of its own or is an abstraction of some of the known design patterns, or both?
btw, thanks for the answer

if i had to pick one, i would say bloc is an implementation of MVVM

Hi @youssef-md 馃憢
Thanks for opening an issue!

The bloc library is an interpretation of the BLoC design pattern and shares characteristics with MVVM, Flux, and Redux 馃憤

Was this page helpful?
0 / 5 - 0 ratings