Learn Where The Usage Of Memoization In Ruby On Rails Is Limited

Memoization is a wonderful concept in programming world. It helps in writing clean code which execute faster. Example: def slow_method @result ||= perform_slow_method end In the above code, slow_method will cache perform_slow_method in @resultvariable, therefore perform_slow_method will execute only once. So, if memoization is wonderful then why not to use it always? that’s the question I am going to answer … Continue reading Learn Where The Usage Of Memoization In Ruby On Rails Is Limited

Custom event tracking with ActiveSupport::Notifications and Audited

Track Your Custom Events With Audited & ActiveSupport::Notifications When it comes to logging or tracking changes in Ruby on Rails models, We typically tend to use either paper_trail or audited gems as these are most popular and widely used gems in Ruby on Rails applications for tracking changes in Rails models, but what if you … Continue reading Custom event tracking with ActiveSupport::Notifications and Audited

The Subtle Difference Between ‘Elixir’ & ‘Ruby’

Content posted here with the permission of the author PJ Hagerty, who is Developer, writer, speaker, musician, and Developer Advocate. He is known to travel the world speaking about programming and the way people think and interact. Programming languages tend to have trends. Once upon a time, it was COBOL that ruled the world. Then … Continue reading The Subtle Difference Between ‘Elixir’ & ‘Ruby’