---
title: Use SCREAMING_SNAKE_CASE for constants
impact: LOW
impactDescription: Clearly distinguish constants from other identifiers.
tags: ruby, naming, constants, readability
---

## Use SCREAMING_SNAKE_CASE for constants

Clearly distinguish constants from other identifiers. Use `SCREAMING_SNAKE_CASE` for constants that do not refer to classes or modules.

**Incorrect:**

```ruby
DefaultTimeout = 30
Max_Retry_Count = 5
```

**Correct:**

```ruby
DEFAULT_TIMEOUT = 30
MAX_RETRY_COUNT = 5
```

**Tools:** RuboCop (`Naming/ConstantName`)
