Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Defensive Programming vs. Let It Crash

Defensive Programming vs. Let It Crash

Shared at the second meetup of Elixir Shanghai.

A talk highly inspired by Ferd's "The Zen of Erlang" post, but from a different angle.

What does Erlang bring to the table that could enable us to be less defensive and more confident about our code?

Lou Xun

July 30, 2016
Tweet

More Decks by Lou Xun

Other Decks in Programming

Transcript

  1. Other&ingredients • A#func(onal#language • much#less#state • Message#passing • async#opera(on •

    Monitor#&#Link • handle#process#down,#fail#as#a#unit • Preemp(ve#scheduling,#Distribu(on [email protected]$/$Ela$Workshop
  2. Erlang/OTP • A#set#of#Erlang#libraries#and#design'principles • gen_server#etc.. • maintain#state • unified#interface •

    supervisor • sole#job#is#supervising#children • start,#stop,#monitor,#restart [email protected]$/$Ela$Workshop