In a previous job, my manager suggested use of a Translator pattern for converting data from a DataTable to objects. Basically, the Translator class had only static (i.e. class) methods so it was an aggregation of function calls. My initial approach was to implement constructors for each object that could take a DataTable row as an argum...
I am really a big fan of javascript. It is really a great prototype based OOP language. Now I want to learn some other prototype based language. Really really interested in some design guideline i.e How can I manage the code without classes etc. Which language should I choose ? Some resource in design patterns for prototype based languag...
There are several publications about patterns in j2me:
Architectural manifesto: The MVC design pattern in MIDP development by Mikko Kontio
Identification of Design Patterns for Mobile Services with J2ME by J. Narsoo and N. Mohamudally
Big designs for small devices by By Ben Hui
Patterns I use sometimes:
MVC - to separate UI from contr...
I need to design / architect / develop a web based social network type application.
Basic functionality:
- users create accounts on the system
- users agree to "friend" each other
- users create content within system
- users specifies which friends may view/edit content that they created
Surely this core functionality has been cr...
What is apply invocation pattern in Javascript in reference to function invocation patterns and how can I use it?
What are the benefits of using this invocation pattern.
...
Hi all,
I am currently working on a project where I have a BankAccount entity for some other entity.
Each bank account as a reference to a bank entity, an account number and optionally an IBAN.
Now since an IBAN can be validated, how can I ensure that when the IBAN is set for an account is valid. What would be a clean architectural ap...
Recently i got this question in my interview..
He had asked me about N tier ,I was telling him about 3 tier applications Suddenly he asked me Can i have 5 tiers :) I told him may be but i never used that..
IV: Ok now tell me what can be the 5 tiers
ME: BLa bla
After the interview i asked him for the answer and he gave me a example lik...
How to create different patterns (like coverflow) in javascript? I don't want to use the already existing plugins provided by JQuery and other frameworks.
I want to try developing from scratch. Any place where I can get documentation or tutorials to start with ?
...
Hello:
I've currently completed one of two phases of a project that required I write database information to XML using C++. While use of a third party tool was used to do the actually formatting of XML tags and data, I still had to design a model along with business logic to take the database tables and map them into XML structures.
F...
Are there any good references for terms and expressions within development? I'm talking a site that defines patterns, terms, prefixes, suffixes and so on.
Definitions examples can be something like this:
Factory
Builder
Parser
Collection / List / Dictionary / Set
Provider
Expression
Something to refer to when you get into an argumen...
Hi,
I'm looking for a VBA implementation of the Memento pattern (GoF). I'm looking at converting the Java version from Wikipedia. It will be used for Undo/Redo functionality for an Excel add-in.
Specifically, I am having difficulty with the line:
return new Memento(state);
Or, to make it more specific, can someone rewrite this in VB...
i am currently implementing a grails web-app, with a couple of complex forms where modifications on an association graph should be managed "in-memory" (that is the http session) as long as the entity or top-level domain object is not saved.
e.g.
top-to-bottom: Document -> Categories -> Sub-Categories ...
requirement: modifications to ...
I've created this "question" as a community-wiki, because there is no right or wrong answer. I only would like to know how the community feels about this specific issue.
When you have a class with instance variables, and you also created properties that are simply getters and setters for these instance variables, should you use the prop...
hi
has anyone implemented design patterns for concurrent programming. If so did you have any implementation issues/difficulties??
Thanks
~Sanjay
...
I just realize some of my classes have no members. It has several public functions and maybe private functions and everything is passes through params. I realize functional programmers do this all the time but is this class considered special if it access nothing outside of the class and only uses its params for reading (except for out p...
Hi everyone,
I am running into a design problem. I have the following (pertinent) classes:
class LoginScreen {
public login() {
httpRequest = factory.createHttpRequest(url, method, this);
httpRequest.start();
}
public authorize() {
httpRequest = factory.createHttpRequest(url, method, this);
httpRequest...
I'm having trouble naming a set of software modules that follow the same pattern. I'm hoping this already is a named pattern as I can't come up with a decent name.
The situation:
I have a fairly sophisticated/complex object oriented application, complete with unit tests. I need to start running the thing and playing with it. There are m...
My task is to make a networking application with protocol identification, under a proprietary license.
I am considering reusing the protocol matching patterns from l7-filter, but not l7-filter itself.
These data files are available under a dual GPLv2/CC-ShareAlike 2.5 license.
The CC license says I can't "build upon" it, but is it OK to...
I have a small question regarding design patterns
I have this 2 classes which extend from the very same class (doctrine_record) so they mainly have the very same methods and functions however, they now have different attributes. I'd like to create a wrapper that exposes the 2 classes summed attributes, I remember there was a pattern fo...
I've read several different posts on paging w/ in MVC but none describe a scenario where I have something like a search form and then want to display the results of the search criteria (with paging) beneath the form once the user clicks submit.
My problem is that, the paging solution I'm using will create <a href="..."> links that will ...