~/talk

Ruby is the Best Javascript

Talkat RubyConf 2018 · 2018-11-28..11-30· [ruby]
slides:none on file

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

  1. 0:00Introduction
  2. 1:05Mixing Ruby and JavaScript
  3. 2:31Inspiration
  4. 3:56JavaScript-like variables in Ruby
  5. 4:39console.log in Ruby
  6. 8:09Lightweight objects
  7. 9:56Ruby functions like JavaScript
  8. 13:11Ruby’s main object and method_missing
  9. 20:03send and instance_eval
  10. 24:35define_method
  11. 26:43Local variables and eval
  12. 32:04JavaScript-style functions
  13. 33:25Reflecting on absurdity
  14. 34:49Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.