3 ms·
100% agree, the monstrosity that author proposes is really hard to swallow. Simple made hard. The idea to handle validation (we get HTML instead of expected JS
by piokoch 4y ago
100% agree, the monstrosity that author proposes is really hard to swallow. Simple made hard.
The idea to handle validation (we get HTML instead of expected JSON) by passing some Nothing object down the flow is horrible, if we expect JSON and get something unparsable, well, the best strategy is to fail fast and let know client side that we have a wrong data. Instead we show off with some fancy code structure with zero value for the user of the software.