8 Oct
2008

Convince Me You Can’t Branch by Purpose

Category:General PostTag: :

As I have stated before, I am amazed at how an organizations culture (read: dysfunctions) are reflected in their source control systems. This is a really a restatement of Don Norman’s assertion, which says, "The design of a software system reflects the culture of the organization that created it." So, not to belabor a point, […]

Read More
6 Oct
2008

Refactoring Exercise: The Single Responsibility Principle vs Needless Complexity

Ray Houston has written this post on his blog named Single-Responsibility Versus Needless Complexity. His post contains the following code sample of which he suspects that it possibly violates the Single Responsibility Principle: public bool Login(string username, string password) { var user = userRepo.GetUserByUsername(username); if(user == null) return false; if (loginValidator.IsValid(user, password)) return true; user.FailedLoginAttempts++; […]

Read More
4 Oct
2008

LINQ in Depth: Understanding ToArray()

In my last post, I showed a bit of code that would take any list, array, diction, or IEnumerable implementer, and return a delimited string. My solution created a StringBuilder, then looped thru the list, adding the values to the StringBuilder each time.  Then, finishing up, remove the last delimiter. The other solution is to […]

Read More