Browse by Tags

All Tags » Patterns » OO (RSS)
A few years ago I have blogged about Singletonitis . Another place, different people, yet the same problem appears again – singletonitis. The issues I have outlined back then where 1. Testing 2. Difficulty to replace implementation 3. Requirement to track...
Posted by Sean Feldman | 5 comment(s)
Filed under: , , ,
More than a year ago, I have posted a blog entry related to what I was trying to implement in one of the projects. Unfortunately, not my team could understand what I was trying to do, neither I was able to make myself clear. Either way, I ended up closing...
Posted by Sean Feldman | 1 comment(s)
Filed under: , ,
FluentNHibernate is an amazingly nice DSL to use for quick NHibernate mapping implementation. Today I had to refactor some of the code we did at work, in order to persist a state of an object. The original code was implemented using State pattern, which...
Posted by Sean Feldman | 1 comment(s)
Filed under: , ,
While reading Joshua Kerievsky book "Refactoring to Patterns" could not go silent about abuse of Singleton pattern he described. The question that was asked in the book "When is a Singleton unnecessary?" - "Most of the time"...
Posted by Sean Feldman | 3 comment(s)
Filed under: , , ,
I had to refactor a portion of code and decided to go with strategy pattern. Interesting thing is that the final result might look more complex, but when discussed with a fellow developer, got green light in terms of "more maintainable" and "self documenting...
Posted by Sean Feldman | with no comments
Filed under: ,
A few days ago read in Larman's book about Command-Query Separation Principle. Funny to mention that I heard about the concept many times ago, but this is the only source that stated it as a principle. And it makes total sense once you evaluate all the...
Posted by Sean Feldman | 4 comment(s)
Filed under: , ,
Strive for loosely coupled designs between objects that interact. By minimizing the knowledge one class has of another, you decrease dependency between those classes. Independent classes provide more flexibility in design. Does this mean your application...
Posted by Sean Feldman | 6 comment(s)
Filed under: , ,
Jeremy Miller (aka The Shade Tree Developer) has a very good article about OCP principle printed by MSDN magazine. This is a valuable article for any developer that strives to work according to law of "measure twice, cut once", and not just cook spaghetti...
Posted by Sean Feldman | with no comments
Filed under: ,
In a multi layered application architecture, loosely coupled code is more than a important. It's the basic which can either help the entire project progress, or drive it down the slope to the end (in the bad meaning of the word). One of the basics to...
Posted by Sean Feldman | 15 comment(s)
Filed under: , ,
User Controls are handy when working in web forms, but what a mess they can generate. I was asked what to do when UCs are used and some dependencies need to be injected during the construction - but UCs are a bit tricky in regards to construction. So...
Posted by Sean Feldman | 11 comment(s)
Filed under: , , ,
More Posts