News for hackers. Stuff that matters.
Re:Add detailed message to NullPointerException describing w... by AaronFriel on Tuesday March 26, 2019 @01:55PM (#19494352)
This is largely not the case outside of the C-like languages that inherited nulls.

Long method chains with a strong type system or a functional (also called "fluent") style are extremely expressive and common in languages that obviate the need to handle null values at every member.

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.
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.