re: Object Oriented Tricks: #3 Death By Arguments VIEW POST


Most of the time when you pass a boolean into a function, you are loudly declaring to the world that you’ve written a function that does two things.

Might be my biggest takeaway from this post. While I don't think it applies in all cases (nor do I think you are suggesting it does), I think it may apply often enough that I should start seeing it as a "code smell".


This was my take away as well. Not always an issue, but enough to make you give it some thought when you put it in there.

Code of Conduct Report abuse