Branching tree structures

Workshop: 1 day

Abstract Syntax Trees for JavaScript Developers

Bookable for teams – on-site or remote

Workshop description

Book this workshop

Our mentors look forward to working with your team and unlocking new capabilities.
Get in touch
1

Introduction to Abstract Syntax Trees

We’ll introduce the concept of an Abstract Syntax Tree by looking at various examples like the JSON tree and HTML Element tree. Participants explore syntax trees interactively using AST Explorer, learning to navigate Handlebars ASTs and identify the node types, attributes, and relationships.

2

Use cases for Abstract Syntax Trees

Next we’ll explore concrete use cases for Abstract Syntax Trees in real-world engineering: code analysis, compilation and refactoring.

3

Working with Handlebars ASTs

Participants will apply the learned concepts to do a variety of real-world exercises on Handlebars template files. This includes code analysis & compilation with @glimmer/syntax and refactoring with ember-template-recast. Participants will detect problematic code patterns and implement a way to automatically fix them.

4

Writing ESLint rules using the JavaScript AST

During the final section we’ll dive into the JavaScript ecosystem and do code analysis exercises by writing various ESLint rules that can be integrated into a CI pipeline.

Your mentor

Chris is a member of the Ember Core Tooling Team and the Ember Core Learning team and has been working with Ember since 2011. Chris has been working on shipping the Ember Polaris Edition as part of both the Embroider Initiative and the Ember Initiative

Book this workshop

Our mentors look forward to working with your team and unlocking new capabilities.
Your message is being sent…

Unable to send message.

Please try again later or contact us at info@mainmatter.com

Thank you!

We will be in touch soon.

Not the right workshop for you?

Take a look at our wide range of workshops to take your team to the next level
Our workshops

Stay up to date!

Subscribe to our newsletter and stay up to date about the latest events, workshops, and other news around our work.