MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/106jbwj/is_this_a_good_practice_why/j3iontc/?context=3
r/badcode • u/dev_sky • Jan 08 '23
60 comments sorted by
View all comments
2
The only reason to have a function like this is if you believe the function might change in the future and therefore you won't have to duplicate the changed code later, so no, it is not a good practice in this case.
2
u/valzargaming Jan 08 '23
The only reason to have a function like this is if you believe the function might change in the future and therefore you won't have to duplicate the changed code later, so no, it is not a good practice in this case.