Re:Parsix: Parse Don't Validate
by Iazel on Saturday May 15, 2021 @02:34PM
(#27167711)
Well said! I would only like to add that I highly discourage adding validations/assertions in the actual data class, this often make them hard to work with and reuse. It is better to have this parsing logic as a simple function, perhaps at factory level if you prefer that kind of flavor :)
[ Parent
| on HN ]
There are no comments on this comment yet.