In a post I wrote a couple of days ago about understanding the context of a piece of code before criticising it, one of the examples that I used of a time when it seems fine to break a rule was passing a boolean into a method to determine whether or not to show an editable version of a control on the page. Chatting with Nick about this yesterday it became clear to me that I've missed one important reason why you'd not want to pass a boolean into a method. The first reason I hate passing booleans around...
|
6
shouts |
|
|||
No comments yet, be the first one to post comment.