TLDR; Array, Set and SortedSet reflect various data structures created for different purposes. It’s good to know their pros and cons and, based on them, be able to select the one which fulfils concrete requirements best. Sometimes there is almost no difference, but there are cases where Set & SortedSet are much faster (and more suitable) than Array and Read more…
Everybody makes mistakes. Some of them are caught early in a deployment pipeline: during writing code, testing it locally or code review process. Unfortunately, some hide cleverly and pop up on the production environment.
TIL that Ruby, or to be more precise Class class, offers allocate public instance method. According to the documentation the method: Allocates space for a new object of class’s class and does not call initialize on the new instance. The returned object must be an instance of class. The same documentation includes a nice code Read more…
In the previous article, we dived into ActiveSupport::StringInquirer class and superpowers it gives to String objects. After I had published that article I decided to take another look at the ActiveSupport module and to my surprise, I found something even more interesting, ActiveSupport::ArrayInquirer class.
Rails magic is a widespread term among developers working with Ruby on Rails application. Is it an overstatement? Well, it depends. Rails magic is a widespread term among developers working with Ruby on Rails application. Is it an overstatement? Well, it depends.
Today I learned that HTTParty gem has a built-in option for enabling logging details of all requests made by the gem.
…and how to fix them 🙂
I was looking for a file in GitHub repo, but didn’t manage to find it. How to check if a file was in a repository and/or when it was removed?
If you have Gemfile file in your repository you know what Bundler is.
EmberJS is a framework for creating ambitious web applications. It follows a convention over configuration software development paradigm.