design

How much of your database application should be in stored procedures?

I'm writing a second interface to a database application to get around some shortcomings of the original interface. Unfortunately, if I create new records, expected audit trail records will not be generated. It sure would have been nice if the database design had worked such details into table triggers, or else provided a stored proced...

VM Design: More opcodes or less opcodes? What is better?

Don't be shocked. This is a lot of text but I'm afraid without giving some detailed information I cannot really show what this is all about (and might get a lot of answers that don't really address my question). And this definitely not an assignment (as someone ridiculously claimed in his comment). Prerequisites Since this question can...

Client changes in a TDD/BDD process

I'm coming from a big design background, and just learning TDD/BDD so bear with me if this is a simple question. It seems that many client decisions aren't actually recorded anywhere - they're just documented in the code and tests. So my question is: what happens when the client changes some of these undocumented decisions? How do yo...

Software Architecture for developing apps that run on Multiple platforms

A variety of apps out there, like Firefox, Fring, Skype run on a variety of platforms. How do they manage their code? Do they have different UI for different platforms? As in, Firefox have to use Cocoa on Mac, WinForms or equivalent on Windows, QT equivalent on Linux. How is it possible for the same source code to show diff UI just by co...

What tools (free) do you use to design software

What tools do you use to speed up documenting application design. Namely, creating wireframes, flowcharts. What other methods do you find essential . Is the general consensus that use cases are vital, or is a good functional spec document easier and quicker ...

Creating a logic gate simulator

I need to make an application for creating logic circuits and seeing the results. This is primarily for use in A-Level (UK, 16-18 year olds generally) computing courses. Ive never made any applications like this, so am not sure on the best design for storing the circuit and evaluating the results (at a resomable speed, say 100Hz on a 1....

Domain Driven Design, Containing Entities and NHibernate Persistence

In my domain driven design I have a containing entity, say Car, which has a list of constituent entities, e.g. Wheel. Now, I want to add a ChangeWheel method to my car entity. Note that changing the wheel does not actually modify the car entity as such. It only affects one of the entites in its wheel collection. I.e. the Car entity h...

Is this a poor design?

I'm trying my hand at behavior driven development and I'm finding myself second guessing my design as I'm writing it. This is my first greenfield project and it may just be my lack of experience. Anyway, here's a simple spec for the class(s) I'm writing. It's written in NUnit in a BDD style instead of using a dedicated behavior driven fr...

Domain Driven Design - Aggregate Roots

I'm struggling with aggregates and aggregate roots. I have a natural aggregate root which works for about 60% of the user requests. I.e. those requests naturally apply to the aggregate root. Within my aggregate I have another entity which can only exist as a member of the aggregate root. Users, however, will be told about this other ...

Controling the size of components in Swing when their frame is resized

I have a simple form like this: Username: .......... Password: .......... When the form is re-sized, I would expect JTextField (illustrated by .........) to be re-sized horizontally to fit the new width but not vertically (the same height for JTextField). Do we have any way to control this? Thanks! ...

Customer class associated with multiple entities

So I have an application thats main purpose is to manage customers. My issue is that I'm not sure how to tie everything related to the customer together? For the sake of this post, let's pretend that a customer can have an unlimited number of emails. Below is what I was envisioning: class Customer { private int id; ...

What tools are available for designing Web UI?

Sometimes we use Photoshop, other times MS Visio. Is there any tool to design the User Inteface that is intuitive and easy to use? Also, is there any best practices. What we want to accomplish is a simple and easy to see image of how the actual UI should look. We don't want to deal with any programming at this point, since this is do...

UI Design approach for a questionaire

Scenario: There is this online questionaire that will be filled in by various departments in a company. The questions are data driven and are different for each department. But for some of the questions, the way the input is taken is also different; for some departments the same question is asked to be replied to, by selecting values fr...

Looking for good (web) UI patterns for multi-select from a large (100+) list.

We have an application where we are recording a one to many mapping of values, with the 'many' side containing 100+ options. A simple select list isn't going to work because ctrl+click is a little too fragile for this user community. This will be done in ASP.NET, so any pointers to existing controls for this purpose would be very much ...

Why is Object.GetType() a method instead of a property?

From a design perspective, I wonder why the .NET creators chose System.Object.GetType() instead of a System.Object.Type read-only property. Is it just a (very minor) design flaw or is there rationale behind there? Any lights welcome. ...

Is there any benefit to using single Repository instance for Asp.net Mvc application?

In CarTrackr project, It use some technique that creates only 1 repository instance for all request in Asp.net Mvc website and uses UnityControllerFactory class to manage all repository instanes(send to requested controller). Is there any benefit to using single repository instance when compare with creating new repository instance eve...

Why would I use the Unit of Work pattern on top of an NHibernate session?

When would I write a UoW implementation on top of what is already provided by NHibernate? Any real world examples? ...

What is an Anti-Pattern?

Hi, I am Studying about Patterns and Anti-patterns . I have a clear idea about Patterns. but I am not getting Anti-Patterns. Web Definitions and Wikipedia is confusing me a lot. can anybody explain me in simple words that what is anti-pattern ? what is the purpose . what they do ? .. is it a bad thing or good thing ? ...

Inheritance in a composite structure

Hello everybody, i have a problem related to the design of a composite structure. I have an Expression abstract class that describes a generic mathematical expression. The idea is that an expression can be an atomic expression (like "x" or "3") or some kind of aggregation of atomic expressions (like summatories, productories, exponentia...

What are pro/cons of push/pull data flow models?

I've been developing an in-house DSP application (Java w/ hooks for Groovy/Jython/JRuby, plugins via OSGi, plenty of JNI to go around) in data flow/diagram style, similar to pure data and simulink. My current design is a push model. The user interacts with some source component causing it to push data onto the next component and so on un...