sfeldman.NET

.NET, code, personal thoughts

Browse by Tags

All Tags » OO (RSS)
Too Loosely Coupled Code – One Year Later
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: , ,

Convention over Configuration
Convention over is defined in Wikipedia as follow: Convention over Configuration (aka Coding by convention) is a software design paradigm which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily...

Posted by Sean Feldman | 1 comment(s)

Filed under: , ,

State Pattern with FluentNHibernate
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: , ,

Sick of Relational Databases
I have started to read a new book about OODB. The reason I decided to get the book and go through it is because I am SICK of the traditional RDBMS and the way it forces us to go through loops and hoops to create domain driven applications. The very first...

Posted by Sean Feldman | 1 comment(s)

Filed under: ,

Test Helpers and Fluent Interfaces
Today was a great day. One of the things we do with the team is experiment how we write our test. Experimenting seems the most effective way of figuring out what should be our testing approach. At this point we are mostly doing specification driven tests...

Posted by Sean Feldman | 4 comment(s)

Filed under: , ,

Depend Upon Abstractions - reiteration.
I was reading through the book when combined several subjects together, such as "help tests" and "error handling", and realized that the core "Depend upon abstraction. Do not depend upon concretions." principle is underused by myself. Normally, I apply...

Posted by Sean Feldman | with no comments

Filed under: ,

Singletonitis
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 | 1 comment(s)

Filed under: , , ,

Break It Down Into Bits
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: ,

Command-Query Separation Principle
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: , ,

Two Loosely Coupled Code - Part 2
In the I raised the question of "Too loosely coupled design". There's a lot to discuss about it, and I am not going more time on it, except showing one more sample that IMHO shows the benefits and outcomes of the principle being applies, or consequences...

Posted by Sean Feldman | 1 comment(s)

Filed under: ,

More Posts Next page »