No, you are not allowed to write generic code

time to read 1 min | 114 words

I had a discussion with a dev on my team today:

Me: Why are you doing it this way? You are never going to need this code in this scenario.
Him: I don't want to write the code to fit just this particular scenario, I want it to be generic.
Me: This is in the controller for this particular use case, there isn't any other scenario that it will ever handle.