Ruby Rogues Code Reading – Dotenv
A nice code reading session on dotenv by ruby rogues.
dotenv is an environment variable loader for ruby. It’s a simple library, but there’re some edge cases around parsing and loading setting from the .env file, and resulted in a good session about some good ruby techniques.
It talks about
- difference between protected and private
- enumerator behaviors with inject and each_with_object method
- composing complex regexes with multiple sections and recursions
- parsing quoted and unquoted variables in the .env file
Looking for another session.