~/talk

Affordance in Programming Languages

Talkat MountainWest RubyConf 2014 · 2014-03-20..03-21· [ruby]
slides:none on file

Claim: programming languages offer concrete affordances that enable and constrain solutions. Demonstrates applying Smalltalk ideas to Ruby: named constructors (Point.x_y and Point.polar), passing an if_none callable to find, and emulating C++ RAII/deterministic destruction with a SafeResource.acquire block so resources are released reliably. Shows an extensible ImageReader using subclass iteration via the inherited hook that auto-registers readers. Each pattern is implemented in code and shown to work.

AI-written summary · about

  1. 0:00Start
  2. 2:41Affordances and Software
  3. 6:31Named Constructors
  4. 11:44Example Cleaning Up After Yourself
  5. 14:46Resource Acquisition is Initialization Acquire resources in the constructor Release them in the destructor
  6. 15:54Affordance Deterministic Destructors
  7. 21:05Subclass Iteration
  8. 24:51Don't go too far
~/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.