Written by
Malek Atwiz
on
on
Clean Code
List of some notes taken from Clean Code book by Robert C. Martin
Meaningful Names:
- Use intention-revealing names
- Avoid disinformation
- Make meaningful distinction
- Use pronounceable names
- Use searchable names
- Avoid encodings
- Avoid mental mapping
- Use nouns for class names
- Use verbs for method names
- Pick one word per concept
- Don’t pun
- Use solution domain names first
- Use problem domain names second
- Add meaningful context
- Don’t add gratuitous context