Hacker News new | past | comments | ask | show | jobs | submit login

Apologies, I omitted part of my proposal:

While most Null Objects would (probably) be code generated, you can provide your own as needed.

Said another way: Most of my Null Object implementations have been boilerplate, and therefore could be code generated. But occasionally some are not.




What I mean is that semantically there's often no such thing as a null object for a given domain. So any artificial one that can be made is indistinguishable from null in practice (i.e. all operations on it will throw etc).




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: