6
shouts

Coding: Passing booleans into methods at Mark Needham

posted by beebee 339 days, 13 hours, 21 minutes ago
Wednesday, April 08, 2009 9:19:26 AM GMT

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...

category: ASP.NET | clicked: 0 | | source: www.markhneedham.com | show counter code
tags: ASP.NET, ASP.NET MVC, ASPNETMVC, HtmlHelper

No comments yet, be the first one to post comment.

To post your comment please login or signup