Does TDD mean not thinking about class design?

前端 未结 8 1846
生来不讨喜
生来不讨喜 2021-02-06 01:17

I am making a role playing game for fun and attempting to use TDD while developing it. Many of the TDD examples I see focus on creating the test first, then creating objects tha

8条回答
  •  迷失自我
    2021-02-06 02:03

    TDD leans toward thinking about and experimenting with class design concretely using running code rather than abstractly with pencil and paper.

    Both approaches are useful. Even hardcore TDD zealots use pencil-and-paper (or perhaps a whiteboard) at times, and BDUF-ueber-alles types will bang out the occasional prototype. The question then is where you tend to fall: ponderer or more hands-on?

提交回复
热议问题