- One feature I overlooked in Ruby 2.5: you can now initialize Structs with keyword arguments. All you need is to append
keyword_init: trueas option. More information in this blog post.
- Mike Perham, author of Sidekiq and Faktory, reminds about great advice coming straight from Ruby docs:
It is recommended that a library should have one subclass of StandardError or RuntimeError and have specific exception types inherit from it. This allows the user to rescue a generic exception type to catch all exceptions the library may raise even if future versions of the library add new exception subclasses.
- If you need yet another idea for your microservices architecture, take this one. It features RabbitMQ as a main bus and there’s plenty of Ruby examples inside. I’ve used similar setup few projects ago and I can generally recommend it.
- Few days ago I started to wonder how git diffs work internally (I only knew basics, but I wanted technical answers). I would never expect to find a great post series exactly about that. And with code samples in Ruby. I really enjoyed reading it and I think you might like it too.
- If you want to start with Machine Learning but don’t want to dust your Python skills (my case exactly), you’ll be happy to know that there is a gem called ‘lurn’ to do ML in Ruby.