Tagged Questions
0
votes
3answers
117 views
Search on multiple values
I have a database having around 15 tables.Currently I am working on a report generation page, which is having 16 criteria.The values are distributed among multiple tables.User can select any number of ...
0
votes
2answers
148 views
When modeling a virtual circuit board, what is the best design pattern to check for cycles?
To make it simple assume you have only AND and OR gates. Each has two inputs and one output. The output of two inputs can be used as an input for the next gate For example:
A AND B -> E
C AND D -> F
...
1
vote
3answers
147 views
Defining formula through user interface in user form [closed]
I am a student and developing a simple assignment - windows form application in visual studio 2010.
The application is suppose to construct formulas as per user requirement.
The process: It has to ...
2
votes
2answers
172 views
Dealing with units in arithmetic operations (multiplication and division)
I need to design a function to perform the basic arithmetic operations that are addition (+), subtraction (-), multiplication (x), and division (/) between 2 numbers.
That function takes 3 arguments:
...
4
votes
2answers
256 views
What is required for a scope in an injection framework?
Working with libraries like Seam, Guice and Spring I have become accustomed to dealing with variables within a scope. These libraries give you a handful of scopes and allow you to define your own. ...
12
votes
2answers
3k views
Best practice/Patterns for two way data synchronisation
Quite often in my work the idea of 2-way data synchronisation between database systems crops up. The classic example is two slightly different CRM systems (say, Raiser's Edge and Salesforce) and the ...
7
votes
3answers
348 views
Data replication patterns / algorithms
I have a series of systems that need to be distributed to a variable number of nodes (at least two, but more likely 8 - 10). For performance reasons, any one piece of state needs to be maintained in ...
3
votes
2answers
488 views
What is a good code pattern for single retry then error?
I am writing a routine which has the following form:
TRY A
IF no success, B
IF no success, RETRY A
IF no success, throw error
It's not trivial to extract either A or B into it's own routine, so ...
13
votes
8answers
661 views
Algorithm Vs Design [duplicate]
Possible Duplicate:
Is it essential to learn algorithms to be a real programmer?
This question is, perhaps, related mostly to web developers who, like myself, code enterprise applications ...
3
votes
10answers
398 views
Does it make sense to ask, “What is the difference between Design Pattern and Algorithm?”
From Wikipedia:
In mathematics and computer science, an algorithm is an effective
method expressed as a finite list of well-defined instructions for
calculating a function.
In software ...
17
votes
12answers
2k views
What should a programmer learn first: Algorithms or Design Patterns?
I have new junior programmers (new graduates) who just joined my team, some of them do not know much about algorithms and design patterns. I am not sure which one should I teach them first?
4
votes
8answers
932 views
What do you consider to be the essential design patterns? And do you use them? [closed]
It seems to me that programmers have an increasingly uphill task of staying up-to-date.
In my efforts to improve my programming ability, I am in search of the essential design patterns that are ...