Open-Closed Principle in Ruby
Open-closed is one of the SOLID principles, an acronym originally coined by Uncle Bob. In this post I will cover what open-closed is, why it is important and how it applies to Ruby.
Our First Ruby Stories
Ruby community in Brno hasn’t been active recently and we wanted to bring some fresh air. So we organized a new event that is focused solely on Ruby. It’s called Ruby Stories. What were the talks about? Who came?
Vive: A Revolutionary Network for Modern Women
We are delighted to give you an update on the benefit of the Vive network for modern women. We remain focused and devoted to offering our clients the very best experience ever with Vive. Vive makes beauty is easy and simplified.
Ruby Brighton 2016 Report
Welcome to Brighton! South from London. Ruby. Beach. English breakfast.
Introducing a new GoPay gem for handling payments
Hi everyone, I’m Ondrej and I’m a co-author of GoPay Ruby gem. In this blog post, I’ll tell you how we make our lives easier when handling payments via GoPay REST API.
Single Responsibility Principle
In computer programming, SOLID (Single responsibility, Open-closed, Liskov substitution, Interface segregation and Dependency inversion) is a mnemonic acronym introduced by Michael Feathers for the “first five principles” named by Robert C. Martin in the early 2000s that stands for five basic principles of object-oriented programming and design. The principles, when applied together, intend to make […]
Playing with “joins” in ActiveRecord
On many occasions we need to load multiple records with associations from a database. The easiest way is to access this is via iteration (.each) written in Ruby. This is not the best approach as it can result in issuing 1+n queries (complexity O(n)) instead of single query (O(1)). Using iteration isn’t optimal because as the […]
Wroc_love 2016 Report
We spent three wonderful days in Poland at Wroc_love.rb, a Ruby-oriented conference. Here’s a quick recap about our experience.
Introduction to TDD
Here at PrimerHammer, we use TDD (Test-Driven Development) as our primary and most trusted method of building code that is sustainable, well designed and easy to read. TDD is what allows us to safely refactor our code without the fear of changing its behavior or “breaking things”. If you are not sure what TDD is […]
On this trip, our team went to Salzburg Austria to attend the well-known Ruby conference.