Performance: Convention over configuration principle
MEDIUM IMPACT
This principle affects initial page load speed and developer efficiency by reducing custom setup and unnecessary code.
class User < ApplicationRecord
has_many :posts
endclass User < ApplicationRecord self.table_name = 'users_table' has_many :posts, foreign_key: 'user_id' end
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Explicit configuration for naming | No direct DOM impact | 0 | 0 | [OK] |
| Using Rails conventions for naming | No direct DOM impact | 0 | 0 | [OK] Good |