What is the best way to structure a web application?

Posts   
 
    
e106199
User
Posts: 175
Joined: 09-Sep-2006
# Posted on: 18-Dec-2006 18:08:44   

Hi all, i have a general type of question. If you are designing a 3-tier web application how would you seperate each tier from each other? I have seen people using and suggesting adapter method. Is there a public example that shows a 3-tier (even something simple) application that shows everthing used. I mean how the BL is constructed and uses DAL and works with GUI.

I am trying to build myself a way of developing and i feel stupid asking this question but the way i learn and start will probably follow me for the rest of my developing circle. So i wanted to hear/learn expert opinions.

thanks -shane

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 19-Dec-2006 08:40:16   

Please check the HnD example.

e106199
User
Posts: 175
Joined: 09-Sep-2006
# Posted on: 19-Dec-2006 10:53:52   

Walaa wrote:

Please check the HnD example.

Walaa, thats what i have been doing actually. it sets a good example but i cant understand one thing. Why does it use self servicing and not adapter? Is it a small project?

And the way BL is constructed; does it have anything to do with llblgen or is it all custom/manual made?

thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 19-Dec-2006 11:11:58   

e106199 wrote:

Walaa wrote:

Please check the HnD example.

Walaa, thats what i have been doing actually. it sets a good example but i cant understand one thing. Why does it use self servicing and not adapter? Is it a small project?

It uses selfservicing because it was started back in 2002-2003 when llblgen pro just supported selfservicing. There wasn't that much of a reason to port it to adapter, as that wouldn't add much value to the project. All code is written without using lazy loading, so the structure is more or less the same as you would have used in adapter.

And the way BL is constructed; does it have anything to do with llblgen or is it all custom/manual made? thanks

The BL is hand-written. The BL's main purpose is to move the 'how to obtain the data' away from the webforms so code could be re-used.

Frans Bouma | Lead developer LLBLGen Pro
e106199
User
Posts: 175
Joined: 09-Sep-2006
# Posted on: 19-Dec-2006 16:59:50   

Otis wrote:

The BL is hand-written. The BL's main purpose is to move the 'how to obtain the data' away from the webforms so code could be re-used.

Frans, I understand, you kind of used self servicing in a adapter like structure. i like the way you code, its all very well defineed and commented out. HnD will help me alot to settle whats in my mind.

thank you

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 19-Dec-2006 17:21:05   

Thanks for your compliments! simple_smile

Frans Bouma | Lead developer LLBLGen Pro