20min NewsReader Exercise
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


20min NewsReader Exercise

In case you get stuck anywhere, don’t be afraid to ask the coaches! They are here to help and will gladly explain everything to you! Take notes during the exercises. Even if you never look at them again, they will help you memorise things!


The tasks are listed as TODO comments in the source code files.


In this excercise you will create a command line RSS news feed reader. Yay!

You are going to implement two "commands":

  • latest
  • show [id]


With this command you can "list" an overview of recent news feed entries from 20min.ch . You will be invoking this like so:

ruby news_reader.rb latest

show [id]

The output of the latest command gives you for each news feed entry an unique number, which you can use to display the full story of given entry. So, if you decide to show the full story of id 13, you can execute this on the command line

ruby news_reader.rb show 13