~/talk

Design by Contract in Elixir: “Let it crash” meets ...

Talkat ElixirDaze 2016 · on Friday, 2016-03-04· [testing]
slides:none on file

Claims that Design by Contract is practical in Elixir by using metaprogramming to inject assertions, demonstrates a working library that redefines def to add requires/ensures tags via Elixir macros (quote/unquote), and runs a concrete tank fill/empty demo where a precondition failure blames the caller and a postcondition failure reveals a buggy implementation. Library lives as ElixirContracts on GitHub, currently works for the demo but is a work in progress—needs test-case generation, runtime toggles, docs and QuickCheck integration.

AI-written summary · about

  1. 0:00Start
  2. 1:53Did you know?
  3. 4:44What happened?
  4. 7:01History
  5. 7:41Basics of Hoare logic
  6. 8:49DbC vs. Testing
  7. 9:33What is Design by Contract?
  8. 10:45Structure of a contract
  9. 11:31Example
  10. 12:39in Ariane's case
  11. 14:16Advantages
  12. 14:55Language support
  13. 15:24Metaprogramming In Elixir
  14. 16:07Macros Rules
  15. 18:54Quote Macro
  16. 20:17Back to DbC
  17. 26:46FURTHER WORK
  18. 27:15To conclude
  19. 27:58References
~/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.