design

How do I design an application to support changeing requirements?

Changed requirement is bad thing in software development process. If requirements change, we must change software structure. How do you design flexible core modules to support solving this problem? Are there other techniques for dealing with changing requirements? ...

Java Enums can have behavior?

In Java, an Enum can do the great things that Enums do, but can also have methods (behavior and logic). What advantage does that have over using a class using an enum? Simple examples to illustrate the point would also be welcome. ...

Top things to look for when testing web pages/site

Hi, I was looking to get a prioritized list of things to look for while doing web site testing. There are things we could do to improve the performance of a site and there are things which affects the performance. Is there a guide for developer and testers to follow strictly which will deliver the best website experience? Related: W...

Page View Class Design

Hi all, Suppose i have the following class. public class Location { public Id { get; set;} public Name { get; set;} } And i have a WebPage called Location that looks like this. txtId txtName txtCountStaffWorkersAtLocation txtCountVehiclesAtLocation txtCountNonStaffWorkersAtLocation txtCountetc listViewPersonnel listVi...

C# Design and Development: Expert One on One (Paperback) by John Paul Mueller

Has anyone read it? Recommendations? Thanks ...

suggestions for designing a UI to Generate, for loop, if condition and switch case.

I'm building a UI for my college, where I want people who are new to programming with C, to use my UI. In there I want to provide a feature where if they wish to insert an IF-Elseif-Else condition, or a FOR loop or a Switch Case, they may use the UI, where in they just have to fill in the values (the conditions) and the UI generates the ...

Open Source Java Projects (with good design documentation)

Hello, I am writing in request of some suggestions for some well-designed open source Java projects which contain good design documentation - especially how the design evolved as more people looked into it (and raised flaws?) in the proposed design). I remember reading Joel Spolsky comment about most of the value in a software product ...

Introducing Brevity Into C# / Java

Background Currently, if I want to create a new object in C# or Java, I type something similar to the following: List<int> listOfInts = new List<int>(); //C# ArrayList<String> data = new ArrayList<String>(); //Java C# 3.0 sought to improve conciseness by implementing the following compiler trick: var listofInts = new List<i...

RMI interface design principles

Im currently working on an RMI client that will talk to an RMI server (developed by a different division of the company I work for). The other team own the interface, but IMO it's overly complex, with many different types being passed backwards and forwards, as well as an unnecessarily (IMO) complex exception hierarchy. I've expressed ...

Visitor pattern and recursion

Is there any advantage for using visitor pattern in a recursive scenario? If so can you demonstrate it programmatically? ...

In a Java interface, how can I *not* use one particular method inherited from a parent interface?

I have a hierarchy of three interfaces, grandparent, parent and child. Parent and child have a method "add", which requires different input parameters in the child. While it's no problem to add the required signature in the child, the inherited method will be pointless, so is there a way to not have it in there at all? The other methods ...

Aggregation verses Composition

I've had a hard time understanding the difference between composition and aggregation in UML. Can someone please offer me a good compare and contrast between them? I'd also love to learn to recognize the difference between them in code and/or to see a short software/code example. Edit: Part of the reason why I ask is because of a revers...

Unit testing against large databases

I would like to ask about your suggestions concerning unit testing against large databases. I want to write unit tests for an application which is mostly implemented in T-SQL so mocking the database is not an option. The database is quite large (approx. 10GB) so restoring the database after a test run is also practically impossible. T...

Is this sound Objected Oriented Design for an e-Commerce site?

I'm pretty new to OOP/OOD, and I realize I have a lot to learn, so I'd like to ask the SO community for their input. Basically, I'm using CakePHP's MVC framework, and the online store I'm building is just using 2 models, Category and Product, described by the following CREATE statements: CREATE TABLE `categories` ( `id` int(11) uns...

Examples of open source high quality, well designed python software?

I am looking for a well-engineered, well-built python application that could serve as a guideline to demonstrate best practices relating to software development in general, and more specifically in python. (Note that software in other languages would also be welcome provided they are of good quality and could serve as models of good arch...

Interface exposes type A, but implementation requires type B (subclass of A)

I have a system which I've been wrestling with for a while. Essentially, it uses a lot of abstraction to deal with the fact that later extension is not just expected, but necessary. One place this is required is data access. The system generally deals with managing objects encapsulating some observation (in the sense of an observed value...

When developing a web app (ASP.NET/MVC) when do you add your security?

When developing a web app, in my case a ASP.NET MVC app, but this question isn't platform specific, when you do you add the infrastructure for membership, roles and authentication? I've actually done it both ways.... 1. Start developing the app with membership/roles/authentication being one of the first milestones and 2. Wait until mos...

One listener for all packets vs separate listeners to handle specific types

Smack's XMPPConnection implements an event-driven manner of receiving XMPP responses from a jabber server. The method [addPacketListener][1] allows you specify your own custom listener. I'm maintaining code in which one PacketListener handles all types of incoming messages. In the interest of improving the design, (with a nod to the Sing...

What is the best Design pattern to Handle a scene that can go through multiple phases

Here is my problem. I am trying to write a small simple game engine (I'm doing it in order to improve my design skills) . I'm having a Scene Object which hold everything the rendering API need in order to render it. Naturally , I would like my scene to be immune to future changes , meaning future changes to it will not have to break it...

What's the best way to tell a framework which database to use?

With Java, I'm trying to implement a client-server scenario; both are using the same model and both are using the same framework. Obviously, I want the framework to be independent from the model and applications, but it must know who is using itself and consequently, which database to use in the other end. What is the best and simplest...