I am having trouble evaluating an implementation of the builder pattern I just came up with.
The context is an API library, so I am trying not to expose any implementations in order to have a stable ...

Providing that clients would typically consume just one method, though methods would be conceptually related, why not always apply the Interface Segregation Principle to the extreme and have [many] ...

so this is C# but it could apply to any OO language where different sets of objects exist across different layers of an application.
We have been trying to come up with a convention within the team ...

Perhaps it is my scripting background, but my perspective is that the purpose of an object should be to contain data. Classes are necessary in that they provide templates and standard ways to classify ...

In order to avoid the overhead associated with the shelve module's writeback option I'm interested in putting together a shelf class that only accepts hashable values, with hashability being a proxy ...

Context of my question:
I am reading C#.
Trying to understand Static keyword.
I understand that when Static is applied to a member of a class, it can only be modified by the class and not the class ...

At the place I work we are using a SafeReader class that wraps an IDataReader. One of the 'features' is that if the field you are trying to access wasn't in the query then it just returns a default ...

I've been convinced for awhile now that some strategies in functional programming are better suited to a number of computations (i.e immutability of data structures). However, due to the popularity of ...

Disclaimer: I'm not 100% sure I understand some of the practices and concepts in DDD, so this question may actually be answered by clarification of the ideas
I'm working in a legacy system (written ...

I am new to state machine modeling and while trying to model a system, I have a question.
An example will explain it better:
Considering a system that does calling (probably a customized cell phone ...

Considering favoring composition over inheritance and looking at various design patterns there are multiple approaches to modeling a domain.
Say you have some Entities which are very similar in some ...

This is the problem i am dealing with. I have to make a simple game of NIM. I am learning java using a book so far i have only coded programs that deal with 2 classes. This program would have about ...

This question is going to be a little long. Please bear with me.
Something that happened in a project of mine made me think about how to safely copy objects. I'll present the situation I had and then ...

I'm designing an object dependency graph of my program and one ambiguity between design variants appears from time to time.
Imagine two objects having a reference to each other. Obviously, at least ...

I'm modeling an Online Classified System where, naturally, who sells also can buy and vice-versa.
The question is: should I have two different Actors, Buyer and Seller or I could have, say, an actor ...

I read somewhere that the chain of inheritance breaks when you alter a behavior from derived class. What does "altering a behavior" mean here? Is overriding an already implemented method in base class ...

I got into a debate on this question which distilled to if it is a good idea for a specialization of a class to add business rules. Unfortunately this point got trampled in the comments so I'm asking ...

I am currently developing a web application for my thesis.I was asked by my professor to make diagrams to describe the business logic.
Since I don't have a prior experience, I am pretty confused with ...

I am fairly new to OO design and have problems with the design of some software and looking for a pattern or a combination of patterns that could help me solving my problem.
I have a type that has a ...

This thread will be long, but I will try to make it as short as I can. Thank you.
I have recently implemented a relatively simple program. What this program does is generate a simple piece of music ...

I'm developing a system using .NET which will be used by multiple users. Because of that, I need to identify on the database which data belongs to each user. Explaining with an example, imagine I have ...

Here's the situation:
I have a "common" Data Access assembly that contains classes used in all my projects. Some of those are abstract classes that are only implemented by my data access layers for ...

I have 2 applications one is written in C++ and one is written in Java. the applications communicate by passing byte arrays which represent a serialized object.
each communication object represent a ...