design

Altova Tools and Visual Studio? Anybody..?

I'm on a new project and the BA's want to use StyleVision and some of the other Altova tools to work with the client and IM guys. Altova lists integration with VS. Basically, BA takes xsd, mocks up UI with it and then I use that to wire everything up. This is going to be a ASP.NET maybe WPF/Silverlight project. Does anybody have any...

How to convince a customer that what he wants is a bad thing to do?

For instance, customers that we're creating web sites for, request things like: all links should open in a new window put custom 'Back' button on every page while there is a working browser's equivalent make some part of the text blinking etc. Of course I tell them it's wrong, but is there some nice list of bad things to have from ...

Error handling/Logging strategy

Could you guys share your knowledge about Error handling/Logging strategy for asp.net 3.5 web based application? ...

Sending arbitrary data through several functions

While making a state system that follows the state design pattern (which is working quite well so far) and I am now wondering if there is a way to send arbitrary data to this system. I was thinking that this might be possible using a Stimulus class. The system itself is composited into another object that can respond to the stimuli, an...

Design patterns for Agent / Actor based concurrent design.

Recently i have been getting into alternative languages that support an actor/agent/shared nothing architecture - ie. scala, clojure etc (clojure also supports shared state). So far most of the documentation that I have read focus around the intro level. What I am looking for is more advanced documentation along the gang of four but in...

Repeater, Datalist in ASP vs PHP

Can anyone give me some suggestion please. In ASP we can use datalist and repeater control to repeate the rows but how can we do similar in php. I am designing a private message page for the similair as inbox page. Please can anyone help me. ...

Format vs Language

Elsewhere on the SO universe a storm has been raging for a some time now. On whether humans should prefer something they can read vis-a-vis something they can't. Which made me take my thinking hat out after a long hiatus and pose a question for the enlightened: When do formats evolve into a domain specific language? Or, how do I deci...

Django: multiple models in one template using forms

I'm building a support ticket tracking app and have a few models I'd like to create from one page. Tickets belong to a Customer via a ForeignKey. Notes belong to Tickets via a ForeignKey as well. I'd like to have the option of selecting a Customer (that's a whole separate project) OR creating a new Customer, then creating a Ticket and fi...

How can I improve my program design and problem solving technique?

I have been coding for a while now and am confortable with a few programming languages but now feel that I need to improve my problem solving or program design technique. What skills do I need have to be able to design a program as a solution to a problem? More: The question is about how to design a solution rather than how to code bet...

What's the best way to structure a project ?

Hi, I was wondering about how I should structured my projects. We have some projects that are (re)use in other projects. I mean, our data project and model project are use in one-to-many other projects. What I really what to know is how to structure this type of project, what the best way to name it ? In a standard 3-tier applicatio...

Domain Specific Language for Business Objects?

I'm thinking of writing a domain specific language (DSL) to model business objects. The DSL will not be executed, instead it will be used by a template based code generator (probably CodeSmith) to generate the .NET & SQL. The DSL will need to support the definition of the following elements: Classes (name & description) Properties (na...

Best way to display Javascript/Div based hover windows?

I'm talking about the Ibox sort. I.e, user clicks a link and a small javascript based div hovers up containing a small form or such. I will want to give users a <script> tag which they would place in their website. Then, they would put the required javascript function in their <a href> tag which they want to use for displaying the form....

What programming technique not done by you, was ahead of its time?

There are developers who understand a technology and produce a solution months or years ahead of its time. I worked with a guy who designed an system using C# beta which would monitor different system components on several servers. He used SQL Server that would pick up these system monitoring components (via reflection) and would ins...

Website Design or Back-end logic first?

I'm currently working on a pet project of mine: a web application using Servlets/JSP and some jQuery and Javascript goodies. I just started on the project and my dilemna is: should I focus first on the website design or should I implement the back-end logic then start tweaking the design? Right now, the website is hideous (looks like puk...

Efficient SQL Query/Schema for a Leader Board

Hello. I have written a stupid little game and want to have some kind of leader board website. Usually leaderboards are limited to 10 or 20 top players, but I thought it would be nice if I could record, for every player, their top score. Then, I could always display their world-wide rank. A simple schema such as: create table leaderbo...

great first run experience

Hi, Does anyone have good examples of software that has a fantastic first run experience? Some software obviously just works "out of the box". However, there is significant software that requires some configuration before it's usable. Any examples would be much appreciated. Cheers, Yi ...

Motivation for Overengineered APIs?

It seems like there's a decent amount of dislike around here for horribly overengineered APIs that are designed to be infinitely flexible and thus don't make simple things simple. Nonetheless, it seems like there is no shortage of APIs that require you to use 8 different classes and write 20 lines of boilerplate just to accomplish simpl...

What is the most useful *project* documentation that you've encountered?

I have a big problem with keeping documentation up to date, especially since the underlying infrastructure of my application undergoes many changes during the early stages of development. I find it's very difficult to document a moving target. However, this can make things a little difficult for new developers who are just coming on ...

Best examples of CRUD Web Form Design

I am looking to revamp our CRUD web forms and would appreciate any examples of good UI design. We have lots of database tables that have minimal editing needs by the user - Country Codes, Tax codes, Product prices, and so on - and these all currently use a simple format for CRUD, but it was designed by developers and looks very bland, a...

How to pass and then invoke generic callback functions without causing circular dependency.

Couldn't creatively shorten the title :) I have been using a variation of the below solution, however I always wondered if there is a better/cleaner way to implement it. I am looking for non-boost solution. We can, though, look at the implementation of boost and C++0x, as it will soon be relevant. //Notice the use of template template...