Une liste des mauvaises pratiques les courantes rencontrées dans des applications Rails classiques.
Voici le sommaire :
- Using Query Methods Outside Models
- Using Logic Inside The Views
- Using Meaningless Names On Variables Or Methods
- Using Unless Or Negative Expressions On Conditionals
- Not Using Tell, Don’t Ask
- Using Complex Conditionals
- Using “self.” On Models Instace Methods When There’s No Need To
- Using Conditionals And Returning The Condition
- Using Inline CSS In Your Views
- Using JavaScript Inside Your Views
- Passing Method Call As An Argument When Calling A Method
- Not Isolating Rake Tasks Using Classes
- Not Following Sandi Metz’ Rules
Commentaires
Vous devez
vous inscrire
ou
vous connecter
pour poster un commentaire