Wow, it’s been a while since I’ve shared links, and I have a big pile of them now. Maybe, sharing them a bunch per post would be at least readable.
This time it’s about BrainFuck interpreter in Ruby, some new stuff from ruby 2.4, discussion of deprecations and hashie and suggestions how to improve background jobs performance in Rails.
BrainFuck interpreter written in Ruby with TDD.
Specs are written in MiniTest.
I would really prefer RSpec (or at least Spec falvor of MiniTest) but it’s still interesting.
Compare-by-identity in Set in Ruby 2.4 and UUID as type of PK column in Rails 5
These are ones of many “hey, here’s a heads up on what new to expect in the new Ruby/Rails version” from awesome guys at BigBinary. By the way, they don’t only write good and concise articles about new stuff, but also react to feedback very quickly, in my experience. :)
The second one is a bit old but still is useful and that’s what I found when I had to look up for a reminder how to do it.
The Straight Dope On Deprecations
A very nice, in-detail take on deprecations, with examples on how to do them the right way and a very interesting thought throughout the post - “you’re not deprecating enough”.
It also links to “Hashie considered harmful” which, while it’s published in the end of 2014, still is a very good post. It explains why you probably don’t need Hashie and what to use instead.
Ruby Standard Library
Short recap on some of the things that Ruby standard library can do that you might not knew it can. Not much new for me personally there, to be honest, but it’s still a pretty good reminder. You may find something new for yourself.
The author behind BlackBytes, Jesus Castello, also reacts to the feedback very quickly.
Improving Rails Performance with Better Background Jobs
Pretty big and detailed article describing step by step some of ways to optimize the background jobs.