Learn
That
Stack
Ace your next interview
Tech Stacks
Cheatsheets
Interview Questions
Sign in
Tech Stacks
Cheatsheets
Interview Questions
Sign in
Home
Interview Questions
Ruby
What are Ruby's naming conventions?
Back to Ruby
All Backend Development
Previous
Next
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!)
Back to Ruby
Previous Question
Next Question
Explanation
AI Powered
Generating explanation with Claude AI...
This will use 10 credits
credits used
Close
Close