Ruby: Standard Library, Gems & Tooling. Standard Library Highlights. require 'json' JSON.parse('{"name": "Alice"}') # => {"name" => "Alice"} { name: "Alice" }.to_json # => '{"name":"Alice"}' require 'date' Date.today # #…
ReadRuby: Rails Fundamentals. Ruby on Rails is a full-stack web framework built on the MVC pattern. Convention over configuration: Rails generates predictable paths, names, and structures so you can focus on business logic..…
ReadRuby: Language Fundamentals. Ruby is a dynamic, object-oriented language designed for developer happiness. Everything is an object. Known for its elegant syntax and the Rails framework.. Data Types & Variables. # Variabl…
ReadRuby: OOP, Modules & Mixins. Classes. class Animal attr_accessor :name, :age # generates getter + setter attr_reader :species # getter only attr_writer :nickname # setter only @@count = 0 # class variable def initialize(…
ReadRuby: Metaprogramming & Interview Questions. Metaprogramming Basics. Ruby's metaprogramming capabilities allow code to write code at runtime. This powers Rails magic like has_many, validates, and attr_accessor.. # define…
ReadRuby: Rails Advanced. Service Objects. Service objects encapsulate business logic that doesn't belong in models or controllers. They keep controllers thin and models focused on persistence.. # app/services/create_post_se…
ReadRuby: Concurrency & Performance. The GIL (Global Interpreter Lock). MRI Ruby (the standard implementation) has a Global VM Lock (GVL). Only one thread runs Ruby code at a time. I/O operations release the GVL, so threads …
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever