0
r0o0cky's Avatar, Join Date: Jul 2011
Newbie Member
I found awnser to my query, so i thought to share it in this forum so others can also know this. Bydefault ASP.NET implements Page Controller pattern through out the ASP.NET Page life cycle which is the code-behind page.

For beginners who have just started working on ASP.NET the page controller pattern can serve as entry level. The drawback is lack of unit testing and repetition of logic as the logic resides inside the code behind file.

Next level after this could be the MVP pattern, which is best for UI applications like ASP.NET, Windows, Mobile, etc. This pattern is easy to learn and very manageable. But it is recommended only if you need unit testing, you need to reuse the logic, or your interface can be different like Web, Windows or Mobile application.

Shabbir you can correct me if I am incorrect anywhere, Thanks.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by r0o0cky View Post
I found awnser to my query, so i thought to share it in this forum so others can also know this. Bydefault ASP.NET implements Page Controller pattern through out the ASP.NET Page life cycle which is the code-behind page.

For beginners who have just started working on ASP.NET the page controller pattern can serve as entry level. The drawback is lack of unit testing and repetition of logic as the logic resides inside the code behind file.

Next level after this could be the MVP pattern, which is best for UI applications like ASP.NET, Windows, Mobile, etc. This pattern is easy to learn and very manageable. But it is recommended only if you need unit testing, you need to reuse the logic, or your interface can be different like Web, Windows or Mobile application.

Shabbir you can correct me if I am incorrect anywhere, Thanks.
I am not ASP.NET expert and so cannot comment on what you are saying but I think if you have tested it would right only. Yes MVP pattern is used at many places including in MFC classes.
0
sigfin2004's Avatar, Join Date: Feb 2010
Newbie Member
may i ask the sources for the main UML diagram, they look like they were built using sparx enterprise architect. would be most grateful sir.

Thanks for any consideration.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by sigfin2004 View Post
may i ask the sources for the main UML diagram, they look like they were built using sparx enterprise architect. would be most grateful sir.

Thanks for any consideration.
Nope I have used Visual Studio and EA.
xpertprogrammer like this
0
sigfin2004's Avatar, Join Date: Feb 2010
Newbie Member
Quote:
Originally Posted by shabbir View Post
Nope I have used Visual Studio and EA.
EA is sparx enterprise architect.

: ) i would appreciate it if you still have the eap file?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by sigfin2004 View Post
EA is sparx enterprise architect.

: ) i would appreciate it if you still have the eap file?
No I don't have them.
xpertprogrammer like this
0
simple's Avatar
Newbie Member
Flyweight = use the same existing one instead of creating new one. in your example how its achieved?
0
Trimegisto's Avatar, Join Date: Mar 2011
Go4Expert Member
Very useful info. Thanks!
0
Md Tariq ul Islam's Avatar, Join Date: Oct 2011
Newbie Member
source code download link is not working
0
shantanudesai2009's Avatar, Join Date: Dec 2011
Newbie Member
Hey.. thats really nice and helpful post for the newbies in DP.. Can u please suggest me where I can find excercises on Design patterns.. like case studies or something..??

Example : Some situation be given , and asked for which design pattern will suit this..?? or some situation be given, and asked how "particular" DP is used here??

It shall really be helpful.. thanks in advanced..