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

TDD is it worth it?

TDD is it worth it?

A talk about using TDD in Rails projects

Avatar for Karthikeyan A K

Karthikeyan A K

April 19, 2014
Tweet

More Decks by Karthikeyan A K

Other Decks in Programming

Transcript

  1. Angry Developers • Takes 2.5 X time • Lot to

    code • Will client pay me so much? • Project profits? • Competition?
  2. Why then TDD? • Is your client serious about the

    project? • Does he want the project to last long? • Does he wants his customers to be satisfied? • Is he willing to listen to you rather than code on his own?
  3. Why then TDD? • If answer is yes to all

    the previous questions the go with TDD • Else drop project
  4. What TDD demands? • Good Planning • Good Programmers •

    Patience • Coding Quality Improvents – Disciplined coding
  5. How TDD helps you? • Refractor without much worries •

    Porting between Rails version becomes lot easier • No need to keep testing things again and again manually • Saves lot of time in the long run
  6. Budgeting for TDD • Make client understand the following –

    What he thinks may be different from final outcome – What we programmers understand may be different from clients thought – So full estimation and budgeting may be a wrong idea
  7. Go on agile • Take a small problem • Should

    be able to complete in a week • Do it and show it to client • Talk and put next weeks plan / problem • Repeat it
  8. No easy way out! • Computers may be science •

    Humans (clients) are illogical • Know to drop humans when they don't suit you