News
What is a "Hash" and How to Build one from Scratch in Ruby
Like a lot of data structures, Ruby provides us with a ready to use class Hash, which we can use by calling Hash.new or using the hash literal {}.Like other data structures, a hash holds a collection of data, but that data is not ordered. Instead,...
Don't mix refactorings with behavior changes - Code with Jason
Probably the biggest reason not to mix refactorings with behavior changes is that it makes it too easy to make a mistake.When you look at the diff between the before and after versions of a piece of code, it’s not always obvious what the implicati...
Video Tutorial: Get Started with RBS in RubyMine | The RubyMine Blog
Hello everyone,In this tutorial, you will learn how to add RBS to your project and get an overview of the main RBS features that RubyMine offers.For more information about this topic, read the section dedicated to RBS in the RubyMine documentation.
Business logic in Rails with operators | Petr Hlavicka
Having a thousand lines long controllers and/or models is not the right way to have sustainable applications or developers’ sanity. Let’s look at my solution for business logic in the Rails app.Spoiler alert: yes, I will use PORO… again.Why?Why sh...
The Ruby VM a speedrun - Penelope Phippen - YouTube
Talk given by Penelope Phippen at the online WNB.rb Meetup on September 28th, 2021.https://docs.google.com/forms/d/e/1FA...In this talk Penelope discusses layers of abstraction, intel CPUs, and how the Ruby VM does what it does. We take a quick lo...
How to Dockerize a Sinatra application - Code with Jason
Docker is difficultIn my experience, Dockerizing a Rails application for the first time is pretty hard. Actually, doing anything with Docker seems pretty hard. The documentation isn’t that good. Clear examples are hard to find.Dockerizing Rails is...