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

Defensive Programming - Fear Driven Development

Lior Sion
February 26, 2013

Defensive Programming - Fear Driven Development

What does it mean to develop in fear, why it happens and what you should do to avoid it in your team - a presentation for Reversim Summit 2013

Lior Sion

February 26, 2013
Tweet

More Decks by Lior Sion

Other Decks in Programming

Transcript

  1. little about me Product, technology and development consultant RoR, Python/Django,

    Performance is my passion Development methodologies, agile and effective patterns @liorsion, about.me/liorsion Tuesday, February 26, 13
  2. defensive dev It’s mostly about psychology Ruby code as example

    For every rule there’s an exception Tuesday, February 26, 13
  3. defensive dev It’s mostly about psychology Ruby code as example

    For every rule there’s an exception Tuesday, February 26, 13
  4. defensive dev It’s mostly about psychology Ruby code as example

    For every rule there’s an exception Tuesday, February 26, 13
  5. defensive dev It’s mostly about psychology Ruby code as example

    For every rule there’s an exception Tuesday, February 26, 13
  6. More refactoring W r o n g ! Don’t refactor

    if you don’t know the code Tuesday, February 26, 13
  7. why do that? Don’t know better Can’t be bothered Afraid

    of production meltdown Tuesday, February 26, 13
  8. why do that? Don’t know better Can’t be bothered Afraid

    of production meltdown Need to teach Tuesday, February 26, 13
  9. why do that? Don’t know better Can’t be bothered Afraid

    of production meltdown Need to fire Need to teach Tuesday, February 26, 13
  10. why do that? Don’t know better Can’t be bothered Afraid

    of production meltdown Need to fire Why? Need to teach Tuesday, February 26, 13
  11. Most popular reasons We’re in a hurry The code is

    too complicated I don’t know what is going on there There’s code smell in this area There are no tests Tuesday, February 26, 13
  12. space time theories There’s never enough time But spending the

    time saves time, always Tuesday, February 26, 13
  13. space time theories There’s never enough time But spending the

    time saves time, always On Quality Tuesday, February 26, 13
  14. Fear Fear is an emotion induced by a perceived threat

    which causes entities to quickly pull away from it and usually hide People develop specific fears as a result of learning. Fear is paralyzing Paralyze is spiral, technical debt is collecting => startup death Tuesday, February 26, 13
  15. psychology Don’t punish mistakes Don’t punish a task that spirals

    FOR GOOD REASONS In short - don’t punish Tuesday, February 26, 13
  16. My work here is done Find me: @liorsion Find funny

    images: http://thejoysofcode.com Tuesday, February 26, 13