JavaScript Zagreb Meetup / Studeni

This time we will talk about JavaScript code styles and static analysis tools that help us keep the code quality. After that we’ll explore the mystical world of a syntax tree.

Ivan Vuković: Add space after {

Have you ever received or sent pull request and most of code review comments was about code formatting and variable naming? This talk will introduce some code style linters and static code analysis tools for JavaScript to you. Also, we will take a look on some popular JavaScript style guides, and I will show some strategies on how to incorporate this to your workflow to improve your code quality and how that is done in ShoutEm. After this talk, you will focus yourself much more on code quality and real improvements over code formatting issues.

Vladimir: Hugging a syntax tree

When reasoning about the content of our JavaScript files we usually think of them as a bunch of alphanumeric characters. Our tools to manipulate those files reflect this. What we usually forget is that each of those files has a life of its own and eventually becomes a programmatically inspectable syntax tree. What if we took advantage of this and used it to make smarter coding tools? I tried to examine this concept and created a small command line toolkit which tries to utilize it. I will explain how a syntax-aware diff could be created and exploit the syntax tree further to create a smarter merge tool as well.

više