design-decisions

Windows Services -- High availability scenarios and design approach

Let's say I have a standalone windows service running in a windows server machine. How to make sure it is highly available? 1). What are all the design level guidelines that you can propose? 2). How to make it highly available like primary/secondary, eg., the clustering solutions currently available in the market 3). How to deal with...

Repeated properties design pattern

I have a DownloadManager class that manages multiple DownloadItem objects. Each DownloadItem has events like ProgressChanged and DownloadCompleted. Usually you want to use the same event handler for all download items, so it's a bit annoying to have to set the event handlers over and over again for each DownloadItem. Thus, I need to dec...

Best way to implement plugin framework - are DLLs the only way (C/C++ project)?

Introduction: I am currently developing a document classifier software in C/C++ and I will be using Naive-Bayesian model for classification. But I wanted the users to use any algorithm that they want(or I want in the future), hence I went to separate the algorithm part in the architecture as a plugin that will be attached to the main ap...

Algorithm to represent Decision tables

What would be the best algorithm to use if you wanted to store Decision tables in code, i've looked at the Adjacency matrix and Binary tree would anyone consider this to be the right direction? What other choices to I have? ...

What's the proper approach for writing multi-path "story" flows?

Hi, I wonder if you can help me. I'm writing a game (2d) which allows players to take multiple routes, some of which branch/merge - perhaps even loop. Each section of the game will decide which section is loaded next. I'm calling each section an IStoryElement - And I'm wondering how best to link these elements up in a way that is easi...

Conditionally required fields and disabled inputs

My form has a bunch of address fields (street, city, country, province, postal code) that need to be filled out over and over again. To make it easier for the user, I've added a "copy from" selector where they can choose an address they've previously used. When they do this, the form fields are filled in automatically and then disabled. ...

What scripting language for our .NET based IDE

We have an IDE for machine automation that allows its users to develop solutions by connecting objects and components visually. They can also write "plugins" using c++ and c#. The IDE is written using .NET. Its users often are not founded in traditional software development and programming but more in the direction of technical/electrica...

How to make my programming designs better?

I'm currently stuck how I should make designing skills as a programmer better. I've seen over a dozen questions about (algorithmic) programming challenges. Defining and verifying a good design isn't as trivial. You can objectively measure how good an algorithm is, but not the design used to implement that algorithm. I do see problems wi...

Is there a reason that ASP.NET's CheckBoxList doesn't have a SelectedItems member?

Whenever I want to get selected items I have to loop through each item and see if it's selected. They even have a SelectedItem (no "s" at the end) member which seems odd for a CheckBoxList. It seems like a logical thing to have, does anyone know why they haven't added it? ...

Programming languages where indexing starts at 1?

Possible Duplicate: List of 1-indexed programming languages? Besides AWK, are there other programming languages where indexing starts at 1 instead of 0? ...