RealmResultsController

What is it? In a single phrase, we can say that RealmResultsController is a CoreData’s NSFetchedResultsController equivalent for Realm written in Swift The Redbooth iOS App has a heavy use of CoreData and NSFetchedResultsController, so when we decided to start using Realm we faced our first problem, there was no equivalent for it. We looked at the … 

 

Using events to decouple Rails applications

During the last years Rails developers have been looking for ways to move from monolithic to component-based applications. One of these is the use of Rails Engines. The basic idea is to move away from the default MVC Rails architecture where “fat Models” end up being morbid obese. If you are interested to know more … 

 

valid , valid? , valid!

In this article, you’ll learn some interesting Ruby validation techniques. We’ll drive you trhough input and output validation inside ruby applications, the good and bads and some possible solutions. You are probably already familiar with the different validation layers present in Rails (or other ruby frameworks). Viewing them from the request point of view we … 

 

Reinvent collaboration… with ruby

Since the beginning of time, whenever a group of people work together, collaboration has been always something to improve. There is a bunch of collaboration software ready for helping you to do so, but what if you want to perform a specific idea you have? What if you want to improve your regular workflow a … 

 

Default Browser Content Security Policy

Imagine just for one second that you are browsing the web at home through your nice router or at work through a set of firewalls, routers and switches. Imagine just for one second that you have some private service in this network like databases or some web server. Then the amazing remote site adds on … 

 

Redefine CTO

This article is more personal than technical. I want to express my views on being a CTO and comparing them with those presented in Greg Bockman’s article. As a CTO, I really liked the article and I found it very inspiring. Defining roles is challenging and talking openly about it eases the job. The different paths Greg … 

 

Dry with Ruby metaprogramming

You’ve probably already heard of Ruby’s metaprogramming capabilities but you may either think it is only suitable for building frameworks and DSLs or you don’t know when to make use of it. Here we’ll show you how little doses of metaprogramming can help to dry up your Rails app. It’s definitely a tool to keep … 

 

RSpec testing guidelines at Redbooth

As your code base grows, so does the amount of testing you need to do. It is really easy to end up having dozens of different testing strategies, some of them of dubious efficiency. If your team is also growing having testing guidelines is a must. This is ours at Redbooth: Understand what a test is … 

 

The Coordinator pattern

I wanted to share a pattern that we’ve been using lately in our Backbone/Marionette application. It’s a pattern that we strongly recommend for separating monolithic applications into components. UI-heavy applications and components With the rise of reactive programming and frameworks like Facebook’s React its becoming more apparent that state should never be kept on the …