32,164 questions
5
votes
6
answers
2k
views
Transactional Design Pattern
I have a need to create a "transactional" process using an external API that does not support COM+ or .NET transactions (Sharepoint to be exact)
What I need to do is to be able to perform a number of ...
22
votes
11
answers
114k
views
Use a LIKE clause in part of an INNER JOIN
Can/Should I use a LIKE criteria as part of an INNER JOIN when building a stored procedure/query? I'm not sure I'm asking the right thing, so let me explain.
I'm creating a procedure that is going to ...
7
votes
7
answers
4k
views
Can you really build a fast word processor with GoF Design Patterns?
The Gang of Four's Design Patterns uses a word processor as an example for at least a few of their patterns, particularly Composite and Flyweight.
Other than by using C or C++, could you really use ...
18
votes
5
answers
10k
views
Looking for example of Command pattern for UI [closed]
I'm working on a WinForm .Net application with the basic UI that includes toolbar buttons, menu items and keystrokes that all initiate the same underlying code. Right now the event handlers for each ...
69
votes
23
answers
21k
views
Singletons: good design or a crutch? [closed]
Singletons are a hotly debated design pattern, so I am interested in what the Stack Overflow community thought about them.
Please provide reasons for your opinions, not just "Singletons are for lazy ...
6
votes
4
answers
8k
views
Design pattern for parsing binary file data and storing in a database
Does anybody recommend a design pattern for taking a binary data file, parsing parts of it into objects and storing the resultant data into a database?
I think a similar pattern could be used for ...
29
votes
16
answers
4k
views
Do you use design patterns? [closed]
What's the penetration of design patterns in the real world? Do you use them in your day to day job - discussing how and where to apply them with your coworkers - or do they remain more of an academic ...
8
votes
6
answers
10k
views
Do you know any patterns for GUI programming? (Not patterns on designing GUIs)
I'm looking for patterns that concern coding parts of a GUI. Not as global as MVC, that I'm quite familiar with, but patterns and good ideas and best practices concerning single controls and inputs.
...
7
votes
3
answers
4k
views
Need Pattern for dynamic search of multiple sql tables
I'm looking for a pattern for performing a dynamic search on multiple tables.
I have no control over the legacy (and poorly designed) database table structure.
Consider a scenario similar to a ...
37
votes
4
answers
10k
views
Custom WPF command pattern example
I've done some WPF programing and one thing I never got was the command pattern. Every example seems to be for built in ones, edit, cut, paste. Anyone have an example or suggestion of best practice ...
101
votes
14
answers
21k
views
Why all the Active Record hate? [closed]
As I learn more and more about OOP, and start to implement various design patterns, I keep coming back to cases where people are hating on Active Record.
Often, people say that it doesn't scale well (...
11
votes
3
answers
2k
views
How do I create a Class using the Singleton Design Pattern in Ruby?
The singleton pattern is a design pattern that is used to restrict instantiation of a class to one object instance. Although I know how to code the singleton pattern in C++ and Java, I was wondering ...
2346
votes
40
answers
741k
views
What is Inversion of Control?
Inversion of Control (IoC) can be quite confusing when it is first encountered.
What is it?
Which problem does it solve?
When is it appropriate to use and when not?
2388
votes
24
answers
584k
views
What are MVP and MVC and what is the difference?
When looking beyond the RAD (drag-drop and configure) way of building user interfaces that many tools encourage you are likely to come across three design patterns called Model-View-Controller, Model-...