What responsibility do we have as software professionals when we post code out there for public consumption? I don?t have a clear cut answer in my mind, but maybe you can help me formulate one. :) For example, I recently posted a sample on my blog intended to show how to use jQuery Grid with ASP.NET MVC. The point of the sample was to demonstrate shaping a JSON result for the jQuery grid?s consumption. For the sake of illustration, I wanted the action method to be relatively self contained so that a reader would quickly understand what?s going on in the code without having to jump around a lot. Thus the code takes some shortcuts with data access, lack of exception handling, and lack of input validation. It?s pretty horrific! Now before we grab...(read more) ...
Go to the complete details ...