Tag: recycle

  • Reduce, Reuse, Recycle

    Reduce, Reuse, Recycle

    From http://kids.niehs.nih.gov/explore/reduce/: Three great ways YOU can eliminate waste and protect your environment! Waste, and how we choose to handle it, affects our world’s environment—that’s YOUR environment. The environment is everything around you including the air, water, land, plants, and man-made things. And since by now you probably know that you need a healthy environment for…

  • Diamond recycling (and painting yourself into a corner)

    Diamond recycling (and painting yourself into a corner)

    The post I wrote recently on recycling tests in TDD got quite a few responses. I’m going to take this opportunity to respond to some of the points that got raised. Do we really need to use the term “recycling”? The TDD cycle as popularly taught includes the instruction to “write a failing test”. The point…

  • Recycling tests in TDD

    Recycling tests in TDD

    The standard way that TDD is described is as Red-Green-Refactor: Red: write a failing test Green: get it to pass as quickly as possible Refactor: improve the design, using the tests as a safety net Repeat TL;DR; I’ve found that step 1) might be better expressed as: Red: write a failing test, or make an…