Ruby is the Best Javascript
summary
Claim: Ruby can be made to look and run exactly like JavaScript by abusing metaprogramming. The talk shows concrete tools — method_missing, instance_eval, define_method — plus send, eval, local_variables, Object.new and Class.new, and contrasts them with Opal and therubyracer. The author builds Ruby code that accepts var declarations, console.log and function syntax, then maps those to Ruby methods; it works surprisingly well (including making NoMethodError impossible) but is fragile, insecure and nearly unreadable.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:05Mixing Ruby and JavaScript
- 2:31Inspiration
- 3:56JavaScript-like variables in Ruby
- 4:39console.log in Ruby
- 8:09Lightweight objects
- 9:56Ruby functions like JavaScript
- 13:11Ruby’s main object and method_missing
- 20:03send and instance_eval
- 24:35define_method
- 26:43Local variables and eval
- 32:04JavaScript-style functions
- 33:25Reflecting on absurdity
- 34:49Q&A








