Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Rob Whittaker
Rob Whittaker
@purinkle@ruby.social  ·  activity timestamp 6 hours ago

The thing about TDD that took me years to understand: it is not about the tests. It is about the design pressure. Writing the test first forces you to consider the interface before the implementation. The tests are a nice side effect.

#Ruby #TDD

A red rectangle labelled "Test" with an arrow pointing to a larger teal rectangle labelled "Design", illustrating how tests shape design. Caption reads "The test shapes the design."
A red rectangle labelled "Test" with an arrow pointing to a larger teal rectangle labelled "Design", illustrating how tests shape design. Caption reads "The test shapes the design."
A red rectangle labelled "Test" with an arrow pointing to a larger teal rectangle labelled "Design", illustrating how tests shape design. Caption reads "The test shapes the design."
  • Copy link
  • Flag this post
  • Block
Remi Mercier
Remi Mercier
@remi@ruby.social  ·  activity timestamp 2 hours ago

@purinkle Yes! And once you wrote a whole spec file to better define the structure, you light just as well convert these into tests.

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.29 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct