design

Label designer in VB.NET

I need to design a simple label designer that could print labels for shelf items, just like in a grocery store. The requirements are that the label shall contain a name, a barcode (e.g. Code39 symbology), price and room for some extra text. Where do I begin? Guys/gals, give me some ideas how to accomplish it. Is there anything of the ...

Another repository-pattern question: how to deal with domain model projections?

Hi all, I've read a lot about repository pattern implementation and I still can't find out how should I implement entity projections querying? For example I have large and complex product entity, but I want to display only product's name and it's id. Where should i implement this projection? In my entity repository or in a caller code?...

Dealing with a high volume of data from client to server over HTTP

Hi all, For a personal project ive created an asynchronous TCP socket server that has two types of clients, listeners and senders. Sending clients are iphones and write data about 5 times per second, which is then relayed to listening clients. This has worked fine so far, being fast and efficient, but for scalability and stability im th...

Java Object Oriented Design Question: update internal state or return new object

This is a design question. The design is pseudo-code and represents a small example but I may add a lot more methods, data, logic in the future. In this example, I am considering two approaches. In the execute method below, should I return an immutable "data/bean/model" object with the output of the execute method or update the state ...

When do you need to create abstractions in the form of interfaces?

When do you encourage programming against an interface and not directly to a concrete class? A guideline that I follow is to create abstractions whenever code requires to cross a logical/physical boundary, most especially when infrastructure-related concerns are involved. Another checkpoint would be if a dependency will likely change i...

Xml definition containing multiple instances of a type?

Hi, I want to create an xml document that has multiple instance of a type, not sure what's the proper way to do this: <farm> <horses> <horse name="jo"></horse> <horse name="bill"></horse> </horses> </farm> or should I skip the tag and just do this: <farm> <horse name="jo"></horse> <horse name="bill"></horse> </farm>...

Design ideas for multi-select items from a long list

hello I'm developing a system in which I need to select, from a long list os customers, some to which an specific (batch) action will be executed. For example, I want to select "John", "Peter" and "Steve" and click the "delete" button. No more than 5 customers will be selected. The problem is that, since there're more than 500 customer...

A better design of this SQL query builder UI.

I'm in the process of redesigning a SQL query builder UI for a application that I use, well it's a third party app but has a plugin model so I writing my own to replace the standard one. One area I am not very good at when it comes to application design is the UI. I would be really interested to see/hear how other people would layout t...

Best approach dealing with joins in Zend Framework?

Well it is more like a design question. There are two ways I know to use joins in the Zend Framework Deal with it using instance of Zend table( its Select obj) Deal with it using the instance of Zend Db (its Select obj) in the first approach it seems really strange to me - the some table have to be dealing with other tables too, whic...

How To (or Even Should I) Get Started With EJB?

A little bit of background first: Last year I started working at a medium-sized auto insurance company -- we're in several states, but we're not as big as GEICO or Progressive or anything like that (yet). Our primary software system is old (written in RPG) but reasonably stable. We're wanting to make our in-house applications availabl...

a couple of questions regarding design

I would like to hear what do you think about the design of this issue. I have to write webservice to allow user to modify dictionaries in database. I got xml schema which looks like this (it's simplified): AdminService which is a root and has a choice with: AddCode[@DictionaryName, @Code, @Description] RemoveCode[@DictionaryName, @C...

List of abbreviation for acronyms used in design patterns or projects

We can see different abbreviations for same acronym in the software industry. Where can I find the actual list of acronym used in the design patterns and other parts of the projects and their abbreviation? Say for example : TDD : Test Driven Development/Design; ORM : Object-Relational Mapping. Thanks Gabi ...

How to design a List Which Google shows it besideof Searched Site Result

I have always design sites and application Menu with UL/OL - LI and I want Google shows my Main Menu beside my Site . what should I consider ? ...

What's the Best UI Design pattern for designing large-scale application ?

We have a large M.I.S system which contain 12 sub systems. Version 1.0 is completly finished and We decide to change the User Interface in Version 2.0. So We are looking for some good UI design pattern for large-scale web based system. If you know any good UI Design Patterns, please let us know ? Also if you think we should consider so...

design business class for unit test

I'm trying to clean my code to make it unit-testable. I know that unit tests must be created while coding but... I have to do it now, with code completed. My business class is full of methods with a similar implementation like: var rep=new NHrepository<ModelClass1>(Session); rep.Where(x=>x.Field1==1).ToList(); first error (from my po...

With Zend Framework, what is the difference between Module and Package

Hi all, I devlopp web applications with Zend Framework. For now, I have a huge library, wich contains each an every things, used by a couple of web applications. I am thinking of reorganising it, using the concept of "Module". But I am not sure about the difference between Module and Package. What I understand is : a Module contain...

Looking for a lock-free RT-safe single-reader single-writer structure

Hi, I'm looking for a lock-free design conforming to these requisites: a single writer writes into a structure and a single reader reads from this structure (this structure exists already and is safe for simultaneous read/write) but at some time, the structure needs to be changed by the writer, which then initialises, switches and writ...

Visual Studio ad-hoc tools and plugins

Guys, I opened this question (I hope could help some others) but reading stackoverflow I find some really interesting pearls of information lost in the cloud. What do I mean? For example I was reasearching the Web for the best way to validate parameters in methods. I was breaking my head trying to find a nice, elegant way to do it, then...

GWT - Many widgets or a widget containing other widgets

Hi, I'm designing the user interface. It has some static content and a lot of widgets. Wich is better? HTML with a widget containing the other widgets HTML containing all widgets thx a lot... ...

Single huge .css file vs. multiple smaller specific .css files?

Is there any advantage to having a single monster .css file that contains style elements that will be used on almost every page? I'm thinking that for ease of management, I'd like to pull out different types of CSS into a few files, and include every file in my main <link /> is that bad? I'm thinking this is better positions.css but...