Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

TDD Exercise: Search page filters

 
Sheriff
Posts: 15519
263
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is related to the question posed by the OP of this thread: https://coderanch.com/t/729390/engineering/Design-pattern-good-command-pattern as well as this one https://coderanch.com/t/729560/engineering/Test-Driven-Development-money-maker

The problem OP is trying to solve can be described as follows:
1. There is a web page that provides various ways of searching for things
2. Search criteria can vary in type and number of parameters
3. It should be possible to combine different types of criteria into a single search
4. It should be easy to add new search types
5. Search criteria should be reusable

The challenge: come up with a design that satisfies all of the above and do it in a TDD manner.
 
crispy bacon. crispy tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic