ruby

Drawbacks of Active Record

Active Record is a pattern used in software engineering that represents the database in an object-oriented manner. In other words, it’s a way to use objects to interact with a database instead of writing SQL queries directly. In Ruby on Rails, Active Record is the default ORM (Object-Relational Mapping) that allows developers to define database…

ruby

Writing Monkey Patches in Ruby

Introduction: Ruby is known for its flexibility and openness, allowing developers to customize and extend the language’s core functionality. One powerful way to do this is by using monkey patches. Monkey patching enables you to modify or add new behavior to existing Ruby classes or modules without changing their original source code. In this blog,…