3 ms·
> Don’t pipe results into the following function Mmmm. No. It makes sense into context of the example, but this is way too generic advice it's actually bad. P
by 1_player 5y ago
> Don’t pipe results into the following function
Mmmm. No. It makes sense into context of the example, but this is way too generic advice it's actually bad.
Pipes are awesome. Please _do_ pipe results into the following function when it makes sense to.
- janderland 5y agoI didn’t get the impression they were saying never to do it (maybe I missed that bit in the text). I think they specifically said, when piping, don’t force functions to handle the error of the upstream function. Because each error needs to be handled differently, the downstream function’s implementation becomes tied to the upstream function. Then the downstream function is only usable with said upstream function.
- devoutsalsa 5y agoThe more I need to handle errors, the more I want to make every unexpected thing just raise an exception. 500s for everyone!
- jkhdigital 5y agoExactly, piping a bunch of ! functions is the way.