matadan, (edited )
@matadan@mastodon.social avatar

One top misconception about #TDD is that you should refactor the tests as you go. This means that you can delete some too. It’s like building an arch and then knocking out the supporting structure. The supports helped along the way but are no longer needed. It’s not true that “the best code is the code that was never written”. It is true that the best code modification is to delete it. Tests ensure that nothing unexpected happens once you have deleted that code.
#programming

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • PowerRangers
  • magazineikmin
  • tacticalgear
  • ethstaker
  • Youngstown
  • slotface
  • ngwrru68w68
  • Durango
  • rosin
  • kavyap
  • InstantRegret
  • thenastyranch
  • hgfsjryuu7
  • DreamBathrooms
  • Leos
  • khanakhh
  • cubers
  • tester
  • vwfavf
  • mdbf
  • GTA5RPClips
  • everett
  • cisconetworking
  • normalnudes
  • osvaldo12
  • modclub
  • anitta
  • provamag3
  • All magazines