<commit_before># Ruby Exercises

Exercises to practice programming in Ruby.

Here at [CodeUnion][codeunion] we believe that one of the best ways to develop skills as a programmer is to write code and get feedback on your code in the form of a [code review][code-review] from a more experienced programmer.

We wrote these exercises with the intent to give you the opportunity to solve some fun programming challenges and then submit your solutions to us for code review. [Click here to see an example code review][example-code-review].

All of the core exercises can be found in the [exercises](exercises) directory, and bonus exercises (i.e. really tough ones) can be found in the [bonus](bonus) directory.

## How To Use This Repository to Get Code Reviews

1. Fork and clone this repository
1. Write code that solves individual exercises
1. Make small, frequent commits
1. Push your commits to Github
1. Submit your commits to [url] for feedback

If you don't have or don't know how to use Ruby and Git development tools to accomplish any of the above steps, please follow this step-by-step tutorial.

The files are listed in alphabetical order, but we recommend working on them in the below order.

1. [max.rb](exercises/max.rb)
1. [min.rb](exercises/min.rb)
1. [longest_string.rb](exercises/longest_string.rb)
1. [shortest_string.rb](exercises/shortest_string.rb)
1. [word_count.rb](exercises/word_count.rb)
1. [count_in_list.rb](exercises/count_in_list.rb)
1. [count_max.rb](exercises/count_max.rb)
1. [sum.rb](exercises/sum.rb)
1. [mean.rb](exercises/mean.rb)
1. [print_square.rb](exercises/print_square.rb)
1. [print_triangle.rb](exercises/print_triangle.rb)
1. [print_pyramid.rb](exercises/print_pyramid.rb)
1. [print_horizontal_pyramid.rb](exercises/print_horizontal_pyramid.rb)
1. [hot_or_cold.rb](exercises/hot_or_cold.rb)
1. [bottles.rb](exercises/bottles.rb)
1. [find_even.rb](exercises/find_even.rb)
1. [mode.rb](exercises/mode.rb)
1. [commas.rb](exercises/commas.rb)
1. [factorial.rb](exercises/factorial.rb)
1. [fibonacci.rb](exercises/fibonacci.rb)
1. [find_links.rb](exercises/find_links.rb)
1. [find_title.rb](exercises/find_title.rb)
1. [pig_latin.rb](exercises/pig_latin.rb)
1. [pad_array.rb](exercises/pad_array.rb)
1. [time_format.rb](exercises/time_format.rb)
1. [run_length_encode.rb](exercises/run_length_encode.rb)
1. [run_length_decode.rb](exercises/run_length_decode.rb)
1. [rot13.rb](exercises/rot13.rb)
1. [rot_n.rb](exercises/rot_n.rb)
1. [to_english.rb](exercises/to_english.rb)
1. [to_roman.rb](exercises/to_roman.rb)
1. [person.rb](exercises/person.rb) and [person_notes.rb](exercises/person_notes.rb)
1. [die.rb](exercises/die.rb)
1. [die_sides.rb](exercises/die_sides.rb)
1. [die_labels.rb](exercises/die_labels.rb)
1. [board.rb](exercises/board.rb)
1. [hot_or_cold.rb](exercises/hot_or_cold.rb)


[codeunion]:http://codeunion.io
[code-review]:http://en.wikipedia.org/wiki/Code_review
[example-code-review]:https://github.com/ninashulman/open-source-kata/commit/59959dafe10b36b75cab14036b97a7e9b00ce9cd<commit_msg>Lots of copy editing to README to improve clarity<commit_after># Ruby Exercises

Exercises to practice programming in Ruby.

Here at [CodeUnion][codeunion] we believe that one of the best ways to develop skills as a programmer is to write code and get feedback on your code in the form of a [code review][code-review] from a more experienced programmer.

We wrote these exercises with the intent to give you the opportunity to solve some fun programming challenges.

If you are a CodeUnion student, you can then submit your code and receive feedback on them using the [CodeUnion command-line tool][codeunion-cli-tool]. Preview an [example code review][example-code-review].

All of the core exercises can be found in the [exercises](exercises) directory, and bonus exercises (i.e. really tough ones) can be found in the [bonus](bonus) directory.

The exercise files are listed in alphabetical order in the [exercise directory](exercises), but we **strongly recommend** working on them in the [suggested order](exercises/_SUGGESTED_ORDER.md).

## Getting Started

1. [Fork][gh-help-forking] and clone this repository
1. Write code to solve individual exercises
1. Make small, frequent commits
1. Push your commits to your fork on GitHub

Once your code is on the GitHub, you can (and should) request feedback with the [CodeUnion command-line tool][codeunion-cli-tool].

### Requirements

You will need a working copy of [Ruby][ruby-home-page] to complete these exercises.

If you don't have or don't know how to use Ruby and Git development tools to accomplish any of the above steps, read our [guide on setting up your development environment][guide-development-environment].

<!-- Links -->

[codeunion]:http://codeunion.io
[codeunion-cli-tool]:https://github.com/codeunion/codeunion-client/
[code-review]:http://en.wikipedia.org/wiki/Code_review
[example-code-review]:https://github.com/ninashulman/open-source-kata/commit/59959dafe10b36b75cab14036b97a7e9b00ce9cd
[guide-development-environment]:http://codeunion.io/curriculum/guides/development-environment/

[gh-help-forking]:https://help.github.com/articles/fork-a-repo/
[ruby-home-page]:https://www.ruby-lang.org
[git-home-page]:http://git-scm.com
{'fraction_non_alphanumeric': 0.11417697431018078, 'fraction_numerical': 0.018268315889628926, 'mean_word_length': 5.212765957446808, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5840707', 'n_tokens_mistral': 1837, 'n_tokens_neox': 1764, 'n_words': 523}