- Use
UTF-8for encoding - Use two spaces (soft tabs) for identation
- Use
snake_casefor variables and methods - Use
PascalCasefor classes and modules - Use
UPPER_PASCAL_CASEfor constants - Never use
camelCase - Use
?at the end of the name of methods that returns boolean values, e.g.:active?,valid? - Never rescue
Exceptionwithout rethrowing, if so, preferStandardError. That's becauseExceptionis the root of allevilexceptions, such asSyntaxError - Omit parentheses on method calls when the method doesn't take arguments
This repository was archived by the owner on Mar 11, 2022. It is now read-only.