ITB 2023 Modernizing the App A tale from the trenches- David Paul Belanger.pdf
ortussolutions
31 views
14 slides
Sep 11, 2024
Slide 1 of 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
About This Presentation
This talk focuses on a single CF project which started in 2006 and grew considerably over the years. This session talks about moving slowly towards API while maintaining the excellent SEO rate the client has achieved while maintaining a good UX.
Size: 1.6 MB
Language: en
Added: Sep 11, 2024
Slides: 14 pages
Slide Content
Session
SESSION
Modernizing the App
LED BY
David Paul Belanger
A tale from the trenches
David Paul Belanger
SPEAKER AT ITB2023
Senior ColdFusion Developer, Bcom(MIS), EMBA
•ColdFusion Developer
•Francophone Canadian eh!
•Resident of Argentina
•Lucky husband
•Father of 4 highly active kids
•Movie buff
Subtitle here....
Title if need it
What is legacy code?
Code that is based on previously accepted standards
Let’s start with one simple fact:
We are all writing legacy code!
Subtitle here....
Title if need it
Let’s start with a
legacy developer
from the year
2000:
And now, let me tell you tale
The story so far
•Retail app created in 2004
•Niche market
•Secured Customer section
•Secured Site Owner section
•Secured Franchisee section
•Git since 2018
•Jira since 2019
•Maintaining a strong SEO is absolutely critical
•No access to the previous developer!
It’s time for some detective work
What do you see? What don’t you
What I saw
•Some sort of build process
(build/sources/assets)
•Grunt
•Gulp
•NPM
•Yarn?
•Apache .htaccess
•CFCs directory (com)
•Shared directed for cfincludes
What I didn’t see
•Readme.md
•Application.cfm(so it’s newish)
•Typical MVC directories
•Server.json
•“Tests” directory
•Dockerfile
Where do we go from here?
•CommandBox
•CF Framework
•API
•JS Framework
•CSS Framework
•Third-party APIs
•Docker
Key learnings
•Make the most of your readme.md
•Never rewrite the whole app
•Don’t jump into a framework before you
have a plan
•Don’t sweat the tag format
•Don’t erase comments if the code doesn’t
speak for itself
•Erase commented out code
•Feel free to move files to a better location
for better organization
•And one more thing….