Skip to main content
5 events
when toggle format what by license comment
Nov 7, 2017 at 6:59 vote accept Pareidolia
Nov 1, 2017 at 13:01 history edited candied_orange CC BY-SA 3.0
added 535 characters in body
Nov 1, 2017 at 3:22 comment added Samuel Since factories tend to be used to create complex objects (usually not strings) I'm not convinced the null object pattern will be useful here. The motivation for the null object pattern is to avoid null checks which a disjoint return type would accomplish. Although the pattern allows clients to quietly ignore nulls it makes it more difficult to detect when the factory is working correctly or if it is just sanitizing a null return.
Nov 1, 2017 at 2:04 history edited candied_orange CC BY-SA 3.0
added 21 characters in body
Nov 1, 2017 at 1:27 history answered candied_orange CC BY-SA 3.0