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

learn more… | top users | synonyms (1)

-3
votes
0answers
27 views

Design of model for Agile development [on hold]

In modern day most of the projects are being developed in agile and scrum way. Requirements keep on changing on very frequently with each sprints resulting in tedious changes of models and views, as ...
0
votes
0answers
34 views

Design patterns and practices for automated integration testing

I recently took a lovely class on automated unit testing, in which I learned some specific patterns for laying out classes (e.g. one class per scenario, separate methods for happy path + each sad ...
-1
votes
0answers
36 views

Cellular/Network SMS integration for Quiz application

As a layman , I tried with google but no success, what i want to do is to make sms poll/quiz type of thing where user can send sms to "7766" and get response like "Welcome to ABC. reply with 1 to get ...
13
votes
2answers
1k views

How to improve upon Bloch's Builder Pattern, to make it more appropriate for use in classes that may be extended and sub-extended many times over?

I have been greatly influenced by Joshua Bloch's Effective Java book (2nd edition), probably more so than with any programming book I've read. In particular, his Builder Pattern (item 2) has had the ...
-3
votes
0answers
27 views

writing recognition algorithm for Google Earth maps [on hold]

How to design an algorithm for recognizing geometric shapes on Google Earth/Maps? I have seen face recognition algorithm results but not the necessary algorithm.
0
votes
5answers
457 views

What is this design pattern called? [on hold]

I have some code: /// <summary> /// Represents Record Locator class /// </summary> public class RecordLocator : IRecordLocator { /// <summary> /// The Record Locator string, ...
3
votes
3answers
377 views

Extension method naming convention [on hold]

We are using some utility methods in our company to simplify programming. So we have following string extension: public static bool IsNoE(this string s) { return string.IsNullOrEmpty(s); } ...
0
votes
3answers
126 views

Doesn’t active record violate SRP and OCP?

I have watched the active record classes in our project grow into large, do-it-all classes. When you need anything about a user, for example, you should go to the Person class. While this makes ...
2
votes
4answers
213 views

Testing all combinations

I need to do some performance measurements inside my application. I want to measure, change some parameters, measure again. There are different algorithms I want to test, and there are various ...
10
votes
2answers
413 views

How do you manage config with dependency injection?

I am a big fan of DI/IOC. It is great for handling/abstracting away hard dependencies, and makes life a little easier. However I have a small gripe with it, which I am not sure how to solve. The ...
0
votes
1answer
90 views

Practical Use of Depency Injection (IoC) Container

I am creating a MVC-ish framework in PHP. I am trying to implement a DI Container to allow the creation of controller objects (among others). My MVC framework is pretty typical. Each module (or ...
0
votes
2answers
136 views
+50

Android Data persistence question

I have an android app in which users have sets of items, and each item has about 10 properties. What I do at the moment: items are stored in the server database when the user logs in, I get all the ...
7
votes
3answers
283 views

How to decompose / model a chessboard

As someone new to programming, I am building a chess web application in JavaScript, both for fun and to learn more about design patterns. I keep running into a wall, which is how to decompose the ...
-1
votes
0answers
61 views

Pros and cons of not making app config object easily accessible across application [closed]

I am working with a home grown server application written in Java. We don't use an application server platform or a framework that would offer access to some high level bootstrapped application ...
0
votes
2answers
275 views

Choosing the right Design Pattern

I've always recognized the importance of utilizing design patterns. I'm curious as to how other developers go about choosing the most appropriate one. Do you use a series of characteristics (like a ...

15 30 50 per page