Best PracticesReal consequences of excessive mocking testing in railsFalse Positive, Integration Blind Spots, Integration Blind Spots, Interface Misuse, Refactoring Barriers...Best Practices TestingRoland Lopez Roland Lopez06/05/2024 · 2 min readTesting with fixtures best practices in railsOne of the biggest issues with fixtures is their brittleness.Best Practices TestingRoland Lopez Roland Lopez06/05/2024 · 2 min readBest Practices for Managing Gems in Your Rails ApplicationGemfile best practices: Screening Gems, the TAM Method, Gem modifications, Cleaning and Maintaining your GemfileBest Practices GemsRoland Lopez Roland Lopez05/05/2024 · 3 min readMaking Iterative Tests Maintainable with MetaprogrammingScalable and DRY approach to iterative model testing in Rails. Don't loop through arrays to create test cases.Best Practices Testing Models MetaprogrammingRoland Lopez Roland Lopez04/05/2024 · 2 min read5 Best Practices for Handling Controllers in Ruby on Rails5 approaches for code in controllers. We don't reinvent the wheel, we love our gems, unlike the JS community.Best Practices ControllersRoland Lopez Roland Lopez04/05/2024 · 2 min readBest Practices: Refactoring spaghetti sql in rails.Typical mishandling of Active Record when a Senior Dev learns Rails: not utilizing association, forcing SQL management in the controller.Best Practices ModelsRoland Lopez Roland Lopez02/05/2024 · 2 min readRefactoring fat models in Rails: delegate extract and composeReduce complexity in Rails models with the method delegation, extraction, and composition.Best Practices ModelsRoland Lopez Roland Lopez02/05/2024 · 2 min readRails MVC Violation: Less code in views, more clarity in codeViews are for presenting data. Not preparing it. Logic and data manipulation in views leads to complexity and code duplication.Best Practices ViewsRoland Lopez Roland Lopez02/05/2024 · 2 min readOOD Principles and Rails: The Law of DemeterIn Rails, it's tempting to chain method calls due to ActiveRecord associations. But it just creates a maintenance trap.Best Practices ModelsRoland Lopez Roland Lopez01/05/2024 · 1 min read