Marketplace

Browse and adopt engineering standards, rules, and configurations. Fork to customize for your organization.

High
8 rules

Use async/await over callbacks and .then()

javascript

Prefer async/await for asynchronous code: - More readable than callbacks or .then() chains - Easier error handling with try/catch - Works naturally...

High in 8 rulesets

Use const and let, never var

javascript

Always use `const` by default, `let` when reassignment is needed: - `const`: Block-scoped, cannot be reassigned - `let`: Block-scoped, can be reass...

High in 8 rulesets

Avoid N+1 queries

rails

Use eager loading to prevent N+1 queries: - `includes`: For associations you'll access - `preload`: Force separate queries (useful for complex cond...

High in 2 rulesets

Fat models, skinny controllers

rails

Keep controllers thin - they should only: - Authenticate and authorize - Parse params and set instance variables - Call model/service methods - Ren...

High in 3 rulesets

Use background jobs for slow operations

rails

Move slow operations to background jobs: - Email sending - File processing - External API calls - Report generation - Data imports/exports Use Sol...

High in 3 rulesets

Use functional components with hooks

react

Always use functional components with hooks, not class components: - Simpler, less boilerplate - Better TypeScript support - Easier to test - Hooks...

High in 8 rulesets

Prefer composition over inheritance

ruby

In Ruby, favor composition and modules over deep inheritance hierarchies: - Use modules for shared behavior (concerns in Rails) - Inject dependenci...

High in 4 rulesets

Test behavior, not implementation

testing

Write tests that verify behavior, not internal implementation: - Test public interfaces, not private methods - Focus on inputs and outputs - Tests ...

High in 57 rulesets