Re:Good Design is Imperfect Design, Part 1: Honest Names
by michaelrpeskin on Wednesday August 04, 2021 @02:21PM
(#28064398)
One way I suggested that we solve in a different domain was a small name change that really helped. To me "plus" is the _operator_ and "add" is the _operation_. So to me date.add(1 month).add(1 month) is actually different than date.add(2 month) because I can read that as taking two one-month steps which _may_ be different.
[ Parent
| on HN ]
There are no comments on this comment yet.