Anderson Cardoso Martins·Jan 22Enforcing Contracts in Rails: Mastering the Liskov Substitution PrincipleMaster the LSP using Ruby 3.2 Data objects and Template Method to create robust, self-validating and observable contracts in Rails
Anderson Cardoso Martins·Jan 14Beyond If-Else: Writing Extensible Rails Code with the Open/Closed PrincipleMaster the Open/Closed Principle in Rails: Use Polymorphism and Duck Typing to add new features without modifying your existing code
Anderson Cardoso Martins·Jan 7Decoupling Business Logic in Ruby on Rails: A Practical Guide to SRP and Service ObjectsLearn how to decouple business logic from ActiveRecord models using Service Objects and RSpec to build scalable and testable Rails apps.
Anderson Cardoso Martins·Jun 23, 2024How to Apply SOLID Principles in Ruby on Rails DevelopmentEfficient and high-quality software development requires solid and well-defined practices. One of the most important sets of principles in…
Anderson Cardoso Martins·Jun 16, 2024How to Create a Ruby on Rails Project with Unit Tests Using RSpecIntroduction
Anderson Cardoso Martins·Jun 9, 2024Creating a Login and Password System in a Ruby on Rails Application with Devise and ReactImplementing an authentication system is a fundamental task in web development. In this post, I’ll guide you through the process of…
Anderson Cardoso Martins·Jun 6, 2024Friendly_id Gem for Ruby on Rails: How to create Human-Friendly URLs?In the world of web development, URLs play a significant role in user experience and SEO. A clean, human-readable URL not only looks better…
Anderson Cardoso Martins·May 27, 2024How Callbacks Work in Ruby on Rails ModelsCallbacks in Ruby on Rails models are special methods that allow you to execute code at specific moments in an object’s lifecycle. They are…A response icon2A response icon2