# Putting the 'D' in TDD

- Speaker: [Shai Yalin](/wiki/speakers/shai-yalin.md)
- Event: [Reversim Summit 2015](/wiki/years/2015.md)
- Video: https://www.youtube.com/watch?v=kN7PglOtSC0
- Transcript: [/transcripts/2015/19-kN7PglOtSC0.md](/transcripts/2015/19-kN7PglOtSC0.md)
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: [Testing](/wiki/topics/testing.md), [Software Engineering](/wiki/topics/software-engineering.md), [Agile](/wiki/topics/agile.md), [Technical Debt](/wiki/topics/technical-debt.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores how software design is an emergent property of coding rather than a separate planning phase, drawing parallels to gardening rather than traditional engineering. The speaker argues that test-driven development and outside-in design enable software to grow organically while adapting to changing product requirements. Listeners learn practical strategies for building maintainable codebases by starting with small, test-driven increments and focusing heavily on refactoring. Ultimately, the audience discovers how to avoid over-engineering and deliver cleaner, more cohesive systems.

## Key points

- [2:41](https://www.youtube.com/watch?v=kN7PglOtSC0&t=161s) Software engineering is less about upfront planning and more like gardening, where software grows and evolves iteratively.
- [3:42](https://www.youtube.com/watch?v=kN7PglOtSC0&t=222s) Source code and tests act as the detailed design of a system, while compilers and interpreters serve as the construction crew.
- [7:49](https://www.youtube.com/watch?v=kN7PglOtSC0&t=469s) Outside-in development encourages coding to interfaces rather than implementations, starting from the call site to build cohesive systems.
- [8:56](https://www.youtube.com/watch?v=kN7PglOtSC0&t=536s) Adhering to the YAGNI principle prevents unnecessary abstractions and future-proofing that ultimately damage product flexibility.
- [18:34](https://www.youtube.com/watch?v=kN7PglOtSC0&t=1114s) Test-driven development operates in small, meditative iterations involving failing tests, minimal code implementation, and refactoring.
- [23:57](https://www.youtube.com/watch?v=kN7PglOtSC0&t=1437s) Refactoring is not an optional phase but the core job of a software engineer, aimed at eliminating code smells.
- [27:00](https://www.youtube.com/watch?v=kN7PglOtSC0&t=1620s) Test code requires just as much refactoring and abstraction as production code to remain readable and maintainable over time.

## Takeaways

- Write code from the outside in by starting with the call site or user flow rather than internal implementations.
- Avoid building premature abstractions or speculative features for hypothetical future needs.
- Treat refactoring as a continuous, mandatory part of the development process rather than an afterthought.
- Keep end-to-end tests minimal, abstract, and focused on high-level system flows rather than edge cases.

## Questions this talk answers

- How can I design software iteratively without a comprehensive upfront architecture plan?
- What is the correct balance between unit tests and end-to-end tests in a test-driven workflow?
- How do I handle refactoring safely without breaking existing external interfaces?

## Technologies

Java, Scala, JavaScript, iOS, Android

## Tags

clean code, outside-in development, refactoring, software design, tdd, testing
