Home > Articles > Programming > Java

  • Print
  • + Share This
Like this article? We recommend

Where Do We Go from Here?

I hope you spotted the duplication we introduced when adding support for the title bar text. Both the test and the production code contain the hard-coded string "Hold ’Em". In fact, anywhere we need to add a new string to the GUI, that string would by definition need to have been driven out by unit tests. Any new string implicitly represents duplication! Again, if we don’t get a handle on the problem now, it will only get worse.

In the next installment, "Building the View," we’ll talk about what we might do about this duplication. We’ll also start constructing the details of our Texas Hold ’Em view. Meanwhile, here’s the code (source.zip) we’ve built in this installment.

  • + Share This
  • 🔖 Save To Your Account