Sometimes, code we read makes us to remember context. Consider the following code (it sends an invite email to a user):
Lines 2-8 (see above ↑) deal with the case of existing user, and the rest deal with the case of new user.
When reading lines 3-5 you have to remember that you’re dealing with an existing user, same with lines 12-22, only there you deal with a new user. After all, both existing user and new user cases use same variable name:
But there’s a better way than keeping it in your head. Keeping it in the code:
Reading lines 3-5 (see above ↑), you clearly see that you’re dealing with an existing user. And same for the lines dealing with a new user.