Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > BOOK: Professional Enterprise .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Enterprise .NET
This is the forum to discuss the Wrox book Professional Enterprise .NET by Jon Arking, Scott Millett; ISBN: 978-0-470-44761-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Enterprise .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 24th, 2011, 10:18 AM
Registered User
 
Join Date: Aug 2009
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
Default Question regarding MVC patters. Chap 10

Hi Jon, Scott

Great book and has really got me thinking differently about application design. One area I'm struggling to really see the benefit over how im already working is the chapter and example on MVC.

I understand the concept of removing the business logic from the presentation layer and making it indipendent, reusable and testable, but the way i currently design websites already achieves this, but without any exposure to MVC methods.

I generally create a sepearte Class library which contains business classes and then invoke them from code behind file. Based on the example in Chap 10 I would have a Class named MortgageCalculator that had a Calculate method that accepted the 3 values and returned the calculation. From code behind id then instantiate that class and pass in the values of the text fields directly. This method requires significantly less complexity whilst allowing the MortgageCalculator class to be reused and tested independently of the UI.

Am I missing some critical point that would explain the benefot over the MVC method used in the book?

Many thanks

Stewart
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap 10 - duplicate file names kenj BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 0 October 12th, 2010 08:45 PM
Chap 10 : Error in sample Code Haziz BOOK: Professional SharePoint 2010 Development 0 June 15th, 2010 04:48 AM
Chap 10 Ex. 1 Solution, Appendix A, p. 638 VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 8 March 30th, 2006 11:47 AM
Chap 10 FileSystemObject Problems orbbital BOOK: Beginning ASP 3.0 2 April 20th, 2005 10:19 AM



All times are GMT -4. The time now is 12:14 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.