Duplicate Code? Replace One/Many Distinctions with Composite
After the first post on how to introduce Null Object, in this second post on how to write clean(er) code, let us look at one of the very frequent occurrence. At least something that I have seen quite often. You too would have…