Rubies
Newcomers to programming would benefit from practicing drills regularly until basic problem solving becomes second nature. This gem is a command line tool that allows users to solve randomly generated small problems.
It currently supports drills surrounding simple and complex data structures. I would like more complex problems to be part of the suite soon. Right now, they are intended towards navigating simple to compound data structures as this is often an area that newcomers to programming find confusing.
Installation
$ gem install rubies
Usage
rubies
After typing rubies
into your terminal, you will see the Splash screen:
After starting, you will see randomly generated data structures for you to work through:
Here, you are being asked to find 865
in the array called current
, which is located in the 3rd position (or index of 2
). The answer would be the following:
[1] rubies(main)> current[2]
=> 865
Here, you are given a hash called current
and are being asked to find the right command for engineer collaborative schemas
. The key associated with that value is Bergnaum-Pouros
, so the answer would be the following:
[1] rubies(main)> current["Bergnaum-Pouros"]
=> enable collaborative schemas
Here, you are given an array with a hash in it, or a compound data structure, and are being asked to find (106) 777-4274
. This is how you could go about it:
[1] rubies(main)> current[0]["Mikel Herman"]["phone"]
=> (106) 777-4274
Type new
to get another data structure or exit
to quit and see your final score. Try to do 15-20 minutes every day and you will be in great shape!
Contributing
- Fork it ( https://github.com/vikram7/rubies/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request