Browse by Tags

All Tags » Patterns (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: , ,
Several last projects I used a simple IoC container, leveraging Activator.CreateInstance(type). The main reason - simplicity. Once there was a need to go to a higher level, I would switch to Windsor Container. One of the projects used Unity. The only...
Posted by Sean Feldman | 3 comment(s)
Filed under: ,
Today one of our team members brought up a valid question - how do I know that my SUT (system uder test) packages the primitive parameters (username and password) and sends into dependency object as a DTO. Maybe instead of packaging into DTO the primitive...
Posted by Sean Feldman | 3 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 months ago I blogged about Domain Objects vs. Primitive Types . Back then it felt right to me to transform a primitive type, like a Guid that represented an organization ID, to an Organization domain object. Unfortunately at that time I was not...
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: , ,
More Posts Next page »