Self Documenting
by in CodeSOD on 2012-04-30"A little while back, someone introduced the concept of 'self-documenting' code to our team," writes Ryan L. "It was certainly a step forward, but it's somehow taken us two steps backwards. Consider, for example, the following code from an MVC controller."
if (TheFormIsInvalid()) return View("Index", form); ... snip ... private bool TheFormIsInvalid() { return ModelState.IsValid == false; }