3 ms·
> it specifically guards against inheritance/factory/DI hell by offering a unique type system Many people, including Google engineers (https://github.com/goog
by riku_iki 9y ago
> it specifically guards against inheritance/factory/DI hell by offering a unique type system
Many people, including Google engineers (https://github.com/google/guice https://github.com/google/guice) see DI as useful tool, not hell.
But nothing prevents you to write your java code without DI if you don't like it.
- smueller1234 9y agoDI is unquestionably, heavily used in Google code, including in Go code bases. Nonetheless, GPs point seems to be more along the lines that the type system helps avoid the horrible spaghetti of design patterns that many a Java project ails from. I'm not entirely sure about how much of that difference is a matter of culture vs. language and would love to see GP expand on their thoughts.