Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A design pattern is a general reusable solution to a commonly occurring problem in software design.
7
votes
Should we avoid using design patterns in constantly changing projects?
The question seems to be wrong at so many points. But the blatant ones are:
For the Null Object Pattern you mentioned, after the requirements changed, you change a bit of the code. That's fine but i …
1
vote
In Java, what are some good ways to separate APIs from implementation of entire projects?
From what I understand people often use the factory pattern for this.
They put the API interfaces into separate module (say a jar file), and then when the clients want to use the API and has access t …
2
votes
API - How to handle scope based functionality?
I strongly suggest that you put this scope logic inside your data schema design (SQL tables for example). Don't do filtering. The reason is mainly scalability.
When there are so many data items, you …
10
votes
Accepted
is it valid that a state machine can have more than one possible state for some transition?
Yes, you can have that.
In automata theory, people call it non-deterministic state machine.
From the Wikipedia article:
In automata theory, a nondeterministic finite automaton (NFA), or nonde …
-1
votes
Are error variables an anti-pattern or good design?
Unless there is something very specific, I think having an error variable for validation is a bad idea.
The purpose seems to be about saving the time spent on validation (you can just return the varia …
3
votes
1
answer
2k
views
How to design extension mechanism for java app
I have an application where I have a set of core features.
The application itself HAS to work in core only mode.
I would also want to make the application extensible such that, when certain jar/plug …