Re:Add detailed message to NullPointerException describing w...
by hamandcheese on Wednesday March 27, 2019 @05:07AM
(#19499112)
Regardless of safety guarantees (or lack thereof), a method chain that long indicates a lot of knowledge of the structure and hierarchy of the dependency. It makes refactoring/testing/mocking more difficult.
[ Parent
| on HN ]
Re:Add detailed message to NullPointerException describing w...
by fgonzag on Thursday April 04, 2019 @08:10PM
(#19578407)
What does the length of the method chain have to with anything? Let's say I define an interface Foo.bar.xyz with method call, and I call the implementation foo.bar.xyzimpl.method()
Everything is just as testable and decoupled, it's just a different project structure.
Method chains have nothing to do with the things you stated.