Skip to content

Alfredo Motta

Software Engineering, Machine Learning and Innovation blog.

  • Home
  • About me
  • Events
  • Books
  • Research
  • Learn to code in London

Tag: oop

How to isolate complex queries in an object oriented fashion

Posted on January 28, 2016January 28, 2016 by 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 decorate active record objects to make your queries fun again!

Tagged activerecord, designpattern, oop, rails, ruby 8 Comments

Follow me on

  • twitter
  • Reddit
  • Feedly
  • Github
  • linkedin
  • RSS feed

Recent Comments

  • mottalrd on Introducing Hash#dig_and_collect, a useful extension to the Ruby Hash#dig method
  • Brian Katzung on Introducing Hash#dig_and_collect, a useful extension to the Ruby Hash#dig method
  • Alfredo Motta on A/B Testing, from scratch
  • Andrea on A/B Testing, from scratch
  • Andrea on A/B Testing, from scratch

Twitter

Proudly powered by WordPress | Theme: sosimple by Fernando Villamor Jr..
✖

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