
Sign up to save your podcasts
Or


the difference between validation and parsing lies almost entirely in how information is preserved
Shotgun parsing is a programming antipattern whereby parsing and input-validating code is mixed with and spread across processing code—throwing a cloud of checks at the input, and hoping, without any systematic justification, that one or another would catch all the “bad” cases.
Why the term "parse"?a parser is just a function that consumes less-structured input and produces more-structured output
Two ways to use this technique:
Weaken return type
Strengthen input type
Design by contract
Elm Radio JSON decoders episode
By Dillon Kearns, Jeroen Engels5
1616 ratings
the difference between validation and parsing lies almost entirely in how information is preserved
Shotgun parsing is a programming antipattern whereby parsing and input-validating code is mixed with and spread across processing code—throwing a cloud of checks at the input, and hoping, without any systematic justification, that one or another would catch all the “bad” cases.
Why the term "parse"?a parser is just a function that consumes less-structured input and produces more-structured output
Two ways to use this technique:
Weaken return type
Strengthen input type
Design by contract
Elm Radio JSON decoders episode