design-patterns

What would be a good order id scheme for a e-commerce solution or paid web service?

Considering the following: a) you want some confidentiality (as in not telling everybody how many orders you've received). b) you want a check digit (e.g., using the Verhoeff algorithm) at the end so you can easily tell misspells and help dealing with errors when scanning barcodes, if this is the case. c) you've to consider time so co...

Design question: 'generic application/process' for multiple clients, which will turn out to be full of 'but's'

Hi, i'm about to create an app for my client. Multiple clients of him (of my client) will login to that app and do the same thing. So in that view, we have a 'generic app': written once, suits every clients needs. But, before the first line of code is written, we have offcourse the first exception: when client A does action A, you have...

Exposing aggregation through the interface vs. delegation

I have an Employee object which aggregates a few other objects, such as HRData and AssignmentHistory. In the past all of this logic was contained directly in the Employee object, but for testability and manageability I've split it to use aggregation. However, instead of exposing the aggregate objects directly, I've used delegation so tha...