Zend framework is pretty fast growing, we all agree and we all had been surprised while trying out the modular structure of Zend Framework, if to be concrete the bootstraping of the modules - all the bootstrap files of the modules are executed in the beginning no matter if we are using/accessing that module or not. As far as I remember t...
We can see different abbreviations for same acronym in the software industry.
Where can I find the actual list of acronym used in the design patterns and other parts of the projects and their abbreviation?
Say for example :
TDD : Test Driven Development/Design;
ORM : Object-Relational Mapping.
Thanks
Gabi
...
We have a large M.I.S system which contain 12 sub systems. Version 1.0 is completly finished and We decide to change the User Interface in Version 2.0. So We are looking for some good UI design pattern for large-scale web based system.
If you know any good UI Design Patterns, please let us know ?
Also if you think we should consider so...
What is the best having when implementing Memento pattern (for Undo/Redo)
in witch collection to Keep Mementos?
Basically, I need this(c = change, u = undo, r = redo):
0
*c
-1 0
*c
-2 -1 0
*c
-3 -2 -1 0
<u
...
I have an interface declaring 4 methods ...
I added an abstract class implementing this interface to give developers the opportunity to choose how many methods they want to implement (specially useful in case of a listener) ...
public interface Mylistener {
void actionA();
void actionB();
void actionC();
void actionD();...
What are the best resources on Design Patterns catering specifically to web development with JavaScript and JQuery?
I'm particularly interested in information on programming my own libraries, reusable components, widgets, etc. and the merits of various techniques (for instance in the case of components/widgets comparing those employed i...
We have a rather complicated system of permission handling in our (ASP.NET web) application. Users can have specific permissions on different kinds of objects, some permissions are even packed into groups / roles that are assigned to users. All in all this ends up in a pretty complicated mess where for determining whether a user can do /...
I want to create a voting system, where multiple domain objects can be voted on:
a calendar event
a comment
a user
So I figured I would create a Voteable interface for these items:
interface Voteable
{
public function vote( User $user, $value );
}
I thought this vote method would proxy a repository method, something like:
cla...
In C++, I often needed NVI to get consistency in my APIs. I don't see it used as much among others in C#, though. I wonder if that is because C#, as a language, offers features that makes NVI unnecessary? (I still use NVI in C#, though, where needed.)
...
I had a bunch of objects which were responsible for their own construction (get properties from network message, then build). By construction I mean setting frame sizes, colours, that sort of thing, not literal object construction.
The code got really bloated and messy when I started adding conditions to control the building algorith...
I'm trying to implement a Passive View based gui system in swing. Basically i want to keep my view implementation (the part that actually contains swing code) minimal, and do most of the work in my Presenter class. the Presenter should have no dependency on swing and also should "run the show", i.e. tell the view what to do and not vice ...
This is a bit of weird scenario. I had a class that was quickly becoming a God class. It was doing WAY too much. Suddenly I had violated SRP. The class was responsible for X and Y and Z, oh and A, and B, don't forget C. So I decided to refactor it. The reason it got this big is because the class does a lot of work with a collection which...
I've set myself the task of implementing a real time MIDI application. Like all the other software I've written to date, I began by coding. I implemented a tiny GUI (GTK2) application that can control the transport state of the Jack Audio Connection Kit and its clients.
I have never written a real-time application before, and have only ...
Possible Duplicates:
What is so bad about Singletons
Problems with Singleton Pattern
Are there any downsides to the singleton pattern? I heard this was an interview question and i am coming up short on what was meant.
imho, it's about the usage and nothing in the pattern itself is problematic
...
I implemented the multiton pattern using a templated class in C++.
#ifndef MULTITON_H
#define MULTITON_H
#include <map>
template <typename Key, typename T> class Multiton
{
public:
static void destroy()
{
for (typename std::map<Key, T*>::iterator it = instances.begin(); it != instances.end(); ++it) {
de...
I just noticed a new term pimpl idiom, what's the difference between this idiom with Bridge design pattern? I am confused about that.
I also noticed the pimpl idiom is always used for swap function, what's that? Could anybody give me an example?
...
I am using a repository design with web applications (repository (data layer) exposing model (objects) to the business layer which is then consumed to the data layer (ui). Objects or lists of objects are passed between the layers with this type of implementation.
I am finding my business layer is a becoming a series of manager type cla...
Hi
I'm doing an event manager in Freepascal
Each event is an object type TEvent (=object), each kind of event must derive from this class.
Events are differentiated by an integer identificator, assigned dynamically.
The problem is that i want to retrieve the event id of an instance, and i can't do it well.
All instances of a class(obj...
I'm still a neophyte Python programmer and I'm trying to do something that is a bit over my head.
What I've done is create a simple IRC bot using asyncore (and asynchronous sockets module). The client runs in a continuous loop, listening to the conversation in the channel. What I would like to do (I think?) is implement an observer pa...
One of the patterns used with asynchronous delegates is also a Callback pattern, where initial thread ( one that called BeginInvoke ) T1 continues without waiting or checking whether the spawned thread T2 has completed. Instead, when T2 has completed, the T2 calls callback method, which handles the results, calls EndInvoke and informs t...