News for hackers. Stuff that matters.
Re:Good Design is Imperfect Design, Part 1: Honest Names by stickfigure on Wednesday August 04, 2021 @06:02PM (#28067008)
The only thing advanceBy has going for it is that when the programmer inevitably tries to type add (after wondering why plus turns up nothing), the IDE _might_ show it in a dropdown.
Re:Good Design is Imperfect Design, Part 1: Honest Names by bottled_poe on Wednesday August 04, 2021 @06:36PM (#28067336)
Ok, but that’s when you read the docs. Also, in many languages, those expected methods could be mocked out to raise compiler errors, redirecting the developer to the correct methods.