Games icon indicating copy to clipboard operation
Games copied to clipboard

Get rid of event system

Open Zomis opened this issue 5 years ago • 3 comments

In retrospect, using a flexible event system was not a good idea.

Using a dynamic event-driven approach for everything...

  • makes code very unreadable and confusing
  • makes it difficult to figure out or troubleshoot "when A happens, B will happen"
  • is still an interesting concept, somehow specifying "business requirements" in code is still intriguing to me (No I don't mean Cucumber. In the actual application, not just in tests)

Zomis avatar Feb 08 '20 19:02 Zomis

Should be easier with The Big Refactoring™ #302

Zomis avatar Jun 25 '22 23:06 Zomis

Using Koin can be an option: https://insert-koin.io/

Zomis avatar Jun 26 '22 22:06 Zomis

Using SharedFlows would be similar to an event system but would be more Kotlin-ic. And would make supporting multiple coroutines/threads easier.

Zomis avatar Dec 11 '22 16:12 Zomis