design

Is factory method proper design for my problem?

Hello Everyone, here is my problem and I'm considering to use factory method in C++, what are your opinions ? There are a Base Class and a lot of Subclasses. I need to transfer objects on network via TCP. I will create objects in first side, and using this object I will create a byte array TCP message, and send it to other side. On t...

Android listing design problem with cursors

Hi. I have a following situation in my android app. I have an app that fetches messages from inbox, sent items and drafts based on search keywords. I use to accomplish this by fetching cursors for each manually based on selection by user and then populating them in a custom data holder object. Filter those results based on given keywo...

Which should be created first ER Diagram OR Class Diagram?

The very first step i created a DFD. Then i moved on to create a Class Diagram. And while doing that i felt that i should create the ER diagram first. As there were many details which could not be captured in a Class diagram. So, my question should i create ERD first OR Class Diagrams ? your valuable inputs are appreciated guys!!! than...

Are there applications for RIA Services that go beyond simple CRUD editors

It seems that the large majority of tutorials, samples and in fact out of the box templates guide devlopers new to RIA Services towards building a simple CRUD / table editor app. I realize that CRUD is simple to communicate and gets a big round of applause but I can't believe that real line of business applications are all that simple. ...

Using Hidden Markov Model for designing AI mp3 player

Hey guys. Im working on an assignment, where I want to design an AI for a mp3 player. The AI must be trained and designed with the use of a HMM method. The mp3 player shall have the functionality of adapting to its user, by analyzing incoming biological sensor data, and from this data the mp3 player will choose a genre for the next son...

Need an option to go back to a previous web design.

I'm creating a website for a client in which he wants a link that people can click on to go back to the previous website design and go to that design every time they go back to that website. How would I go about doing this? Would I need to create a cookie and if I do how do I do that? Thanks for all your help, I'll come back to this...

Code Design Process?

I am going to be working on a project, a web application. I was reading 37signals getting real pamphlet online (http://gettingreal.37signals.com/), and I understand the recommended process to build the entire website. Brainstorm, sketch, HTML, code. They touch on each process lightly, but they never really talk much about the coding pro...

How do you unit test new code that uses a bunch of classes that cannot be instantiated in a test harness

I'm writing a messaging layer that should handle communication with a third party API. The API has a bunch of classes that cannot be easily (if at all) instantiated in a test harness. I decided to wrap each class that I need in my unit tests with an adapter/wrapper and expose the members I need through this adapter class. Often I need to...

How to maintain a pool of names ?

I need to maintain a list of userids (proxy accounts) which will be dished out to multithreaded clients. Basically the clients will use the userids to perform actions; but for this question, it is not important what these actions are. When a client gets hold of a userid, it is not available to other clients until the action is completed....

Interface Design Problem: Storing Result of Transactions

Requirements: multiple sources of input (social media content) into a system multiple destinations of output (social media api's) sources and destinations WILL be added some pseudo: IContentProvider contentProvider = context.getBean("contentProvider"); List<Content> toPost = contentProvider.getContent(); for (Content c : toPost) { ...

Architecture Options - forms and a cms-like pdf producing system

Customer has asked for a system that involves a set of pdf forms, a web UI and some various functions (log-in, administration, permissions, the usual) and there's a few rubs I've identified and would like some feedback or maybe even completely different ideas on how to go about it. The main focus is the data contained within these forms...

Using an embedded DB (SQLite / SQL Compact) for Message Passing within an app?

Hello, Just out of curiosity, for applications that have a fairly complicated module tree, would something like sqlite/sql compact edition work well for message passing? So if I have modules containing data such as: \SubsystemA\SubSubSysB\ModuleB\ModuleDataC, \SubSystemB\SubSubSystemC\ModuleA\ModuleDataX Using traditional message pas...

What is the best way to expose a callback API - C++

Hi, I have a C++ library that should expose some system\ resource calls as callbacks from the linked application. For example: the interfacing application (which uses this library) can send socket management callback functions - send, receive, open, close etc., and the library will use this implementation in stead of the library's imple...

List of objects or parallel arrays of properties?

The question is, basically: what would be more preferable, both performance-wise and design-wise - to have a list of objects of a Python class or to have several lists of numerical properties? I am writing some sort of a scientific simulation which involves a rather large system of interacting particles. For simplicity, let's say we hav...

Some basic UML questions

What does it mean when you have something as the following picture? Each Customer has none, one or more Orders while each Order has only one Customer? And in relationship to the following one: What does the black diamond mean in this context? How is that black diamond called? Thanks ...

Need design ideas generators.

Hello guys I am a web developer and sometimes I have to do some design myself for my customers but design actually is not my best thing to do. I am looking for a program that can help me getting fast and reliable design ideas but I am not looking for code generator like Artisteer. Actually design is a hard task and my designs always look...

Best way for non-technical workstaff to review website design

I am the technology director for a small nonprofit, and I have a website that needs to be reviewed and commented on by the other staff members. Is it better to send out the design to everyone for individual/private comments, or just have a meeting and present the design to the whole group? ...

Dealing with dependencies between WCF services when using Castle Windsor

I have several WCF services which use castle windsor to resolve their dependencies. Now I need some of these services to talk to each other. The typical structure is service --> Business Logic --> DAL The calls to the other services need to occur at Business Logic level. What is the best approach for implementing this? Should I simp...

Good event calendaring / scheduling design guide?

Hello, In an application I'm designing, the user has to be able to specify rather complex event scheduling (continuous time-block vs. daily time-blocks, exception date/times, recurrence patterns etc.) Does anyone know of a good design page for such a thing online? For example, I was highly impressed with this page's description of how...

Design pattern for extending Android's activities?

While programming on Android, I end up writing a parent activity which is extended by several others. A bit like ListActivity. My parent activity extends Activity. if I intend to use a Map or a List, I can't use my parent activity as superclass - the child activity can only extend one activity obviously. As such I end up writing my paren...