design

Best practices to reflect the software design in the implementation

I'm concerned about best practices that help reflecting the design of the software system in the implementation. Simple example may be naming: The names of the structures and identifiers should be equal. Do you have any advices o this? ...

wpf /xaml designer

I'm looking for a good WPF/XAML designer to do some contract work, but I don't know where to find one. Where's the best place to find good XAML designers for hire? ...

How to to analyze your app design?

During the implementation, or even after it I sometimes find a better design solution. I think it`s quite common thing for all developers as software once written can always be done better. But how to analyze your mistakes to prevent similiar mistakes in future? I know 2 things for that: Code reviews and post mortal meetings. Can you...

stackOverflow UI design secrets !!??

I am sure all of you have observed the cohesive design of this site. My question is about some of the cool info-boxes...that appear on various events. Like when someone with lower reputation tries to down-vote OR the long box that appears just below the browser address bar when I have got response to one of my questions. These are basic...

WCF; what's the big deal?

I'm just about getting into WCF; but from what I've read so far, like the sample scenarios I found on MSDN and some other sites, I can do all that with web services and applications that call those web services. So why the need for an elaborate layer like WCF? Most of the comparisons I've googled for explain it more from a programming p...

How to Design a Rectangle Class?

Consider a rectangle with sides X and Y, and area Z such that Z=X*Y. The rectangle has to be modeled into the cleanest OOD which will supply the following two services, Given side X and side Y, calculate area Z. Given side X and area Z, calculate side Y. One possible design I was thinking on is, A class Rectangle that have private...

Handling Dates without years. From the DB all the way to the UI.

In the application I am currently writing the specification asks that a number of dates are entered without years. I want to know everyone opinion of the best way of doing this, at all levels. I am almost certain that they should be stored in the DB as normal Date fields, However before they get here, the year should always be set to th...

what are adobe air applications available for web developers?

What are free/paid adobe air applications available for Project collaboration and management Wireframe issue tracer testing color ..... ..... etc ...

How to set hyperlink for a banner logo. Please help

I am trying to set hyperlink to logo which is at the left side of the banner. when i use <a href="home.php"> <div class="logo"></div></a> its not working. help me to come out of this problem ...

DI Container: inject the right components from a collection of same types?

I'm trying to hack my own dependency injection container in PHP, based on constructor injection. The container instantiates complex objects and inject them with the required objects based on the type hints in the constructor using reflection. One thing I obviously stumbled upon is the fact that I can register multiple components that ca...

Designing a BitStream in C#

I'm looking at the C# library called BitStream, which allows you to write and read any number of bits to a standard C# Stream object. I noticed what seemed to me a strange design decision: When adding bits to an empty byte, the bits are added to the MSB of the byte. For example: var s = new BitStream(); s.Write(true); Debug.Assert(s.To...

Help with 2-part question on ASP.NET MVC and Custom Security Design

I'm using ASP.NET MVC and I am trying to separate a lot of my logic. Eventually, this application will be pretty big. It's basically a SaaS app that I need to allow for different kinds of clients to access. I have a two part question; the first deals with my general design and the second deals with how to utilize in ASP.NET MVC Primaril...

Best Practices: hasXXX() methods for possible null returning getXXX() methods.

Hello! This question might appear very simple, but i haven't found an answer yet, so i'm asking the stack overflow community. As the title suggests i have a Class with several getXXX() methods where some of them may return null. This is documented and the user of this class should be aware of this fact. To simplify the usage of this cl...

Null check in different layers (presentation layer, middle, database)

Hi, Our application is developed using Spring framework. Is it good practice to check null condition in all layers (presentation. business, database) ? The flow in our application is Form submission -> jQuery validator -> Spring validator -> Controller -> Service -> Database Currently we are checking the parameters for null condition ...

Pattern for sharing functionality between controllers

I'm writing an iPhone application and I find that there are three controllers in the application that have very similar functionality. They are similar enough that it doesn't make sense to separate them into three separate classes, so I have a "mode" property that clients of the class use to specify how the controller should behave in c...

Graph implementation, functions and parameters. What makes more sense?

Just for kind of "fun" I'm developing almost every algorithm (if possible) shown in the book Introduction to Algorithms (Cormen) in C. I've reached the graphs chapters and I'm not sure how to design my functions, but first take a look at my data structures (hope this will make clear my question). typedef struct s_multi_matrix { ...

Handling Runtime dependencies

Dependency injection is a useful technique but what approach is recommended when faced with runtime dependencies? e.g. Say you want to glue an event to an event processor depending on the type of the event and the user who initiated the request. public interface Event {} public interface EventProcessor { public void handleEvent(Ev...

Increasing WPF ObservableCollection performance

At present I have two WPF listboxes imitating the following functionality I am using 2 ObservableCollections to allow users to select whatever items they require (flexibility is the key here). The main issue is that I have thousands of items that are grouped in both listboxes. All in all the design works really well (with a few dozen ...

How to design a masterpage for a website? Is there any template?

HI I am going to create a website, So I need to have a master page for all my own pages. But its difficult to design it from scratch, Is there any template I use and just changing for example the colors, font sizes, ...? ...

Good J2ME Project Design

On a project targeting as many feature phones as possible (Nokia 3110 Classic, Samsung E250, Motorola SLVR L7, etc.), how should it be designed at a high level in terms of code structure? I don't mean in terms of per-handset support, as we are using Polish for that. I'm an experienced C# developer moving on to J2ME development within my...