![Best Tutorials website](/images/logo.jpg)
![How To Use Refactoring To Handle Multiple Versions of Classes](/images/picture.gif)
How To Use Refactoring To Handle Multiple Versions of Classes
Recently, I had a requirement to put together a website that deals with taking somewhat elaborate financial surveys. While the questions and answers themselves are good candidates for being database driven, there were a large number of nuiances ranging from UI items, business rules, and calculations that just didn't fit into a database driven strategy. With this in mind, my initial strategy was to create version specific classes and reference them in version specific ASP.NET pages. Of course, this accomplished the initial requirement. However, whenever a new version needs to be implemented, I had to copy all of the ASP.NET pages and modify the references to the appropriate version specific class name. Refactoring provides a better alternative and here's how:
Views: 1454 |
| by Mathew
View this tutorial
![Popular tutorials](/images/img_popular.gif)
Most popular (last 7 days)
![Ciara forum signature](/uploads/28745.gif)
![Water in Cinema 4D](/uploads/23582.jpg)
![Hologram](/uploads/26797.jpg)
![Star Wars Hailfire Droid](/uploads/33296.gif)
![Create a computer case model](/uploads/29018.jpg)
Highest rated (last 7 days)
![CSS graphic menu with rollovers](/uploads/29378.jpg)
![XP Style Beaker Icon](/uploads/12288.jpg)
![Hulk Text](/uploads/11195.jpg)
![Psychedelic logo](/uploads/10198.jpg)
![Word Game](/images/picture.gif)