How to Make WWWow with
Jamstack / Headless
A free guide!

Home Blog Ruby on Rails development
Post image

Why Do We Fail at Abstractions?

We have all been there. We got a task to introduce totally new functionality. New database relations, controllers, services, models, views. We all said: “this time it will be different”. We asked the right business questions, and designed exactly what was requested. In spite of that, three sprints later, things got messy. The code is rigid, the business requirements have changed and the project is out of hand, again.
read more
Post image

Multiprocessing vs Multithreading in Ruby: Which is Better?

Parallel computing is a cure for performance issues. It allows to do several things at once, which sounds great in the context of background jobs. Inspired by Python’s multiprocessing module I began to think about the parallelism in Ruby. Of course, there are several ways to get closer, but in this post I’ll try to focus on the `Process` module. But before we start, I recommend that you quickly remind the differences between a process and a thread.
read more
Post image

Tutorial - how to skip Sentry Slack notifications

We’ve been working on integrations of many different warehouse systems with the Shopify platform. All data exchange between them utilizes Sidekiq workers’ background jobs. Generally, we want to be notified about the first occurrence of an error. So most exceptions are caught by Raven and sent to Sentry.
read more
Post image

4 Amazing Features of Rails 6.0

Rails 6.0. is finally released. We’re excited to see all the new stuff Rails 6.0 has to offer!
read more
Post image

Do You Really Know Public Private And Protected In Ruby

Public, private and protected access - all of the programmers are familiar with that concept. Nothing special, we work with them on a daily basis. However, as Ruby programmers, do we really know the details?
read more
Post image

8 Ruby Frameworks That Are Not Rails

It’s common for a Ruby developer to only have experience with Rails and describe themselves as a Ruby on Rails developer. Since David Heinemeier Hansson created Rails in 2003 it has been one of the most popular web frameworks out there. After many painful years spent creating spaghetti code in PHP, you could simply build a blog in under 15 minutes. On top of that, the code looked beautiful. That being said, there are many other options out there for Ruby developers, that aren’t Rails.
read more
Post image

Chain of Responsibility Pattern in Ruby on Rails

While we were working on a project we stumbled upon some legacy code that consists of huge ‘if else’ statements. In this post we’ll show you how we refactored it using the Chain of responsibility pattern.
read more
Post image

Who Gives a F*** About Rails in 2019?

Let’s face it. Ruby on Rails is old. Really old. But judging by the changes that happen on the tech market it’s an extremely mature technology, so it makes perfect sense to use it in certain cases and applications.
read more
Post image

How to Remove Old Database Migrations in Ruby on Rails

Recently we’ve overtaken a big project for maintenance and further development. It’s a Rails application with many models, controllers and of course lots of database migrations.
read more
Post image

CMS for Jekyll? Why Netlify May Be a Good Choice for Your Site

Is love at first sight even a thing? I believe it is! And our new site is a result of that love.
read more
Post image

MQTT vs Kafka: A Communication Between Microservices

Recently microservices architecture is becoming more and more popular. In this post, we'll compare the two most popular messaging brokers - Kafka and MQTT (Mosquitto) to see which one is the best.
read more
Post image

How to Create Shopify Orders with API

Creating an order using Shopify API with status set to 'paid' might be somewhat a tough and tricky task. Surprisingly, this is not a practical or a trivial issue. In fact, an ability to catch a payment outside of Shopify, using a custom payment gateway, can be really convenient.
read more
Post image

Value Based Pagination in Ruby on Rails

This is a quick tutorial that will show you how to properly handle value-based pagination in Ruby on Rails and where to use it.
read more
Post image

Ruby: Count Articles by Category [Elastic Search]

Have you ever wanted to calculate how many articles will be left in a certain category after search? In this blogpost, I will show you how to use elastic aggregations to achieve this.
read more
Post image

Ruby on Rails - How to Create Perfect Enum in 5 Steps

When your project starts you probably design ERD diagram or a similar one. Then, each time when a client passes new requirements to you it’s necessary to modify it. That process helps to understand the specific domain and mirrors the reality.
read more
Post image

11 Types of Apps You Can Build with Ruby on Rails

Wondering what platform to use for your next startup project? When it comes to building MVPs, Ruby on Rails still remains the king of frameworks but not only startups use Rails - a lot of very mature services, services you probably use every day, managed to utilize its full potential by creating applications used by hundreds of thousands of users.
read more
Post image

Importing Data to Database in Rails 50 Times Faster Than Normal

Have you ever needed to save lots of records with unique attribute to database using ActiveRecord? Have you noticed how time consuming such task is? I would like to show you how to do it quickly.
read more
Post image

Run Services in the Background

Some time ago [Marcin wrote about basic design patterns in Ruby on Rails](https://naturaily.com/blog/ruby-on-rails-design-patterns). I’d like to go back to Service pattern in this post. I really like it, it's a good idea to place application’s business logic there. At Naturaily we use it quite often.
read more
Post image

Ruby on Rails implementation of a ranking system using PostgreSQL

Hello, this article will show, how easily you can add ranking functionality to your project.
read more
Post image

Ruby on Rails View Components with Trailblazer Cells

In recent times view components became a really popular web design pattern. View component is standalone part of view, which can be used at many views.
read more
Post image

API authentication using Devise and Doorkeeper (minimal setup)

Have you ever tried to setup Devise and Doorkeeper in the simplest possible way, without oauth applications etc? Here it is! In this article, I'll show you in a few easy steps that setup you searched for!
read more
Post image

Basic Ruby on Rails Design Patterns

Not only as programmers, but in day-to-day life, we encounter some problems. Every person has similiar difficulties, and our society has found universal ways, **_patterns_**, to solve that problems. As programmers we also have problems, which can be solved by patterns.
read more
Post image

Rails on a Diet

More and more apps are being created with an API support. Growing popularity of Angular.js and Backbone.js makes it even more important part of new projects. Why is that? There is a trend to seperate backend from frontend not only in terms of logic but also to split the project into two seperate ones - pure API backend and client-side-only frontend. What's all the fuss about? It is simple - you have a nice and clear API for a javascript webapplication and therefore you do not need to worry about the assets pipeline and other full-stack projects related issues. And you get an API for mobile devices. For free.
read more