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

learn more… | top users | synonyms (1)

-4
votes
0answers
49 views

Advice on developing a social network [on hold]

I am doing research on assembling a team, using the right tools, and the cost to develop a highly responsive social network that is capable of dealing with a lot of users. Similar to the Facebook ...
-4
votes
1answer
63 views

Algorithm to Solve Most of a Problem [on hold]

I need an Algorithm/Design Pattern that allows me to try to get the maximum number of rules followed. So I have a couple teams and I need to pair them with a referee and against each other into a ...
-4
votes
0answers
35 views

Looking for a good resource to learn about SOLID and GRASP programming principals - NOT another design patterns book [on hold]

I have been looking to learn about good OOP PRINCIPALS as opposed to OOP design patterns mastery. But there are so many books on OOP design patterns, I feel more books are needed to focus on writing ...
9
votes
5answers
315 views

Is an event loop just a for/while loop with optimized polling?

I'm trying to understand what an event loop is. Often the explanation is that in the event loop, you do something until you're notified that an event occurred. You than handle the event and continue ...
1
vote
0answers
72 views

Which are the best ways to organize view hierarchies in GUI interfaces?

I'm currently trying to figure out the best techniques for organizing GUI view hierarchies, that is dividing a window into several panels which are in turn divided into other components. I've given a ...
-1
votes
2answers
106 views

New to Java and Spring. What are some good design principles for an inexperienced java developer like me?

I am learning Java and have written a few small useful programs. I am new to spring but have managed to understand the concept of dependency injection for decoupling. I'm trying to applying that in my ...
4
votes
4answers
213 views

Rails: Law of Demeter Confusion

I am reading a book called Rails AntiPatterns and they talk about using delegation to to avoid breaking the Law of Demeter. Here is their prime example: They believe that calling something like this ...
2
votes
0answers
160 views

How do you usually manage callbacks in Java using Swing library? [on hold]

I'm quite new to the Java Swing programming, and GUI development as well. As a beginner, I'm currently reading Design Pattern, but finding what I'm looking for is quite hard, most of the times. So ...
2
votes
5answers
349 views

Web programming, standard way to deal with a response that takes time to complete

With normal form submission I use the pattern Post / Redirect / Get, when processing the forms. I have a database application built with Django. I want to allow the users to select a number of items ...
-1
votes
0answers
45 views

unstructured workflow [closed]

I'm a dev, a fresh one actually with only 1 year of professional practice, but with a lot of enthusiasm and readings regarding my profession. I started working lately as an asp.net developer at a ...
0
votes
1answer
72 views

How are the forwarding of requests normally managed in the Chain of Responsibilty pattern? [closed]

I was just experimenting with the Chain of responsibility pattern, implementing my own version. I'm currently reading Design Patterns, but I'm not really sure whether DP tells to stop your ...
4
votes
3answers
232 views

When to use repository pattern

I have read recently that it is not good practice to use the repository pattern in conjuntion with an ORM, from my understanding this is because the abstraction they provide over the SQL database is ...
1
vote
1answer
164 views

Should Uncle Bob's example be refactored to an AbstractFactory or a SimpleFactory?

In the book "Clean Code" Robert Martin makes a statement regarding the following code: public Money calculatePay(Employee e) throws InvalidEmployeeType { switch (e.type) { case COMMISSIONED: ...
2
votes
0answers
142 views

What the best way to wire up Entity Framework database context (model) to ViewModel in MVVM WPF?

As in the question above: What the best way to wire up Entity Framework database model (context) to viewModel in MVVM (WPF)? I am learning MVVM pattern in WPF, alot of examples shows how to implement ...
3
votes
7answers
519 views

Is it a bad idea to create a class which will only have one instance?

Is it bad coding practice/design to make a class which will only be instantiated once? I have some variables and functions that can be grouped together under a class to "look good" (for a lack of a ...

15 30 50 per page