~/talk

Pattern matching: The gateway to loving Elixir

Talkat Code Elixir LDN 2018 · on Thursday, 2018-08-16· [elixir-and-erlang]
links:none on file
slides:none on file

Explains Elixir’s match operator semantics and shows concrete examples with lists, tuples, the pin operator, and the underscore. Demonstrates replacing nested JavaScript/Ruby conditionals with multi-clause functions and guard clauses to compute user display names for Learn.co, reducing complexity to three clauses. Covers custom guard clause implementation (preferred over macros for compile-time checks), notes limited but optimized guard expressions, and points out widespread use in GenServer, Ecto, and encoding/decoding APIs.

AI-written summary · about

  1. 0:00Start
  2. 2:37PATTERN MATCHING
  3. 3:38BINDING ON MATCH
  4. 3:55MATCHING WITHOUT BINDING
  5. 4:47REBINDING
  6. 5:12PIN OPERATOR
  7. 5:35LISTS
  8. 6:42MATCH ERRORS
  9. 7:13TUPLES
  10. 8:11UNDERSCORE VARIABLE
  11. 11:46JAVASCRIPT
  12. 12:44RUBY
  13. 13:14ELIXIR
  14. 14:51MULTI-CLAUSE FUNCTIONS
  15. 15:31ORDER MATTERS
  16. 16:07GUARDING THE BORDERS
  17. 16:51CASE STATEMENT?
  18. 17:32ADD MORE CLAUSES?
  19. 20:44CUSTOM GUARD CLAUSES
  20. 22:10TAKEAWAYS
~/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.