3 ms·
In my experience, I've found the lack of polymorphism to be the larger challenge in building complex business systems in Go. Managing a bunch of polymorphic en
by bndw 5y ago
In my experience, I've found the lack of polymorphism to be the larger challenge in building complex business systems in Go.
Managing a bunch of polymorphic entities in Go often requires implementing a bunch of interfaces in various types. You then have to write a bunch of mapping logic for every type, driven by type assertions. Apply this in a large codebase that encapsulates transport, data access, and so on and you end up with a ton of complexity.