A collection of conventions, best practices, and design patterns favoured by the BiggerPockets Engineering team
© 2024. MIT License.
Don’t use safe navigation operator unless nil is expected
nil
Avoid ‘God’ Objects
Prefer the Colorado Comma
Don’t lock gems
Prefer Hash#fetch over Hash#[]
Prefer instance methods over class methods
Prefer shortened namespaces
Prefer SimpleDelegator over method_missing for wrapper classes
Prefer Faraday as default HTTP client
Describe features at a high level rather than querying the user model directly