design

Most Important and frequently used design patterns

Hi I am currently reading head first design patterns book. I feel that the best way to learn design patters is to apply them. So, I wanted to know the most frequently used design patterns, so that I can experiment with them and apply them in the example programs I write. Which are the most important and useful design patterns you use ...

Avoiding repetition with libraries that use a setup + execute model

Some libraries offer the ability to separate setup and execution, esp if the setup portion has undesirable characteristics such as unbounded latency. If the program needs to have this reflected in its structure, then it is natural to have: void setupXXX(...); // which calls the setup stuff void doXXX(...); // which calls the execute st...

Avoid Primitives in API design?

I am designing an API. It will have a lot of methods which do the same, but have a different parameter primitives. public void someMethod1(int x); public void someMethod1(float x); public void someMethod1(double x); public void someMethod2(int x, int y); ... public void someMethod3(int x, int y, int z); ... Due to the primitives, I ha...

Why should anonymous types cannot be passed around methods ?

What is the design decision to lean towards not returning an anonymous types from a method? ...

Designing WCF data contracts and operations

Hi! I'm starting to design a wcf service bus that is small now but will grow as our business grow so I'm concerned about some grwoing problems and also trying not to YAGNI too much. It's a e-commerce platform. The problem is I'm having too many second thoughts about where to put stuff. I will give a scenario to demonstrate all my questi...

IVR vs Asp.net MVC: How can I stop reinventing the browser?

I'm making an IVR system for a project, and have decided on Twilio to handle the phone portion (making and receiving calls, sending and receiving SMS messages). This will surface a website with an IVR front-end, allowing users to navigate the site using their touch-tone phone. I'm not making all the content browse-able over the phone, j...

Table Design For SystemSettings, Best Model

Someone suggested moving a table full of settings, where each column is a setting name(or type) and the rows are the customers & their respective settings for each setting. ID | IsAdmin | ImagePath ------------------------------ 12 | 1          | \path\to\images 34 | 0          | \path\to\images The downside to this is every time we wa...

How should I design my iPhone app's storage architecture? Small lists, dates etc

Hey everyone, I have an app in dev that involves a small list of people, a small list of places, and dates and times. What is the best way to save this data? People - list will be < 30 people, with simple name fields and other small string feilds. Should i save them as property lists? Is there any way to simply create a pointer to a ...

37signals-style layout template

Hi! My wording may be off, but I wonder if there's an open-source HTML/CSS template/framework for creating 37signals-style layouts, much like this: Of particular interest is the tabbed layout and the sidebar to the right. ...

Good place to look for example Database Designs - Best practices

I have been given the task to design a database to store a lot of information for our company. Because the task is rather big and contains multiple modules where users should be able to do stuff, I'm worried about designing a good data model for this. I just don't want to end up with a badly designed database. I want to have some decen...

User confirmation in MVP/MVC along with web solution

How does one handle a user confirmation when using MVP/MVC in a Web environment? Presenter: if (_view.AskUserForConfirmation()) { // do something } In a winforms project this won't be any problem but in a web environment the confirmation answear will come one postback after the preseter code, how does one handle such a thing? ...

UI Design tool for android

Can anyone please suggest any good GUI Design Tool apart from Droiddraw? ...

facebook application designing?

im creating an facebook application that gets uploaded pictures in albums. no display design. i want to display the pictures in my facebook application like album pics in facebook. im using php..(how to design the facebook application to view multiple photos, form) ...

Is this the process from design to test to production?

I have an SVN repository. I design my web application. Someone manually copies the committed files from the repository to a test environment web site, it is tested. If it is good, someone manually copies it from the test site to production site. Is that how it is "supposed" to be done? EDIT: What about svn update (I read further). ...

Design question regarding threads

Hi I have class A and classes B and C. class B runs one thread and class C runs n threads. class A should start the threads and than wait for a signal from the user (say Ctrl-c in Linux) - class A will stop all threads (of classes B and C), do some final work and the application will exit. The question is: how should class A sleep unti...

Should I use proper punctuation for single sentence alert/notification popups?

Is it necessary to use a period for single sentence notification boxes? Even though its considered proper grammar to do so, it just looks ugly and feels too formal. Here are two screenies for comparison (first includes period, second doesn't). ...

Article Thubmnail Suggestion

Hi ...., I've observe some webiste tutorial in the internet. I found, while some article post, there is a thumbnail in the article list. I wanna build, CMS like that. So I need suggestion how to implement adding thumbnail while we want to post our. In my mind, In the post form, I put file input. and after the post action, I create page...

Looking for guidance on data binding

Hello, Is their any mechanism in the .net framework for a binding mechanism between say as set of data source objects and an object to be built from them. 3.5+. I'm not looking for binding to asp.net or forms binding mechanisms, which are old hat. Bob. ...

Associating an Object with other Objects and Properties of those Objects

I am looking for some help with designing some functionality in my application. I already have something similar designed but this problem is a little different. Background: In my application we have different Modules. Data in each module can be associated to other modules. Each Module is represented by an Object in our application....

Design/Code Problem - From Apress's book on Spring

I was reading Apress "Beginning Spring 2 From Novice to Professional", and I found this one section that discusses usage of DAOs. The example is pretty simple and I have pasted the src here: UserAcccount.java - UserAccount Entity UserRole.java UserRole Entity UserAccountDao.java - UserAccount DAO JdbcUserAccountDaoImpl.java - JDBC Imp...