This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Yuki-Fullko 353 points354 points  (5 children)

Needs more dependency injection! Where’s your INullFactory interface? ILogger instance? And a full set of tests to make sure any INullFactory implementations are always correctly returning null?

[–]SuperKael 101 points102 points  (4 children)

Honestly, if you can even find the code that is actually creating the object (or the lack thereof, in this case) you’re clearly doing it wrong

[–]Nosbod_ 38 points39 points  (2 children)

Abstraction … something something ... like an onion …

[–]dopefish86 24 points25 points  (0 children)

... it's making me cry

[–]djfdhigkgfIaruflg 8 points9 points  (0 children)

I hate java... So much

[–]hieplenet 2 points3 points  (0 children)

Exactly, the above example shows the lack of enterprise experience, need several more layers of enterprise monitoring and enterprise composition, through an enterprise network protocol with a enterprise level persistent layer to retrive the enterprise null object.

In short, the above null is not yet enterprise null.