Development
Code
Ruby
EN
RU
Ruby
Course
Ruby course: the language, the library and two capstones
165 lessons in chapters: the language, the standard library, testing, networking and a small web API.
Open
→
All articles
ruby/
basics/
(1)
Ruby basics: irb, puts and sockets
course/
(173)
Ruby course
1 What is Ruby and where it runs
2 Install Ruby and check the version
3 irb: the interactive shell
4 Your first Ruby script
5 Variables
6 Numbers
7 Strings
8 Symbols
9 Truthiness: only false and nil
10 Conditions
11 Loops
12 Arrays
13 Hashes
14 Ranges
15 Methods
16 Blocks, procs, lambdas
17 String tools
18 Files and IO
19 Exceptions
20 Modules and mixins
21 Classes and objects
22 Inheritance
23 Enumerables
24 Duck typing and core idioms
25 Gems and Bundler
26 Testing with Minitest
27 Debugging
28 Encodings
29 Time and date
30 JSON and YAML
31 HTTP clients
32 Sockets
33 REST APIs
34 puts, print and p
35 Metaprogramming
36 Enumerators
37 Pattern matching
38 Arguments: splats and kwargs
39 Rake tasks
40 Environment and CLI
41 Logging
42 CSV
43 ERB templates
44 WEBrick server
45 Rails in one lesson
46 Capstone: todo CLI
47 Capstone: JSON API
48 Performance
49 Modern Ruby tour
50 Where to go next
51 What a CI pipeline is
52 Ruby in GitHub Actions
53 Ruby in GitLab CI
54 Rake as the pipeline runner
55 Bundler and the cache
56 RuboCop in the pipeline
57 Test reports a pipeline can read
58 Ruby in Docker images
59 Build and release a gem
60 Auditing dependencies
61 Secrets in a pipeline
62 One job, several Ruby versions
63 Artifacts against caches
64 Automated releases
65 Making a pipeline fast
66 Security scans
67 Deploying from a pipeline
68 Ruby tools a pipeline runs
69 A pipeline for a CLI gem
70 A pipeline for a web API
71 The same program in Ruby and Python
72 Text and files in both
73 HTTP and JSON in both
74 A CLI in both
75 Minitest against pytest
76 Gems against pip
77 Threads in both
78 The same task, measured
79 Project: a log analyzer
80 Project: a link checker
81 Project: CSV to JSON converter
82 Project: package the CLI as a gem
83 Project: a pipeline for your own project
84 Ruby from another language
85 irb beyond the prompt
86 How a Ruby program is put together
87 nil and object identity
88 Mutable, frozen and copied objects
89 Integers, floats and rounding
90 Formatting strings and numbers
91 Constants, globals and scope
92 Random numbers, ids and tokens
93 case and when in depth
94 Guard clauses and modifiers
95 break, next, redo and retry
96 &&, ||, and, or and safe navigation
97 The array toolbox
98 The hash toolbox
99 Nested arrays and hashes
100 Enumerable by task
101 Sorting and comparison
102 Sets and set operations
103 Lazy enumerators
104 public, protected and private
105 Keyword arguments and forwarding
106 Blocks, yield and closures
107 Procs, lambdas and method objects
108 Recursion in Ruby
109 Struct and Data
110 Comparable and Enumerable in your own class
111 Modules as namespaces
112 Singleton methods and class << self
113 Equality and value objects
114 Exception classes and custom errors
115 ensure, at_exit and cleanup
116 warn, warnings and log levels
117 Debugging with the debug gem
118 TracePoint, benchmark and profilers
119 Reading and writing files
120 Paths and directories
121 Binary files and streams
122 File metadata and permissions
123 Watching files for changes
124 Regular expressions
125 Scanning and parsing strings
126 A text pipeline
127 Formatting tables in the terminal
128 Time zones and durations
129 Parsing and formatting dates
130 Unicode, bytes and encodings
131 YAML in depth
132 CSV in depth
133 XML and HTML
134 Configuration files
135 Net::HTTP in depth
136 A REST client that survives
137 A web app with Sinatra
138 Rack: what a Ruby web app is
139 Rails models without the whole app
140 Rails controllers and views
141 A JSON API in Rails
142 What is inside a gem
143 Bundler groups and platforms
144 Rake in depth
145 A real CLI with OptionParser
146 Configuration and environment
147 Logging in depth
148 Testing a web app
149 Minitest assertions
150 Minitest in spec style
151 Doubles and stubs
152 Coverage
153 RSpec in one lesson
154 Testing files and IO
155 The object model and method lookup
156 method_missing done right
157 define_method and small DSLs
158 Refinements
159 Garbage collection and memory
160 Profiling a slow script
161 Pattern matching in depth
162 Threads, mutexes and queues
163 Processes, fork and signals
164 Fibers and the scheduler
165 Parallel work without a framework
Ruby in Docker
Install Ruby on FreeBSD
Install Ruby on macOS
Install Ruby on Rocky Linux
Install Ruby on Ubuntu
Install Ruby on Windows 11
Threads and fibers
introduction/
(1)
Introduction to Ruby