If you make a function called add which actually subtracts, why is that any different to an operator overload?
If you make a function called add which actually subtracts, why is that any different to an operator overload?
Quickly onboarding novices is only helpful for throwaway work or teams with retention problems. Their work inherently needs more scrutiny until they become experts.
I accidentally replied to yours. I had intended to reply to preseinger.
The former is in general preferable to the latter, though, because it makes it a little more clear that arbitrary computation is occurring.
I say that as a member of a team whose median tenure (three years ten months) is short enough to concern me a little.
Based on my experience those projects are 99% of all projects in commercial organizations. So, emphatically no.
The whole attitude (and the Go programming language) is maybe downstream from the fact that perf/promo criteria punish people who maintain the software they write.