If you had two projects with the same specification and only one was developed using TDD how could you tell?

Posted by Andrew on Programmers See other posts from Programmers or by Andrew
Published on 2012-03-20T21:36:06Z Indexed on 2012/03/20 23:39 UTC
Read the original article Hit count: 284

Filed under:
|
|
|

I was asked this question in an interview and it has been bugging me ever since.

You have two projects, both with the same specification but only one of these projects was developed using Test Driven Development. You are given the source for both but with the tests removed from the TDD project. How can you tell which was developed using TDD?

All I was able to muster up was something about the classes being more 'broken up' in to smaller chunks and having more visible APIs, not my proudest moment. I would be very interested to hear a good answer to this question.

© Programmers or respective owner

Related posts about java

Related posts about interview