Make money doing the work you believe in

6 simple guidelines for better naming:

1. Classes: use nouns

❌ class MapPaymentMethod

✅ class PaymentMethodMapper

2. Functions: use verbs

❌ emailSend()

✅ sendEmail()

3. Booleans: use adjectives

❌ active

✅ isActive

4. Collections: use plural nouns

❌ user

✅ users

5. Methods with side effects: be explicit

❌ process()

✅ processPaymentAndSave()

6. Async methods: end with Async

❌ loadData()

✅ loadDataAsync()

Small change → Big impact.

May 5
at
12:09 PM
Relevant people

Log in or sign up

Join the most interesting and insightful discussions.