Hacker News new | ask | show | jobs
by hardwaresofton 1294 days ago
Oh this totally reminds me of the BLoC pattern[0][1] that everyone kind of... really gritted their teeth through. It just wasn't at all an appealing way to structure data flow and I was kind of surprised that it was the architectural choice that was being pushed.

90% of the time, it felt like simple IoC plus an app-wide singletons would have been enough for most apps-- trying to get everyone to aadopt BLoC was painful and kinda meh. It's probably just that I never developed a sufficiently big app at scale with lots of devs to see why BLoC was the best way.

That said, I'm also reminded of the Boring Flutter Development Show[2], quite possibly the best produced resource I've ever seen as an intro and ongoing guide to a piece of tech. It is excellent.

[0]: https://www.dbestech.com/tutorials/flutter-bloc-pattern-exam...

[1]: https://www.flutterclutter.dev/flutter/basics/what-is-the-bl...

[2]: https://www.youtube.com/watch?v=yr8F2S3Amas&list=PLOU2XLYxms...

2 comments

The huge thing that encouraged me to port my Matrix library to CLJD was that I saw the Flutter community did not have a consensus reactive solution.

The tersest write-up I have on Matrix is of the JS version, and all the demos are CodeSandbox if you want to play: https://tilton.medium.com/simplejx-aweb-un-framework-e9b59c1...

Why are people using BLoC? I thought Provider and now Riverpod are what was recommended, which are the global singletons you're talking about.
It’s been a while since I looked, if that’s true then great