design

build XML out of user's input

Hi guys, I wanted to see some of your ideas/opinions/suggestions on the following problem. The idea is to have a simple webapp (java webapp) collecting user's input that essentially is turned into an XML file? The final XML file has to be valid and has to conform to a DTD. What would be a good way to dynamically collect an input prese...

The Object-Oriented way to separate the model from its representation

Suppose we have an object that represents the configuration of a piece of hardware. For the sake of argument, a temperature controller (TempController). It contains one property, the setpoint temperature. I need to save this configuration to a file for use in some other device. The file format (FormatA) is set in stone. I don't want the...

Software Development Analysis

What do you think of Mr. King's software development analyst at http://devadept.com/? I ask because reading his blog has made me rethink how I should be coding software. I mean, I used to concern myself with just getting a project done, but I think I may be missing something and his blog makes me feel that way. Am I just a programmer ...

Google Analytics Data API [C# Design]

Hi! I'm currently building a library around the Google Analytics Data Export API. When i'm requesting data for a specific profile, this is the response from Google: <entry> <id>http://www.google.com/analytics/feeds/data?ids=ga:3104565&amp;amp;ga:browser=Firefox&amp;amp;start-date=2008-07-10&amp;amp;end-date=2008-08-10&lt;/id&gt; ...

Need advices designing a .net control.

I need to create a user control, that will be used in an application used to schedule employees tasks. The control will be a two dimensions table. There will be one line for each employees. On this line, there will be 0 or more block that each represent a task this employees has to do. They will be ordered from left to right so the ones ...

Designing reusable calendar

I'm trying to design reusable calendar with JS. I've done the easy part. Now's turn to add (display) entries in it. If I'd be on server side I would use something like classEntryBase entries = array(); func addStuff(...) { ... this.entries[year][month][day] = array(link, linkText, entryText) } func getStuff(...) { ...

How do you design object oriented projects?

I'm working on a large project (for me) which will have many classes and will need to be extensible, but I'm not sure how to plan out my program and how the classes need to interact. I took an OOD course a few semesters back and learned a lot from it; like writing UML, and translating requirements documents into objects and classes. We ...

Making A Unique Website Design

Lately I have been trying to make a cool website design for my website, but every tie I make one with photoshop elements I get something that doesn't look very good.. any advice on making clean and simple web designs with photoshop elements? Thank You ...

How to deal with unstable 3rd party object tree (sorry, I can’t come up with a better title)?

Let’s say I have to use an unstable assembly that I cannot refractor. My code is supposed to be the client of a CustomerCollection that is (surprise) a collection of Customer instances. Each customer instance has further properties like a collection of Order instances. I hope you get the idea. Since the assembly behaves not that well my...

conflicting user management design

I'm building a user notification system on a website which involves 2 levels of registration: admin and client I have all users register into a single registration table with the fields: uid email password owner cid admin When an admin level user is inserted, the admin column is flagged with a 1 When a client level user is inse...

Designing a Linux-based system for transferability of ownership/admin rights without total trust

Inspired by a much more specific question on ServerFault. We all have to trust a huge number of people for the security and integrity of the systems we use every day. Here I'm thinking of all the authors of all the code running on your server or PC, and everyone involved in designing and building the hardware. This is mitigated by reput...

How do you define a software component?

How do you define a software component and what kind of relationship is there between OOP and component programming? What are the pros and conns and what is the "golden ratio" of these paradigms? ...

Problem setting equal heights with jQuery in IE

I have several of the same class of element on a page and am attempting to get them all to be the same height even though the content within varies slightly. I've put together a small function that yields results in both Firefox 2+ and Safari 3+ but apparently doesn't even register in IE 7. Here's what I'm using: var tallestcopy = 0; ...

Multiplatform C++ Project: Inclusion of platform specific sources

I have for some of my classes different implementations per OS. My source structure is like this: include/AExample.h include/windows/WindowsExample.h include/linux/LinuxExample.h src/AExample.cpp src/windows/WindowsExample.cpp src/linux/LinuxExample.cpp the A* classes are the interfaces for the specific implementations My current bu...

New alternative to the Gof design pattern book for uml MDD with C++

Hello everybody, I am using lately a tool i.e. Rhapsody for MDD with C++ and I have difficulties on coding the classes by beginning with the uml diagram. Simultaneously I am trying to integrate some of the Gof book examples in the UML diagram and somehow it confuses me.... Is there any book that 1) is quite new (gof is 1994..) 2) ...

Avoiding split-brain, votes and quorum

Suppose you have n processes, n > 2. You want to have agreement amongst them that one is to be active. So they need to vote amonst each other to determine which one is active. All processes may fail at any time, we want to have one process active if possible, but ... We must never have two active at the same time, so if they can't be s...

Loose coupling in Mashup API(s)

We are planning to integrate our JEE application to use certain API(s) of products exposed in ProgrammableWeb. Usually the mashup API(s) either expose a user code or an identifier against which all CRUD operations are done. How do you enable the mapping between the local user identifier and the user identifier exposed by those API(s). Wo...

MVC-like design for console applications?

I find that writing web apps and WinForm apps generally come out a lot cleaner than when I write a console application. What do I mean by cleaner? Well the fact that the fact the UI (i.e. readline/writeline) is so intertwined with the logic code becomes horrible and the fact it is not event driven means that it is harder to get good ab...

Where have you used gSOAP?

Can you give examples how you used gSOAP and how well it was integrated in your existing architecture? Have you found development bottlenecks with gSOAP? ...

POS UI design & development: what should be included & avoided?

I'm having to design & develop UI for a Point of Sale (POS) system. There are obvious features that need to be included, like product selection & quantity, payment method, tender amount, user login (as many users will use one terminal), etc. My question is related more towards the UI design aspect of developing this system. How should...