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

Let's test!

Let's test!

Scrivere codice pulito che funzioni.Pur sembrando un'apparente contraddizione che si cela nelle difficoltà della programmazione,lo sviluppo guidato dai test risponde a questa sfida con un paradosso:scrivere test prima dell'implementazione. Lo sviluppo software guidato dai test è una pratica della metodologia Agile che elimina le paure nella scrittura di codice e porta gli sviluppatori ad incrementare drasticamente la qualità delle loro applicazioni. Durante il talk verrà mostrato come l'approccio alla pratica cambi il proprio modo di programmare,rendendolo più divertente,affidabile e proficuo.

Andrea Giuliano

March 23, 2013
Tweet

More Decks by Andrea Giuliano

Other Decks in Programming

Transcript

  1. Let’s test! “Come ho fatto fino ad ora a lavorare

    senza test?” “Non tornerei mai più indietro!”
  2. Why automatic tests? Let’s test! confidence in your code progressive

    input growth no fear tests as documentation easier to alter code understand HOW code works working software over comprehensive documentation easy to run don’t waste your time feedback
  3. Clean code that works cit. Ron Jeffries predictable way to

    develop learn all of the lessons that the code has to teach you improve the lives of the users of your software let your teammates count on you, and you on them feel good to write code Let’s test!
  4. How do we get to clean code that works? Many

    forces drive us away from clean code and even from clean code that works Let’s test!
  5. Test Driven Development Let’s test! Test-driven development is less and

    more writing test first...but TDD is about design Test-driven development is a way of managing fear during programming
  6. our tasks Red: write a little test that doesn’t work

    Green: make the test work quickly Refactor: eliminate all the duplication created in merely getting the test to work feature #1 feature #2 feature #3 Let’s test!
  7. what are the benefits? improve quality of your code behaviours’

    verification coverage functionality test as documentation long term maintainability very short time feedback about bugs collaborative working QA from reactive to proactive Let’s test!
  8. ok, it’s cool but my resources are limited I want

    to be cheap I want to be fast I want to be good Let’s test!