3 ms·
I think you're conflating object-orientation with algebraic type systems (which java doesn't have).
by mirekrusin 4y ago
I think you're conflating object-orientation with algebraic type systems (which java doesn't have).
- jongjong 4y agoIn Java, there seems to be an interface for every concept and the way they are used is quite restrictive in a harmful way. For example, a URL isn't merely a string which is copied/cloned (by value) each time it gets passed to a new function, there is an actual URL instance and you are encouraged to pass around references of it. This type of design can cause issues if multiple modules end up holding a reference to the same instance and try to modify it (in conflicting ways). It just encourages poor design IMO. It requires more effort (more friction) to avoid bad, tightly coupled architecture.