News for hackers. Stuff that matters.
Re:Don't make me think, or why I switched to Rails from Java... by BenjiWiebe on Friday February 04, 2022 @01:42PM (#30211098)
I'm not new to Ruby but I don't know how to write a C-style for loop in Ruby either.

Ruby has iterators, so you don't need for loops.

list_of_things.each {|thing| thing.dostuff }

There are no comments on this comment yet.