PodRocket - A web development podcast from LogRocket cover image

Refactoring large JavaScript codebases with Michele Riva

PodRocket - A web development podcast from LogRocket

00:00

The Importance of Abstract Syntax Trees

The code mod sort of like automates the process. The first thing you do when you feed JavaScript file to a compiler or interpreter, they basically split your code base into individual tokens. So if you have a variable declaration, for example, const name equals Mikala,. You have four tokens, right? Then the compilation should create a concrete abstract tree. And it's a binary tree, where you assign a value to a variable declarator. When it comes to understanding if the overall program works, you have to remove all the concreteness out of this process.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app