Forward from: Ravshan’s blog
3 simple guidelines for better naming:
1. Classes: use nouns
❌ class MapPaymentMethod
✅ class PaymentMethodMapper
2. Functions and methods: use verbs
❌ emailSend()
✅ sendEmail()
3. Booleans: use adjectives
❌ active
✅ isActive
Small change → Big impact.
1. Classes: use nouns
❌ class MapPaymentMethod
✅ class PaymentMethodMapper
2. Functions and methods: use verbs
❌ emailSend()
✅ sendEmail()
3. Booleans: use adjectives
❌ active
✅ isActive
Small change → Big impact.