design

Online form design

Hi everybody. I have an idiotic question. Does anybody know how some applications allow the end user to dynamically design the web forms and add additional attributes to the application database by adding new fields to the form? Examples are IBM Tivoli Service Request Manager and Manageengine Service Desk Plus. Here is flash demo show...

CSS Debugging help - empty div collapsing

Hi Guys, The following HTML is from an aspx page. This is in regards to to the first child DIV element. In IE7 the HTML renders as I would expect even when that DIV element is empty. It should be approximately 1/3 the width of it's parent, but in FireFox it is collapsing to zero width. All 3 divs are floated left. Anyways, my question is...

Is it correct that part of business logic stays in the controller?

Hi having a simplified class like this that regulate a quiz game: class Game(): def __init__(self,username): ... self.username=username self.question_list=db.getQuestions() self.game_over=False def get_question(self): ... if self.question_list.is_not_empty(): return question def check_answer(answer) ...

Does Conway's Law Hold?

I understand Conway's Law as saying that any organization that designs or produces a product is destined/doomed to produce a product that is an image of their organizational structure. I originally though it was meant to be comedic, but have seen it play out a number of times in the projects I've worked in. When there are two developme...

supplying dependency through base class

I have a list of Parts and some of them need a pointer to an Engine, lets call them EngineParts. What I want is to find these EngineParts using RTTI and then give them the Engine. The problem is how to design the EnginePart. I have two options here, described below, and I don't know which one to choose. Option 1 is faster because it doe...

How to provide many constructors, but without too many dependencies?

This is a pretty basic C++ design question: I have a class that contains some data which is read-only, once the object is constructed: class Foo { private: class Impl; Impl* impl_; public: int get(int i); // access internal data elements }; Now, I'd like to implement several ways to construct a Foo object and fill it with dat...

How to decide on document file extension?

I'm writing a new document-based cross-platform chemistry application (Win, Mac, Unix), which saves files in its own format (no standard format exists for this field). I'm trying to decide on a file extension for the saved files. My questions are: How important is it nowadays to stick to 3 characters? Where can you check how much this ...

Which of these is a repository pattern?

My domain entities are lined up like a tree: Root - Child 1 -- Child 1.1 -- Child 1.2 - Child 2 -- Child 2.1 -- Child 2.2 We ended up with 2 (rather strong) opinions on how a repository should be designed around these domain objects: Opinion 1: I need 2 repositories Child1Repository & Child2Repository which gets managed by a RootFac...

ASP.NET MVC View information stored in a data-store...

Hi, I'm looking for some advice on storing views in a data-store (database, file, other) and display them based on routing data, all using ASP.NET MVC 2 and ASP.NET Routing. For example, I'd like to be able to display different views based on the following route data: /{country}/ /{country}/{area} But in the same vein I'd like to di...

Designing an iterator wrapper

I wrote a class that wraps an iterator and returns transformed values on demand: // iterator-wrapper.h template<class Iter, class Val, class Fct> class IteratorWrapper { Iter cur_; const Iter last_; const Fct fct_; public: IteratorWrapper(Iter first, Iter last, const Fct fct) : cur_(first), last_(last), fct_(fct) {} con...

Web design side decoration

I was wondering if anyone know of some good tutorials on how to design and code side decorations(or whatever right term there is) like the ones on these website: http://www.buckle.com/ I'm referring to the spring yellow and red flowers/butterflies Thanks ...

Design question: Filterable attributes, SQL

I have two tables in my database, Operation and Equipment. An operation requires zero or more attributes. However, there's some logic in how the attributes are attributed: Operation Foo requires equipment A and B Operation Bar requires no equipment Operation Baz requires equipment B and either C or D Operation Quux requires equipment (...

Visual modelling of permissions

I have come into the habit of hand-sketching various diagrams for software I create. My software is mostly for the web. I use E-R diagramming for the data logic (model of MVC) , and a personally invented diagram style for the interactions -- what pages lead to which other ones and what do they do, i.e. the views & controllers of MVC. Th...

Significance of Interfaces C#

Hi All, I would like to know the significant use of Interface. I have read many articles but not getting clearly the concept of interface. I have written a small program. I have defined the Interface Itest.Class(Manager) has implemented the Interface.Another class(Employee) has not implemented interface. But defined the same method(DoS...

Mobile Browser Web Page Solution

Hi all, I have a requirement to create a web page that is compatible on all mobile web browsers but I'm completely stuck on the design of the solution. I have been tasked with building a single web page that users complete and then at the bottom of the page, are given the option to save a draft (to return at a later date and complete...

In MVC where do you put references to your model Classes?

I have been wondering for a while, after asking different people and without any of them providing what I would call an "at least a bit concrete answer": Question: Where, in an iPhone application should an application keep the references to it's Model Classes (using the MVC approach) ? In iPhone (and Cocoa) applications we have what w...

Realising Class Diagram for the problem

I need to develop a certain sw module which outputs the data in the following format Main object and related object and Quantity i.e Desktop Computer ---- CPU 1x ---- Mouse 1x ---- KB 1x ---- Monitor 1x ---- Speakers 2x ...

How to allow derived class to call methods on other derived class? OO-design

Say I have something like -- this is just an example mind you. class Car { void accelerate(); void stop(); } class Person { void drive(Car car); } class Toyota : public Car { void accelerateUncontrollably(); } class ToyotaDriver : public Person { void drive(Car car) { // How to accelerateUncontrollably without...

How to implement Administrator rights in Java Application?

I am developing a Data Modeling Software that is implemented in Java. This application converts the textual data (stored in a database) to graphical form so that users can interpret the data in a more efficient form. Now, this application will be accessed by 3 kinds of persons: 1. Managers (who can fill the database with data and they c...

Fundamental software design concepts / principles books

I need to introduce basic design principles in my team. I am looking for books which are not restricted to only object oriented design principles. And which can cover concepts such as Modularity, Information hiding etc. Just for information - The implementation language for all the project in our team is C. ...