Skip to content (Press Enter)
Menu
  • Home
  • About me
  • Events
  • Not So Random Software
  • Books
  • Research
  • Learn to code in London
Search for:
  • Home
  • About me
  • Events
  • Not So Random Software
  • Books
  • Research
  • Learn to code in London
Search for:

Alfredo Motta

Software Engineering, Machine Learning and Innovation blog.

Categories

Home>ruby (Page 3)

Tag: ruby

A different take on validation using the dry-validation gem

A different take on validation using the dry-validation gem

Categories:ArticleUpdated on: July 22, 2020March 10, 2019 mottalrd

If you are using Rails and you find yourself fighting validations more often than you would like to, then you should consider watching my talk …

Read More
An Introduction to Event Sourcing for Rubyists

An Introduction to Event Sourcing for Rubyists

Categories:ArticleUpdated on: July 22, 2020May 13, 2018 mottalrd

Event sourcing is a design pattern to build applications that are domain centric and easy to extend. The pattern is based on the usage of …

Read More
To raise or not to raise exceptions, and the art of designing return values

To raise or not to raise exceptions, and the art of designing return values

Categories:ArticleUpdated on: July 22, 2020November 3, 2017 mottalrd

Each time we call a function that’s meant to perform some operation that could succeed or fail we are always left with the same dilemma. …

Read More
Introducing Hash#dig_and_collect, a useful extension to the Ruby Hash#dig method

Introducing Hash#dig_and_collect, a useful extension to the Ruby Hash#dig method

Categories:ArticleUpdated on: July 22, 2020November 4, 2016 mottalrd

In this blog post I will introduce Hash#dig_and_collect , a simple utility method that is built on top of Hash#dig to help you navigate nested hashes mixed …

Read More
Dockerized Rails Capybara tests on top of Selenium

Dockerized Rails Capybara tests on top of Selenium

Categories:ArticleUpdated on: July 22, 2020May 31, 2016 mottalrd

If you use Docker to deploy your Rails application you may want to use the same infrastructure to run your tests. However the setup of your Selenium …

Read More
How to isolate complex queries in an object oriented fashion

How to isolate complex queries in an object oriented fashion

Categories:ArticleUpdated on: July 22, 2020January 28, 2016 mottalrd

Building complex queries in ruby can make your code quite difficult to read, manage and reuse. In this blog post I’ll present a simple method to …

Read More
Upload video files with progress bar using Rails, Paperclip and Javascript

Upload video files with progress bar using Rails, Paperclip and Javascript

Categories:ArticleUpdated on: July 22, 2020May 24, 2015 mottalrd

Rails does not help much when dealing with AJAX uploads by means of external JS libraries. I recently came across a case where a user …

Read More
Understanding the Resque internals – Resque::DirtyExit unveiled

Understanding the Resque internals – Resque::DirtyExit unveiled

Categories:ArticleUpdated on: July 22, 2020March 30, 2015 mottalrd

If your Resque jobs fail because of a mysterious Resque::DirtyExit a quick tour of the Resque internals will help you fix the issue and be back up …

Read More
Bringing Ruby fetch to the Javascript world

Bringing Ruby fetch to the Javascript world

Categories:ArticleUpdated on: July 22, 2020February 23, 2015 mottalrd

If you are a Rubyist you are probably comfortable using the fetch method on a day-to-day basis but when you are developing in Javascript this sweetness …

Read More

Posts navigation

Page 1 Page 2 Page 3
© 2021 Alfredo Motta. All Rights Reserved. Rara Readable | Developed By Rara Theme Powered by WordPress.
✖

Cancel reply

Answer the question * Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Cancel