|
|
|
|
|
by btbuildem
1739 days ago
|
|
This reminds me of a time I worked with Typescript, and the team kept reopening discussions around the use of the "Any" type. Trying to mitigate the boolean param dilemma, I would lean on Erlang and its multiple function signatures. It tends to force your solutions into initially harder but eventually more graceful form. Generally, when my code starts showing these kinds of warts (silly parameters getting tagged on to function signatures), I take it as a sign that the initial tack I've taken no longer addresses the problem I'm trying to solve. More often then not it goes all the way back to an incomplete / outdated understanding of the business logic. |
|