~/talk

`rails c` with meturbocharge your use of the interactive console

Talkat RailsConf 2022 · 2022-05-17..05-19· [ruby-on-rails, developer-experience]
links:none on file
slides:none on file

Console uses IRB with Bundler or full Rails boot to give access to gems and app context; Ripper’s SX shows the actual AST a method produces; reline provides multi line editing and history; use Benchmark.measure to time suspect ActiveRecord calls, run to_sql and explain to inspect queries and planner nodes, and spin up production with the sandbox mode flag to test heavy-data behavior while rolling back changes.

AI-written summary · about

  1. 0:00Welcome
  2. 1:47What is Rails console
  3. 3:11How Rails console works
  4. 5:42Storing context with IRB
  5. 8:56Execution context in Ruby
  6. 9:18Parsing Ruby with Ripper
  7. 13:38Interactivity features
  8. 15:43Supercharging product dev
  9. 16:04Performance debugging
  10. 19:35Console in production safely
  11. 21:20Fast changes in production
  12. 22:45Fast experiments with console
  13. 23:07Product decisions with data
  14. 24:10Console commands cheat sheet
  15. 26:19Closing
~/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.