Ruby X vs Y
Dynamic language and its reference interpreter.All Ruby pages
- Ruby puts vs print vs p: what each one outputs and returnsRuby puts adds newlines and prints arrays one item per line, print adds none, and p shows inspect output and returns its argument. Differences and when to use.
- Ruby symbol vs string: :name vs "name"A Ruby symbol is an immutable, unique identifier and a string is mutable text. Why h[:id] and h["id"] differ, JSON keys, conversion and when to use each one.