I'm looking for a Ruby's equivalent of Code Like a Pythonista: Idiomatic Python
Desirable features:
% sudo apt-get install ruby irb rdoc
)Please, put one tutorial per answer if possible, with an example code from the tutorial and its meaning.
UPDATE:
These are the most closest to the above description resources I've encountered:
Udemy. If you want to learn Ruby programming language and are looking for a suitable platform for this purpose, then Udemy is the best place to start. It provides a tutorial about so many different courses. Here, you can learn about Ruby in a much easier and simpler manner as compared to other online tutorials.
There are five types of variables supported by Ruby.
Ruby is an object-oriented language, so the program is structured by defining classes and modules and their methods. Ruby has open classes that can be changed any time (even the core ones, like String ). To localize class changes and implement hygienic extensions, one can use refinements.
Ruby Idioms (originally from RubyGarden) is my usual reference for idioms. It's clearly organized and fairly complete. As the author says, these are from RubyGarden, which used to be really cool (thanks Wayback Machine). But now seems to be offline.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With