News
Predicting the Future With Linear Regression in Ruby
The world is full of linear relationships. When one apple costs $1 and two apples cost $2, it's easy to figure out the price of any number of apples. But what happens when you have 100s of data points? What if your data source is noisy? That's whe...
`obj.method_name` vs `class << obj`: The Real Difference.
I was looking at some answers on StackOverflow for the difference between Ruby’s self.method_name and class << self. I wasn’t satisfied with the answers. While all the answers did very well at explaining object.method_name and class << object, I f...
An index route without pagination can destroy your app!
Last week I was involved in a problem that started to happen with an internal application.This app is written with Ruby on Rails and it uses Puma as the web server. It has an api which is used by a lot of other important applications.Suddenly, it ...