Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

The KISS (Keep It Simple Stupid) approach dictates that a developers should keep the design of the application simple. I am not sure if I understand it completely. I mean what does SIMPLE mean. Does that mean I should start writing my data access code in my code behind pages? Or does that mean I should use DataSets and DataTables as my data carriers. I worked on couple of applications where the application started off very cleanly with few basic requirements like make a form that can insert data. In a period of 1 month thousand of users were using that applicatoin. The application went from a basic one page application to a mid size application.

This makes me think that should we always layer our application with the fear that it is going to become a monster in few months? With that fear in mind here is the class diagram of the current application I am working on.

s1

 

When I could have resolved everything using the following approach.

s2

The later approach uses a single data access abstract class. All the data access is performed using the SQLDataAccess class. The former approach uses the Repositories for each of the domain type to access the data.

Posted on Monday, February 18, 2008 5:01 PM | Back to top


Comments on this post: The KISS Approach!

# re: The KISS Approach!
Requesting Gravatar...
I have concluded after many years that simplicity means using the smallest number of technologies and patterns to the maximum effect.

Also very important is the missing second half of the KISS principle: Keep it as simple as possible, but no simpler. Many problems arise when a case is simplified beyond its true nature, generating complications elsewhere.

Left by Ken Downs on Feb 26, 2008 11:13 AM

Your comment:
 (will show your gravatar)


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net