Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Nothing stops a program from executing quite as fast as a syntax error. After years of “unexpected end” in my dev life, I decided to “do” something about it. In this talk we'll cover lexing, parsing, and indentation informed syntax tree search that power that dead_end Ruby library. RubyKaigi Takeout 2021: https://rubykaigi.org/2021-takeout/presentations/schneems.html
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In this engaging talk presented at RubyKaigi Takeout 2021, Richard Schneeman confronts the common issue of syntax errors that plague Ruby programmers. He begins with a catchy metaphor comparing syntax errors to being chased by dinosaurs, thus establishing the tone of the discussion. The main focus is on the development of the 'dead_end' Ruby library, designed to alleviate the confusion that arises from unexpected end syntax errors. Key points covered throughout the presentation include: - **Introduction to Syntax Errors**: - Syntax errors in Ruby can lead to significant productivity loss, with Schneeman citing an average of a hundred hours wasted due to such errors. - He presents a statistic indicating that 78.3% of developers desire an AI tool to identify syntax errors. - **The dead_end Library**: - Demonstrates how this free gem helps identify various syntax issues, including missing keywords ('if', 'do', 'def'), unmatched 'end' statements, and missing brackets. - While it cannot solve every problem, it provides developers with useful feedback on code syntax. - **Technical Insights**: - Discusses the importance of parsing and lexing code using Ripper, Ruby's built-in parser. - Explains the complexities surrounding Ruby's permissive parsing rules, which can lead to difficult-to-identify syntax errors. - Shares examples of code that is valid syntactically but functionally useless, emphasizing challenges faced during error resolution. - **Developer Background**: - Schneeman shares his credentials, including his role in creating CodeTriage.com and his current position at Heroku. - He emphasizes his significant experience in open-source development and community engagement. - **Conclusion**: - The talk highlights strategies for understanding syntax errors in Ruby and introduces tools like dead_end to tackle these issues. - Schneeman encourages developers to embrace available tools and engage with error messages to improve their coding productivity. Through this presentation, attendees are not only informed about the developer experience surrounding syntax issues in Ruby but also empowered with practical solutions via the dead_end library.
Suggest modifications
Cancel