Sign in to follow this  
Alpha_ProgDes

[web] Anyone know a GOOD 3-tier tutorial?

Recommended Posts

In ASP.NET would be great. Basically my problem is that I keep writing spaghetti code. Requirements keep changing, causing me to add more functionality. And now, it's just ugly. Just really fugly. To change anything is an exercise in mastering seppuku. Using the webcontrols (GridView I'm looking at you) is a blessing and curse. I would like to separate my ASPX, validation/error logic, and data access as much as possible. So if you know of site that gives good tips on 3-tiering, please share. If you have good tips on 3-tiering, please share.

Share this post


Link to post
Share on other sites
Sorry, I haven't seen any ASP.NET project nicely 3-tier'd. My work has moved to ASP.NET MVC, which does provide a few mechanisms and conventions that seem to help quite a bit.

Share this post


Link to post
Share on other sites
Based on a few attempts I've lived through, I think that the traditional "3-tier" approach to development is ineffective and introduces unneeded complexity in modern projects.

The best current solution for the problems you describe in the space of web programming is to use a fantastic MVC framework. My project (see sig) is built with CakePHP. I'm sure you'll find something similar for ASP.NET.

I initially felt the same way about the MVC framework as I did about the 3-tiered approach, but actually building something substantial with it led me to the following realizations:

* MVC adds very little actual coding overhead, unlike 3-tier
* MVC actually imposes good habits on you, such as good code modularization, unlike 3-tier
* MVC doesn't start to hurt more and more as a project gets larger and larger, unlike 3-tier

Just my 2c.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this