~/talk

Side-effects are not your friend

Talkat Rubyfuza 2013 · 2013-02-01..02-03· [ruby, functional-programming]
slides:none on file

Compares Haskell’s Haskell value vs variable distinction to Ruby and Scala, shows how the compiler can optimize immutable values, and demonstrates concrete refactorings: pull an impure increment_by into a pure add, compose functions, and replace loop-with-vars with map/reduce so tests no longer require instantiating a whole Calculator object. Explains ActiveRecord as ActiveRecord as convention for side effects, argues to extract pure functions and count assignments per coding session to reduce brittle coupling and costly tests.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Haskell
  3. 2:53Rename
  4. 4:02Value vs Variable
  5. 4:50Variable is immutable
  6. 6:21Ruby makes no distinction
  7. 6:39There is no variable
  8. 7:20Value is not variable
  9. 8:46No assignment
  10. 10:24Security
  11. 14:08Test
  12. 21:22Undo
  13. 21:58Multistep
  14. 22:51Taming sideeffects
  15. 24:33ActiveRecord
  16. 25:57Moral of my story
~/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.