12

That feeling when your favourite function in the code is updated by another dev, only to make it look worse by adding tons of arguments ( T_T)

Comments
  • 7
    I feel your suffering.

    Its feels like something that should have been questioned in a code review and refactored into better code.

    I am not a fan of many arguments since it makes the function much harder to use and is an indication of breaking the single responsibility principle.

    It also raises the risk of conflicting arguments causing strange errors.
  • 1
    Sorry. I get paid by the hour, not by the number of perfect extensible functions I create and your function did 83% of what I needed already so ¯\_(ツ)_/¯.
Add Comment