Re:Good Design is Imperfect Design, Part 1: Honest Names
by brianpan on Wednesday August 04, 2021 @03:03PM
(#28064861)
The article is about naming the method. The fact that dates are messy means a clean API is difficult/impossible.
I think plus() is a name that is good enough. I can't think of a better name that will help the user understand what will happen in the 2/28 + 1 month case. That's asking too much of a method name. That's what docs are for.
I think plus() is a name that is good enough. I can't think of a better name that will help the user understand what will happen in the 2/28 + 1 month case. That's asking too much of a method name. That's what docs are for.