design

property-value database model

How to model a database when you have a different type of value(int, float, boolean, string etc.) of some property, and all possible types are not predefined? I think of a way that all values are strings in database and have some type attribute associated and then convert to that type in the application.. is there a better solution? ...

Website Page Layout Width

Hey guys, I have designed the home page for my website. Now only specifing the with is remaining. After debating a lot, i decided to go with a fixed page layout. How do i do that? How do I put everything within 750px (or whatever you suggest)? ...

How to stop/restrict execution of some method (~when already some object is calling that).

Dear Experts, i am stuck in a situation, where i need to move balls in multi-user way, i m using RMI in a distributed animation of moving BALLS . My goal is to move multiple balls in a way, so that multiple clients observe the same movement/position of balls, i m using ball object which is remote object. My problem is: i am calling t...

Domain model for my Java IDE

Hello I'm currently making an IDE for the Java platform. This IDE for education purposes only.I'm working of the documentation and in the analysis phase. Right now I'm at the stage of making the domain model for my project and I'm confused what to as to how the domain model figure would look like. The IDE will feature open/save creat...

Ideal method to get db schema from clients?

Hi, What would be an ideal way of getting db schema designs from clients via the web? Was thinking of having a textarea in a form and ask them to enter the field names, max length, and sample data. E.g. FirstName, 20, Joe LastName, 20, John Age, Integer, 25 Bio, Text, Bio info about Joe John .... Or should I ask them to email or at...

python circular imports once again (aka what's wrong with this design)

Let's consider python (3.x) scripts: main.py: from test.team import team from test.user import user if __name__ == '__main__': u = user() t = team() u.setTeam(t) t.setLeader(u) test/user.py: from test.team import team class user: def setTeam(self, t): if issubclass(t, team.__class__): self.t...

Design Patterns: How would you describe the MVC model?

Ok, I need to give some attributes to describe what MVC model means for a developer. And the only word that hits for the moment it's modularization (separation). And the funny thing is that I need to give some adjectives, not nouns. :| Any help? :) ...

Is it better to have lot of interfaces or just one?

I have been working on this plugin system. I thought I passed design and started implementing. Now I wonder if I should revisit my design. my problem is the following: Currently in my design I have: An interface class FileNameLoader for loading the names of all the shared libraries my application needs to load. i.e. Load all files in ...

How do Flex developers coordinate with designers?

I've usually designed Flex applications myself but this time I'll need a designer to assist with skinning the application. I've worked with this designer for a while, and we could work well on an HTML/CSS environment. He can't code, he sends me sliced PSDs which I could convert to clean code. But I'm not sure how to have him assist me wi...

Attribute lists or inheritance jungle?

I've got 2 applications (lets call them AppA and AppB) communicating with each other. AppA is sending objects to AppB. There could be different objects and AppB does not support every object. An object could be a Model (think of a game, where models are vehicles, houses, persons etc). There could be different AppBs. Each supporting anoth...

Questions about StructureMap in a (layered) library regarding extendability and testability

Hi, We are using StructureMap as our Dependency Injection (DI) framework while we are creating a layered library. Our goals are to: Make it easy for us to Unit Test classes (and using mock classes instead of the real dependencies) while we develop and maintain the library. Make it easy for the library user to: Customize the library b...

How to set stroke for Clip?

I would like to clip a button to a custom shape which i am able to do with the following XAML. The clipping region though doesn't have a border. What if i want to have a red border with thickness 2? What are the properties to set? <Button Content="Button" Height="79" Margin="22,10,17,10" Clip="M50.500008,20.499998 L70.090286,42.699997 L...

When designing a data structure, should helper methods be accessible to other users?

I had a talk with my professor today about the layout of the Chunklist data structure that we've been working on. Basically, it is a hybrid of a ordered circular linked list with each node containing an arraylist. Since this is an ordered list, the add() method is pretty complicated, so I wrote a nested class to hold the helper methods...

move from rich clent ( WPF) to web based (Silverlight application) for multiuser application

Hello Design Gurus and architects, We have a multi user product prototype in WPF which works fine as a prototype. Now we want to build the complete product. In our product we have scenarios where 2 - 3 users might have to use same data. Say one us editing and the other user is viewing the continuos edits. And also whenever a user chan...

How would you implement attribute lists?

When speaking about attribute lists I mean a generic list which stores additional information for a class. The simplest case: A class has a std::map<std::string, std::string>. The first string names the attribute (like "Color"), the second string describes the value (like "Yellow"). In this example another class which uses these attribu...

How to have procedural code wait for user input from a GUI before continuing?

In my program there is a complex calculation that requires the user to evaluate intermediate results. This works well in a command line application (which is what my code looks like now) because the interactive prompt halts the program execution until the user hits enter. The command line code looks something like this: def calculate(...

Should I return null or throw an exception?

I found questions here http://stackoverflow.com/questions/175532/return-null-or-throw-exception and http://stackoverflow.com/questions/1626597/should-functions-return-null-or-an-empty-object, but I think my case is quite different. I'm writing an application that consists of a webservice and a client. The webservice is responsible to ac...

Is there a collaboration tool example in silverlight or WPF for multi user? (like google docs but not that complex)

We are designing a C# product which involves multiple users accessing common piece of data. In short something like google docs but not that complex. Is There any good example for architecture or design to follow, read, understand. And adding to the complexity, user can belong to different geographical location. ( is distributed datab...

CSS design for large form - Design Advice

I have a large form that consists of all the input (text, checkbox, radio, etc...), I have them grouped together in a fieldset tag and a legend for each feildset. Each input has a label associated with it as well. My question is what is the best approach to display the information on one screen and take advantage of the horizontal real e...

Looking for a recursive GUI (Microsoft & Visual Studio)

Is there a component that presents the user a graphical design a layout like VS does? (Only graphical display functionality needed) That is, he/she could place a label, Image or any 3rd party component that draws something (important!). Thanks! ...