design

Immutable functional objects in highly mutable domain

Hi, I'm currently learning functional programming in my spare time with Scala, and I have an idle newbie question. I can see the elegance of having immutable objects when doing something like calculating a Haar wavelet transform - i.e. when the data itself being represented by the objects doesn't change. But I saw a blog where someone ...

C++ alternatives to void* pointers (that isn't templates)

It looks like I had a fundamental misunderstanding about C++ :< I like the polymorphic container solution. Thank you SO, for bringing that to my attention :) So, we have a need to create a relatively generic container type object. It also happens to encapsulate some business related logic. However, we need to store essentially arbitr...

C++ template destructors for both primitive and complex data types

In a related question I asked about creating a generic container. Using polymorphic templates seems like the right way to go. However, I can't for the life of me figure out how a destructor should be written. I want the owner of the memory allocated to be the containers even if the example constructor takes in an array of T (along with ...

Project Management: Research and Development

Have you ever worked on a long-term project designed for a hardware base which is currently cost prohibitive? The feasibility of such a project would be dependant on the hardware being cost effective in ~5yrs . . . If so: Did the project actually go into Production? Did it fracture in its Scope? Was it Abandoned? ...

User interface design for small displays - resources?

I'm developing an application for a small display (1.8" diagonal, 128x160). Lots of people must be developing for cell phones, so I'm hoping for pointers to online resources for user interfaces with small displays and limited input. ...

C++ Strategy Design Pattern, making an interface array

After having implemented the strategy pattern, I wanted to make an array of the interface-type, to which I can then add any concrete type. For those who don't know the strategy pattern: http://en.wikipedia.org/wiki/Strategy_pattern In this particular example I would want to make a StrategyInterface array, which I can then fill with con...

Ruby on Rails Editor for Windows

I love to use Textmate on my Mac at home but have a hard finding somehing to use at work (windows). What is the best editor to use for Ruby on Rails on windows that get you the closest look and feel to Textmate? ...

How to deal with design-freaks?

A workmate of mine really loves designing for each and every use-case, no matter how unlikely its occurrence will be or if it's even in the scope of the project. As a result, some of us are having some kind of trouble weeding out unused interfaces and finding out what data field of an interface is actually used. Do You know similar cas...

Has anyone built web-apps that can run totally off-line?

I'm building an app that authors would (hopefully) use to help them, uh.. author things. Think of it like a wiki but just for one person, but cooler. I wish to make it as accessible as possible to my (potential) adoring masses, and so I'm thinking about making it a web-app. It certainly doesn't have to be, there is no integration with ...

How many parameters are too many?

Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand and maintain. Of course, you could use a structured variable as a workaround: putting all those variables in a single struct and passing it to the routine. In fact, using st...

Javascript tabs showing two different sets of information with same core variable types

So basically, I have two tabs which contain regular and special e-mails. In order to get e-mails, you have to click on a calendar date and AJAX will then query the database for the regular e-mails and special e-mails. There is a next and previous button to navigate through the results gotten for the selected date. The problem I have is t...

Design pattern for converting one type of tree structure to another?

I have a sort of tree structure that represent a hierarchy of layers in a map, divided by types of layers and categories. Each node can be a different class for different types of layers (but all nodes implement a common interface). I need to convert that class to an ASP.NET TreeView control. Each node in the input tree is a node in the...

Is it possible to design winforms like interface in webforms

I want to webpage to look like a winform but it is actually a webform. The users should think that it is a form and not a webpage ...

Business Object DAL design

When designing business objects I have tried several different methods of writing the data access layer. Some have worked out better than others but I have always felt there must be a "better" way. I would really just like to see the different ways people have handled the DAL in different situations and their opinon of how the techniq...

What is the best format for a customer number, order number?

A large international company deploys a new web and MOTO (Mail Order and Telephone Order) handling system. Among other things you are tasked to design format for both order and customer identification numbers. What would be the best format in your opinion? Please list any assumptions and considerations. Accepted Answer Michael Haren...

Change Theme / CSS based on user

I am building a product that we are eventually going to white-label. Right now I am trying to figure out the best way to facilitate these requirements programmatically so the user can update the basic design of the site (ie header color, etc) via their profile/settings form. Requirements: - User can update the logo (this is complete) ...

How to embed a png in an Adobe Illustrator or Expression Design file to create XAML

I have an AI file. I paste it into Expression Blend and then export the XAML for use in my WPF project. Works for most of my files, but some export the XAML plus a seperate png file. What can I do so that the png is embedded into the paths of my image and not a seperate image? Can it be done? ...

How can I manage 'Designing by committee'

As an inexperienced software developer I am familiar with and have come to love the peer review process. Whenever I ask a senior developer (not my boss but still senior) about some small point of the system design somehow it becomes a debate where Im being forced to design my code by committee. How can I manage this? Let me set the scee...

How Do I Format a HTML Form Without Using Tables

I know it's bad to use HTML Tables for everything... and that tables should be used only to present tabular data and not to achieve some style goal. My question is, how do you make HTML forms with CSS so they look nice and aligned like when using tables? ...

Are exceptions really for exceptional errors?

It's my understanding that common wisdom says to only use exceptions for truly exceptional conditions (In fact, I've seen that statement here at SO several times). However, Krzysztof Cwalina says: One of the biggest misconceptions about exceptions is that they are for “exceptional conditions.” The reality is that they are for ...