Rodrigo Urubatan – About Code

Helping ruby developers to use the best tools for each job so they can solve hard problems, with less bugs and have more free time.

Menu
  • Home
  • My last presentations
  • About
  • Privacy Policy
Menu

Author: urubatan

Do not trust ActiveRecord data consistency validations, delegate that to the database

Posted on October 15, 2018 by urubatan

Of course you can still use AR validations, that is not my point.  But data consistency related validations should not trust AR for that, for example, if you have a “unique” constraint, and you are just trusting the database, it is really easy to break the DB consistency if for some reason you have a…

Read more

What do you need to know to put your app in production in Ruby, Python, .NET, Java, …

Posted on September 14, 2018September 14, 2018 by urubatan

Ok, this is just my opinion, and if you are a junior developer you do not need to know how to put anything in production, but it is your responsibility to learn before you get promoted to anything else than Junior. And I’m not talking just about Ruby developers here, any developer that is not…

Read more

Have you ever needed to provide an “advanced search” to your users?

Posted on September 5, 2018September 5, 2018 by urubatan

Working on a project some time ago, and my boss wanted to have an advanced search, where the users could write the search, adding fields, values, like you can do with google, but tailored for our application. In google you can do things like searching for all posts from sobrecodigo.com that have Ruby in the…

Read more

The easiest way to use sidekiq without Rails

Posted on August 30, 2018August 29, 2018 by urubatan

Sidekiq is usually my “goto” backend processing engine when I’m writing a Rails application. Recently I had to write a small app that was not a web app, so it didn’t needed Rails, but I’m very comfortable with Ruby, and decided to write the background processing app, or a small “daemon” as we called it…

Read more

Rails Quick Tip: URL Validation for ActiveRecord

Posted on August 29, 2018August 29, 2018 by urubatan

I did a quick search, and didn’t find an easy way to validate URL fields. I tried writing my own regular expressions but they kept getting more complex every time, and I do not really like to write complex regexps (If I liked it I would be programming in PERL 😛 ) So I decided…

Read more

How to deploy your dockerized rails app to AWS

Posted on August 22, 2018August 22, 2018 by urubatan

Back to docker and Rails, we’ve talked some time ago about how to dockerise your rails app, using docker and docker-compose to share a development environment configuration. To do that, we’ll use ECS service, that is the Elastic Container Service, this will allow us to build a docker container image, upload it to an ECS…

Read more

ActiveJob and declarative exception handling in your background workers

Posted on August 10, 2018August 10, 2018 by urubatan

Rails 5.2.1 was recently released, and released and it brought some improvements to ActiveJob (most of it was already in 5.1 really, the only thing added on 5.2 was the callback on discard_on), but lets keep in the subject here 😀 Recently I published a very basic post about ActiveJob, and these declarative exception handling…

Read more

rails_db – and easy way to add an SQL interface to your Rails App

Posted on August 8, 2018August 8, 2018 by urubatan

Sometimes you just want a Query interface for your app database and in the machine you are working you do not have anything similar to MySQLWorkbench or the uglier pgAdmin for postgres (I prefer the postgres database, but pgAdmin is still really ugly) Or you are completely crazy and want to expose your database in…

Read more

6 Sidekiq tips and tricks for performance, mantainability and happiness!

Posted on August 3, 2018August 3, 2018 by urubatan

This is a very opinionated post, with some performance tips from someone that uses sidekiq for more than two years now, as as such I have already did some mistakes and learnt some tricks. My current opinion is that sidekiq is the best backend job engine for ruby/rails applications. And of course to use it…

Read more

service_status_dashboard – a simple way to monitor your services, without using any external services

Posted on August 1, 2018August 2, 2018 by urubatan

There are a lot of server monitoring services around, but sometimes you need to keep the things simple, for a number of reasons, for example: your infrastructure is too simple to pay for a more complicated service You just need a “ping” to know when your http server is responding you already have an “elastic…

Read more
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Receive the latest posts by email!

Last posts

  • ActiveRecord Migration UI gem
  • Beware of Date.yesterday on your code (A timezone history)
  • How to create a request scope for your rails application
  • Random collection of Git Tips and Tricks
  • 6 Lessons From CrossFit That will help your developer career (Or any other career in the matter of fact)

Search

© 2019 Rodrigo Urubatan – About Code | Powered by Minimalist Blog WordPress Theme