Manipulating Ruby Abstract Syntax Tre...
Manipulating Ruby Abstract Syntax Tree, com Jônatas Davi Paganini
-
- 11/17/2017 at 03:20 p.m.
- Recorded on Nov. 17, 2017, 3:20 p.m.
-
- 51 views
Description
You’re using Ruby everyday but have you checked how Ruby parse your code? In this talk I’ll show you how Ruby code is tokenized and parsed. Then, we’ll go deeply on the code representation: the Abstract Syntax Tree. Access this meta data about the code can be useful for code metrics and automated checks about syntax, code style and anything your mind can invent about code manipulation. Handing the AST is possible to search for some meta code and replace systematically. We’ll see how how tools like RuboCop does it and also how you can create your own patterns to check code systematically.
Jônatas Davi Paganini: Nerd, cyclist, and blogger. I’m a pair programming evangelist. Vim editor user and enthusiast. In love with Ruby since 2007. I worked in different domains and technologies including embedded systems, financial markets, 3D printers, web and mobile development.
Organized by
-
Locaweb
Pioneira e líder em hospedagem de sites no País, oferece um portfólio completo de serviços de internet com foco no sucesso dos seus clientes.