Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 2.35 KB

NOTES.md

File metadata and controls

61 lines (47 loc) · 2.35 KB

How to build a CLI Gem

  1. Plan your gem, imagine your interface
  2. Start with projct structure - google
  3. Start with the entry point - the file run
  4. Force that to build the CLI interface
  5. stub out the interface - fake it until you are ready to make it
  6. start making things real
  7. discover objects
  8. program
  • A command line interface to access NPR Best Books by year

user types npr-best-books

show a list of NPR Best Books for Science Fiction & Fantasy from the most recent year.

NPR's Latest Best Books Recommendation in Science Fiction & Fantasy from 2015 in Alphabetical Order:

  1. Ancillary Mercy by Ann Leckie
  2. Bitch Planet Vol. 1: Extraordinary Machine by Kelly Sue DeConnick, illustrated by Valentine De Landro ..
  3. Your Alien by Tammi Sauer, illustrated by Goro Fujita

Which book do you want to learn more about? Type 'exit' to end program. Type 'more' to see recommendations from previous years.

1

Ancillary Mercy by Ann Leckie Recommended by Genevieve Valentine, book critic It would be a mistake to go into Ancillary Mercy hoping for the same lightning-strike of Ancillary Justice. The first installment of Ann Leckie's trilogy opened a world; by now, things are so complicated for protagonist Breq that all you can hope for is to be satisfied. Luckily, Mercy delivers. The world-building particularly shines in the machinations of this closing chapter, as Breq tries to use her new political powers to stop a war with all the weapons the Radchaai Empire has at its disposal: insinuation, shifting loyalties and the second-best tea set. ISBN-13: 978-0316246682 Paperback: 348 pages Publisher: Orbit (October 5, 2015) Average Amazon Customer Review: 4.3 out of 5 stars (233 reviews) Amazon Buy New Price: $9.59

Type 'back' to go back to book list. Type 'exit' to end program. Type 'more' to see recommendations from previous years.

#What is a list of books?

A list has_many books A list has a year A list has a genre/title

#What is a book?

Phase 1 (scrape NPR) A book belongs to a list (for now, may belong_to_many lists per cross genre) A book has a title A book has an author A book has a recommender A book has a recomendation description A book has one or more genres

Phrase 2 (scrape Amazon) A book has an ISBN A book has a publisher A book has a number of pages) A book has a type (Hardcover or Paperback) A book has an Amazon rating A book has an Amazon price