~/talk

Little Snippets

Talkat RubyDay 2016 · 2016-11-25..11-26· [ruby]
slides:none on file

Real examples from Ruby and ActiveRecord show concrete swaps that save time or bugs: use sort...last → max instead of sorting, prefer String#include and Regexp#match (the latter is about 2–3x faster and has no regex side‑effects) instead of =~, use \A and \z for exact anchors (not ^/$), prefer require_relative over File.expand_path, use $stdout not STDOUT for testable output, remove redundant self, name units like threshold_in_seconds, and favor concise, specific APIs for clearer intent and better performance.

AI-written summary · about

  1. 0:00Introduction and personal story
  2. 7:49Opinions and subjectivity in code
  3. 13:57Writing concise code
  4. 25:57Writing readable code
  5. 35:50Ordering code naturally
  6. 43:45Being precise and accurate
  7. 55:03Code style and consistency
  8. 1:00:05Q&A on hash literals
~/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.