Untangling one very big class
One class handled every kind of message. I split it up.
Published 13 March 2026 ยท Open Source.
In the chat SDK at Affinidi, a single class handled every kind of message.
I split it, so each kind has its own handler. It's easier to test now, and easier to add a new kind of message.
More posts: https://www.gabrimatic.info/blog