What are Ruby's naming conventions?

Beginner

Answer

  • Classes/Modules: CamelCase (UserAccount)
  • Methods/Variables: snake_case (user_name)
  • Constants: SCREAMING_SNAKE_CASE (MAX_USERS)
  • Predicates: end with ? (empty?)
  • Dangerous methods: end with ! (save!)