Postsbest practices (27) object oriented design (7) testing (7) models (4) performance (4) views (4) gems (3) case studies (2) cloudflare (1) controllers (1) metaprogramming (1) migrations (1)Testing gems and plugins best practices in ruby on railsLack of a dedicated test suite in Rails plugins and gems undermines their reliability and limits their integration into larger applications.Best Practices Testing GemsRoland Lopez Roland Lopez06/05/2024 · 3 min readTesting best practices: behavior over implementation details'Tell, Don't Ask': shigy from querying objects about their state to commanding them what to do. Keep tests clean and focused on behavior rather than implementation details.Best Practices TestingRoland Lopez Roland Lopez06/05/2024 · 1 min readReal 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 read