Write a Java command line program quotely
which takes as an argument English
or Russian
and returns a quote from the forismatic API with the correct language.
If a language is not specified, default to English.
Please write a java program which
- Operates on the command line
- Accepts a language as an argument (either
English
orRussian
) - Fetches results from the forismatic.com quote api (http://forismatic.com/en/api/)
- Displays to stdout the quote and author
We want to balance the value of coding exercises with the time obligation that we ask of our candidates. Please limit your time investment to two hours. If as you approach 2 hours, you find you are not almost done, document what remaining steps you would complete given more time, and submit your partial work.
You may use any external library you wish, but please do not use this or https://github.com/VEINHORN/forismatic-api-java similar client libraries which reduce the exercise to a couple API calls. This limits the utility of the exercise.
We are looking for:
- Simple, easy to understand code
- Runnable test suite
- Project organization
- Any documentation necessary to run and evaluate the program
A goal is for this project to not take a burdensome amount of time. Please include in your submission how long you spent doing this exercise, so we can adjust it as appropriate.
When complete, please provide a link to your projects GitHub repo (or public source control service of choice). You can do this by replying to the email from the recruiting team or emailing [email protected].
If you have any questions, please reach out to [email protected].
If you spend more than 2 hours on this, feel free to submit partial work. We want to be respectful of people's time commitments, and we can learn a lot about your work even if it's incomplete.
Please take care not to hammer this public API. Be kind.