A common programming mistake: Forgetting to start with a verb


A common programming mistake: Forgetting to start with a verb.

Here are 4 things that should typically start with a verb:

1. Function

🚫 userGet
✅ getUser

2. Ticket title

🚫 Password reset
✅ Implement password reset

3. Pull Request

🚫 Login change
✅ Refactor login

4. Commit message

🚫 Casing
✅ Fix file casing
A function name describes what it does.

A ticket name describes what needs to be done.

A PR title and a commit message describe a change.

These are actions. So start with a verb.

View original on X