Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RubyConf 2018 - Ruby is the Best JavaScript by Kevin Kuchta Some people love Ruby and some people love JavaScript. Both will hate this talk. In a display of complete moral depravity, we'll abuse flexible syntax and metaprogramming to make valid Ruby code that's indistinguishable from JavaScript. We'll use a variety of tricks to accomplish it that you can take home and use in more respectable code.
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 his talk titled 'Ruby is the Best JavaScript' at RubyConf 2018, Kevin Kuchta explores the intriguing concept of using Ruby and JavaScript interchangeably. He begins by highlighting the misconception that distinguishes these two programming languages, arguing that Ruby’s syntax and metaprogramming capabilities can mimic JavaScript functionality. Throughout the presentation, he demonstrates various methods to combine Ruby and JavaScript, emphasizing the importance of creative coding techniques. Key takeaways from the talk include: - **Tool Overview**: Kuchta introduces tools such as Opal, which compiles Ruby to JavaScript, and the Ruby Racer gem, which allows JavaScript to be embedded into Ruby applications, showcasing reputable methods for integrating the two languages. - **Syntax Manipulation**: He cleverly demonstrates how to craft Ruby code that appears to be JavaScript by bending standard conventions. For instance, he creates a 'var' method that behaves like JavaScript's variable declaration and illustrates how to implement 'console.log' functionality using Ruby syntax. - **Metaprogramming Techniques**: Kuchta discusses how Ruby's metaprogramming features can be leveraged to create lightweight objects that mimic JavaScript objects, allowing users to write more syntactically pleasing and less convoluted code. - **Anonymous Functions**: He explains how to define anonymous functions while maintaining the structure of JavaScript’s syntax by utilizing Ruby’s Proc objects and adapting JavaScript-style functions within Ruby. - **Creative Coding**: Throughout the talk, Kuchta emphasizes the flexibility of Ruby's syntax to create code that effectively mirrors JavaScript without compromising Ruby’s inherent capabilities. Kuchta concludes by reaffirming the rich possibilities presented when engaging the unique features of both languages. His experimentation in blending Ruby and JavaScript offers valuable insights for developers seeking to expand their programming techniques. He invites the audience to explore these methods while acknowledging the chaos generated through the process, humorously apologizing for the unconventional approach taken during the presentation.
Suggest modifications
Cancel