forked from consuldemocracy/consuldemocracy
-
Notifications
You must be signed in to change notification settings - Fork 15
Coding Guides
Alberto Calderón Queimadelos edited this page Apr 5, 2018
·
5 revisions
Naming: https://m.signalvnoise.com/hunting-for-great-names-in-programming-16f624c8fc03
Tests:
- Do not use I18n.t in specs, always use english text directly
In general, follow existing conventions.. that means if there's something similar to what you're doing, follow the same patterns and styles. That doesn't mean copy&paste in most of the cases, but for sure its better than writing from scratch!
-
Start by writing a test that reproduces the problem. It will help you debug it faster, and we'll have coverage for that scenario after the fix
-
Write code until test passes and feel überproductive :)