GithubHelp home page GithubHelp logo

tddtrainning's Introduction

Exercise: Create a command line program that works like this:

java googleAndBingResults cerveza 5

  • Cerveza - Wikipedia, la enciclopedia libre
  • Historia de la cerveza - Wikipedia, la enciclopedia libre
  • Elaboración de cerveza - Wikipedia, la enciclopedia libre

So the program should receive the console arguments, http request google and bing, merge the results and show the first n results.

Additionally it should create a LRU cache of size 15 to store the results of the most popular searches, the cache can be saved into a local file and its loaded overtime the application starts.

Remember that LRU cache means “Last Recently Used”, and its basically a data structure with limited capacity (In this case 15) and when it is full it only keeps the items that have been accessed recently, the other items are deleted somehow.

(optional) The cache should delete entries that haven’t been active for more than 2 days.

Notes: The objective with this exercise is to encourage you to use the concepts of TDD and Refactoring: Very likely you will be required to use Mocks, Stubs and Integration testing.

Remember that testing is a creative process, you should use your creativity to come up with nice and communicative ways to test things.

tddtrainning's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.