Skip to main content

Questions tagged [design-patterns]

A design pattern is a general reusable solution to a commonly occurring problem in software design.

Filter by
Sorted by
Tagged with
5 votes
2 answers
3k views

I frequently encounter a situation where I need to write a program which reads data-objects from a file or system, does a transformation on the data, convert the data to another datamodel and then ...
Edward Smit's user avatar
12 votes
2 answers
5k views

What are the pros and cons of having static object creation methods over constructors? class Foo { private Foo(object arg) { } public static Foo Create(object arg) { if (!ValidateParam(arg)) ...
dbkk's user avatar
  • 2,136
3 votes
5 answers
845 views

I'll use C# as an example, but it should apply globally. Say I have a string value that should be one of a few constants, but I also want the client to set which string value to use so: private int ...
Anthony's user avatar
  • 605
7 votes
8 answers
18k views

Where I work, employees use a third-party desktop program for their clients. This program saves data to a flat file. My colleague wants to write a Java program that uploads that flat file to a remote ...
user6950's user avatar
4 votes
2 answers
10k views

I have been developing on Android for a couple months now, and building upon one in house program I found the scalability to be lacking. I have that gut feeling that if I applied some OO Design ...
AndrewKS's user avatar
  • 1,083
3 votes
1 answer
282 views

... that is, the inputs and outputs of service functions ? Are entities, or aggregates, allowed to leave service boundaries?
Max Toro's user avatar
  • 316
22 votes
8 answers
13k views

Possible Duplicate: Is there a canonical book on design patterns? I'd like to read a design patterns book. GoF for sure is the one to read. But after 15 years is it still valid, I mean isn't there ...
user193655's user avatar
33 votes
11 answers
7k views

I've heard it argued that design patterns are the best thing since sliced bread. I've also heard it argued that design patterns tend to exacerbate "Second System Syndrome," that they are massively ...
Fishtoaster's user avatar
  • 25.9k
24 votes
16 answers
80k views

Which design pattern do you think is the most popular?
68 votes
5 answers
28k views

I am designing a new system and I want to know what inversion of control (IOC) is, and more importantly, when to use it. Does it have to be implemented with interfaces or can be done with classes?
Jedi Master Spooky's user avatar

1
89 90
91
92 93
238