franzejr / best-ruby

Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
http://franzejr.github.io/best-ruby/
2.39k stars 219 forks source link

Fixnum#times #36

Closed nickmcdonnough closed 8 years ago

nickmcdonnough commented 8 years ago

On the page addressing Fixnum#times you state that the developer should favor for loops over Fixnum#times. We generally avoid for loops in Ruby and I've often heard people argue that they should be removed entirely. I think an entire section discussing looping in Ruby would be appropriate. There you could mention that we stay away from for.

The file in question.

nickmcdonnough commented 8 years ago

Just saw that someone already submitted a PR for this. Ignore it.

franzejr commented 8 years ago

:+1: