Alexandru Emil Lupu
  • About
  • Portfolio
  • Clients
  • Work
  • Statistics
  • Blog
  • Contact
  • About
  • Portfolio
  • Clients
  • Work
  • Statistics
  • Blog
  • Contact

Blog

Articles categorized as Ruby on Rails

Read More
Instrumenting Trailblazer Cells::Rails

In a recent project i am involved in, i had to perform some optimization regarding the overall application response time, and it happens this application is using Trailblazer...

Read More
Exposing serialised fields – meta programming way
class SomeClass < ActiveRecord::Base
  belongs_to :user

  def self.serialize(attr_name, class_name = Object, exposed_fields = [])
    super(attr_name, class_name)
   ...
Read More
Horizontal scaling using Db Charmer

Horizontal scaling using Db Charmer

I was looking for a way to scale horizontally a Ruby on Rails application, and i have tried several methods to scale it. A method would be using a MySQL cluster, but...

Read More
How to reduce code duplication

By using Ruby or Pyton you might know about the fact that both are dynamically typed, as a result a developer can choose some of the variants available to remove some of...

Read More
How to implement Enum Fields in your Ruby on Rails models

If you reached this page, it might be because you have searched how the hell you could create an enum field in Ruby On Rails.

Short answer: Ruby On Rails prior to version...