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

Speeding up Tests with Creativity and Behavioral Science

Speeding up Tests with Creativity and Behavioral Science

Given at ParisRB Conf 2020 on 2/18/20.
https://2020.rubyparis.org/

Video recording is here: https://www.youtube.com/watch?v=Rs5HBkPkTSA

Moncef Belyamani

February 18, 2020
Tweet

More Decks by Moncef Belyamani

Other Decks in Programming

Transcript

  1. Moncef Belyamani / ParisRB / 2.18.20
    Speeding up Tests
    with Creativity and
    Behavioral Science

    View full-size slide

  2. Moncef Belyamani
    he/him
    @monfresh
    moncefbelyamani.com
    [email protected]

    View full-size slide

  3. Immediate Return

    View full-size slide

  4. Delayed Return

    View full-size slide

  5. 16.77 seconds

    View full-size slide

  6. 0.03745 seconds

    View full-size slide

  7. Before: 18 minutes

    View full-size slide

  8. After: 6.5 minutes

    View full-size slide

  9. 86
    09
    $86
    $9
    no
    yes
    $38
    $12

    View full-size slide

  10. 3 person-weeks saved per year!

    View full-size slide

  11. Framing Effect & Loss Aversion

    View full-size slide

  12. Consequences > Benefits

    View full-size slide

  13. Make it difficult
    easy

    View full-size slide

  14. Commitment Device

    View full-size slide

  15. The great majority of people in your local area pay their tax on time.
    Most people with a debt like yours have paid it by now.

    View full-size slide

  16. Slides: tinyurl.com/monfresh
    Merci!

    View full-size slide

  17. References and
    further reading

    View full-size slide

  18. Anchoring Bias
    Framing Effect
    Immediate vs Delayed Return, Present Bias
    Atomic Habits, Chapter 15
    Humans Wired to Respond to Short-Term Problems
    The Battle Between Your Present and Future Self
    The Evolution of Anxiety
    https://jamesclear.com/time-inconsistency
    Pareto Principle, 80/20 Rule
    https://en.wikipedia.org/wiki/Pareto_principle
    MIT Experiment: Predictably Irrational, Chapter 2
    Thinking, Fast and Slow, Chapter 11
    https://www.youtube.com/watch?v=5k6U4roEnbE
    http://www.eucim-te.eu/data/dppsenglich/File/PDFSStudien/PSPB_32(1).pdf
    Nudge, Chapter 1, pp 36-37
    Thinking, Fast and Slow, Chapter 34
    https://thedecisionlab.com/biases/framing-effect
    https://www.reddit.com/r/Showerthoughts/comments/clkc7a/a_5_second_unskippable_ad_feels_longer_than_5/
    Loss Aversion
    Thinking, Fast and Slow, Chapters 26-28

    View full-size slide

  19. Social Norms
    Atomic Habits, Chapter 9
    Nudge, Chapters 3, 19
    UK tax study: https://www.nber.org/papers/w20007.pdf
    Commitment Device
    Atomic Habits, Chapter 14
    Victor Hugo Recounted by a Witness of His Life
    https://languor.us/victor-hugo-working-naked-story-myth-or-fact
    More Articles and Talks
    Atomic Habits Bonus Chapter: How to Apply These Ideas to Business
    https://regpaq.com/atomic-habits-review-notes-lessons
    Dan Ariely TED talk: How to change your behavior for the better
    Information Displays That Change Driver Behavior
    https://www.atlassian.com/blog/productivity/cognitive-bias-examples
    The Cognitive Biases Tricking Your Brain
    Caseflow repo
    https://github.com/department-of-veterans-affairs/caseflow
    Images
    All images in the PDF link to their source
    Code samples generated with https://carbon.now.sh/

    View full-size slide