design

Pipeline pattern for message processing

I have a set of services (non-WCF) that sit on queues. When message arrives, typical service does some calculations and spits out zero or more result messages to its output queue. Besides its primary function, each service has some housekeeping logic like auth / audit / logging / status tracking with exact steps and sequencing varying so...

Object.DoSomething() vs DoSomethingWith(Object)

This may simply be a matter of preference, however, I am interested to know what is the best-practise way of when to use either approach. e.g. var person = new Person(); person.Run(); as opposed to var person = new Person(); Excercise.Run(person); The above example may not be the best, but my general point is when should you decid...

Application verify license enforement?

If I enforce a licensing restriction on my application,say the first time the application runs,then should my application check the restrictions (could be a encrypted license file) each time? How do you design this part? What is the best way? Basically I would like someway to save CPU cycles somehow(encryption means decryption blah blah ...

Design of listener for multiple events

I'm familiar with standard listeners, esp. in Java. For example, if you have a collection of objects, it might support a set of listeners for different things: CreateListener, ChangeListener, DeleteListener. Each has one method (e.g. objectChange) that is passed a list of affected objects. An app using this collection could register i...

Programming and Design related Podcasts

Possible Duplicate: What good technology podcasts are out there? Hi All, What are the useful podcasts sites that should be followed for programming or design related topics? Or to catchup on the latest techonologies ? Any useful links will be helpful. Thanks and Regards, Srinivas. ...

My productivity is decreasing as the project becomes larger. How to increase productivity as size of project increases?

I initially started off with a small project, editing php files and such in notepad++. It used to be easy to think of a feature, and add it on as a separate file onto the project. As the project became larger, my productivity began to decrease because I couldn't remember all of the functions I made, and where they were stored etc... Then...

Standard Entitlements Model

I am currently building a Java financial application that I need to add entitlements to, and was wondering what approaches people have taken to solve this problem, and whether there are any third party Java libraries that people would recommend. Currently I have a number of users that can be broadly categorised into roles (e.g. "trader"...

Design question - using an event, attribute, or not? (mvc)

I'd like to know what you think of the following design options. I have an 'AgendaController' (.NET MVC project) which handles user actions like viewing their agenda, making appointments, etcetera. When a user makes an appointment, the appointment is saved in a database. Then, there is a 'secondary' task that has to be done, in this cas...

How do I set the upper and lower bounds of a dynamic graph?

Say I want to display a graph of today's stock market. I gather all my data, and I go to display the graph...is there a well known formula to set the upper and lower bounds to? Do I need to factor in all the data on the stock market from the last year to get some context? In some ways this is a design/math question, but essentially, I ...

WPF for non designers

Is delving into Microsoft's WPF worth it for a programmer who does not have design inclinations and no designer on the team? ...

"Back to top" link, is it useful?

Many sites show a "Back to top" link in their footer. Others, even worse, have that link throughout the page. Personally, I never used any of them, but probably it's me to be strange. Do you think it is an useful link? UPDATE: when I rarely need to go straight back to the top I use CMD + upwards arrow ...

Exposing Hibernate criteria via service API

This is more of a design than implementation question and it's going to be long so bear with me. It's best explained with an example: Let's say I have a business entity called Product with a bunch of properties (name, price, vendor, etc...). It's represented by an interface (Product) and implementation (ProductImpl, mapped in H...

Structuring Memory Viewer Contol in WPF

What is the best way to design a memory viewer control (a la Visual Studio's Memory Window)? The control will be mapped onto a byte array and a value representing the starting address (optionally, the control could be mapped onto an object that interfaces to "memory" directly with read/write methods and events for memory changed). The ...

Starting my first business application?

I am starting work on my first business (application + database) type application, using c# and sql I'm completely new to this, What tips do you have for me? What should I look for? What concepts should I understand? ...

Design Question – Polymorphic Event Handling

Design Question – Polymorphic Event Handling I’m currently trying to reduce the number of Event Handles in my current project. We have multiple systems that send data over USB. I currently have a routine to read in the messages and parse the initial header details to determine which system the message came from. The headers are a lit...

Java: refactoring static constants

We are in the process of refactoring some code. There is a feature that we have developed in one project that we would like to now use in other projects. We are extracting the foundation of this feature and making it a full-fledged project which can then be imported by its current project and others. This effort has been relatively st...

User defined data objects - what is the best data storage strategy?

I am building a system that allows front-end users to define their own business objects. Defining a business object involves creating data fields for that business object and then relating it to other business objects in the system - fairly straight forward stuff. My question is, what is the most efficient storage strategy? The requirem...

Looking for great character set/encoding resources or tools for PHP webapp development

Hi guys, I've been having a lot of trouble with character sets/encoding while writing a multi-lingual web app in PHP in different places such as the shell, inside PHP itself, and in the database. I want the whole application to be UTF-8 throughout, so that I won't have to worry about converting anything back and forth anymore. Does any...

WPF UI Layout for LOB Applications

I have been trying to find some resource on this topic for a while now but to no avail so what is the best way to construct a WPF UI for LOB (Line of Business) applications? specifically Customers, Orders, Products, etc.. I have seen many single window WPF application examples that don't need to be anything else but a single window and i...

Using a relational database and a key-value store in combination.

The requirements for the project I'm working seem to point to using both a relational database (e.g. postgre, MySQL) in combination with a key-value store (e.g. HBase, Cassandra). Our data almost breaks nicely into one of the two data models with the exception of a small amount of interdependence. This is not an attempt to cram a relati...