refactoring your legacy app to a mvc framework
DESCRIPTION
Refactoring your legacy app to a MVC frameworkTRANSCRIPT
![Page 1: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/1.jpg)
Anant PradhanSenior Web Engineer, CUA@anant105
![Page 2: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/2.jpg)
This presentation is about: Refactoring code to MVC
Not about… ColdBox vs. FW/1
![Page 3: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/3.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/4.jpg)
Advantages
Separation of concerns
Better Abstraction and Encapsulation
Better organized code ‐ Code reuse
Standardization
![Page 5: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/5.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/6.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/7.jpg)
![Page 8: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/8.jpg)
Light‐weight, single file, convention based framework
index.cfm?action=section.item
![Page 9: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/9.jpg)
![Page 10: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/10.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/11.jpg)
![Page 12: Refactoring your legacy app to a MVC framework](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/12.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022042713/548817a3b4af9f640d8b5566/html5/thumbnails/13.jpg)
Contact Info:◦ Email: [email protected]◦ Blog: http://anant5.com◦ Twitter: @anant105
All CFSummit slides available at:http://www.slideshare.net/ColdFusionConference