Refactoring your legacy app to a MVC framework

Preview:

DESCRIPTION

Refactoring your legacy app to a MVC framework

Citation preview

Anant PradhanSenior Web Engineer, CUA@anant105

This presentation is about: Refactoring code to MVC

Not about… ColdBox vs. FW/1 

Software architecture pattern

Model: Business logic/database interactions

View: Visual representation of the system

Controller: Connects the model to the view

Advantages

Separation of concerns

Better Abstraction and Encapsulation

Better organized code ‐ Code reuse

Standardization

Disciplined technique for restructuring an existing body of code, altering its internal structure without changing 

its external behavior

Goals

Understandability

Reduced complexity

Ease of maintenance and evolution

Ease of debugging

More reliable code

Light‐weight, single file, convention based framework

index.cfm?action=section.item

Event‐driven, convention‐based framework

Model ‐> Model View ‐ > View Controller ‐> Handler Layouts ‐> Templates

index.cfm?event=section.item

Framework One Wiki: https://github.com/framework‐one/fw1/wiki ColdBox Wiki: http://wiki.coldbox.org/

Contact Info:◦ Email: anant@anant5.com◦ Blog: http://anant5.com◦ Twitter: @anant105

All CFSummit slides available at:http://www.slideshare.net/ColdFusionConference

Recommended