Ruby Enums Ruby does not have native support for enum (as a core module/class or keyword). Many coming from other programming languages may miss this feature (myself included, as I came from C#). Maybe: This does not mean that you cannot represent the enum type in Ruby. There are many ways (like...
Ruby Metaprogramming Ruby is an amazing programming language in many aspects, especially regarding metaprogramming! The fact that everything is an object, give to the programmer the ability to manipulate methods and closures, the inheritance chain classes, callbacks, have modules with common...
Ruby Hash The Hash class is widely used in Ruby code, due to its key/value structure. It has many interesting methods, aside from most basic ones, like #default and #key?, used to return a default value if the desired key was not found and verify if some key exists, respectively. There are...
If you had to pick a pair of everyday words to describe the nature of your codebase, what would they be? Take a moment and fill in the following blanks. "I would describe my codebase as ______ and ______" Now, answer a similar question about your ideals: "I would describe my ideal codebase as...