13
Anant Pradhan Senior Web Engineer, CUA @anant105

Refactoring your legacy app to a MVC framework

Embed Size (px)

DESCRIPTION

Refactoring your legacy app to a MVC framework

Citation preview

Page 1: Refactoring your legacy app to a MVC framework

Anant PradhanSenior Web Engineer, CUA@anant105

Page 2: Refactoring your legacy app to a MVC framework

This presentation is about: Refactoring code to MVC

Not about… ColdBox vs. FW/1 

Page 3: Refactoring your legacy app to a MVC framework

Software architecture pattern

Model: Business logic/database interactions

View: Visual representation of the system

Controller: Connects the model to the view

Page 4: Refactoring your legacy app to a MVC framework

Advantages

Separation of concerns

Better Abstraction and Encapsulation

Better organized code ‐ Code reuse

Standardization

Page 5: Refactoring your legacy app to a MVC framework

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

its external behavior

Page 6: Refactoring your legacy app to a MVC framework

Goals

Understandability

Reduced complexity

Ease of maintenance and evolution

Ease of debugging

More reliable code

Page 7: Refactoring your legacy app to a MVC framework
Page 8: Refactoring your legacy app to a MVC framework

Light‐weight, single file, convention based framework

index.cfm?action=section.item

Page 9: Refactoring your legacy app to a MVC framework
Page 10: Refactoring your legacy app to a MVC framework

Event‐driven, convention‐based framework

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

index.cfm?event=section.item

Page 11: Refactoring your legacy app to a MVC framework
Page 12: Refactoring your legacy app to a MVC framework

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

Page 13: Refactoring your legacy app to a MVC framework

Contact Info:◦ Email: [email protected]◦ Blog: http://anant5.com◦ Twitter: @anant105

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