October 10 -12 - Vancouver, BC
Click for Node+JS Interactive Information & Registration

Back To Schedule
Thursday, October 11 • 3:20pm - 3:50pm
Machine Powered Refactoring: Leverage AST’s to Push your Legacy Code (& the Web) Forward - Amal Hussein, Bocoup

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Web apps are evolving targets which show their age via varying degrees of code cruft. Tech debt is an expected side-effect of living production web apps, and the challenge lies in paying down the debt while still pushing forward.

Enter Abstract Syntax Tree’s...

AST’s enable developers to parse input code into a predictable tree data structure that can be easily traversed, manipulated and then regenerated in place. Transpliers such as BabelJS use this powerful pattern to transpile ES2015+ down to a baseline of ES5.

While this 1:1 transpiling is the most common usage of ASTs, they can also be leveraged to supercharge the transformation of your legacy code to meet the conventions, libraries, and/or design patterns your team is using today.

Amal aims to demystify the process by breaking down the steps of how to build your own custom AST based transforms.

Happy Traversing!

avatar for Amal Hussein

Amal Hussein

Engineering Manager, npm

Thursday October 11, 2018 3:20pm - 3:50pm PDT
West Ballroom A