Unrelated, but one interesting pattern I sort of r...
# random
d
Unrelated, but one interesting pattern I sort of ran across was a kind of validated vs. unvalidated object, particularly when deserializing the object from an untrusted source like JSON from a server. So you deserialize into the unvalidated object, then call
validate()
or something which returns null (if fields are missing or corrupt) or a validated object where the required fields are guaranteed to be there. Is anyone familiar with this pattern or tools to support it?