Re:My Favourite Diff
by Apanatshka on Monday April 06, 2020 @04:45AM
(#22791899)
A similar example is in a "filtering" operation. I mostly have this in functional programming where you pass a predicate to filter on. But what's the perspective of the filter? Are you filtering poison from your water, or are you sifting the water looking for gold nuggets. I prefer to use functions remove and retain (respectively) to be more explicit.
[ Parent
| on HN ]