TIL

Jun
29

TIL: Ruby Knows the Source of Required Code

There's a magic variable which, if initialised, will contain the source of all the files imported afterwards
Jun
28

TIL: Using File Locking for Exclusivity in Ruby

Two TILs in one, how to use native file locking to prevent more than one process running at the same time
1 min read
Jun
27

TIL: Ruby Has a Built-in Persistance Database

Did you know Ruby has a built-in database?
1 min read
Jun
26

TIL: Ruby Associative Arrays

Using arrays as if they had keys
1 min read
Jun
25

TIL: Automatic Deep Keys with Ruby Hashes

Generate keys automatically for building deep hashes quickly. Best explained with an example.
Jun
24

TIL: Named Structs

Named structs in Ruby
Jun
23

TIL: Matching Multiple Values in a Case Statement

Matching more than one value in a case statement
Jun
22

TIL: Incrementing Alphanumerics

Incrementing aphanumerics
Jun
21

TIL: Ruby's Built-in Timeout

Explicitly timeout long-running tasks
Jun
20

TIL: Ruby Warnings

Ruby warnings