- You see a variable with more than one responsability. This variable should be replaced with replaced with multiple variables, one for each responsability.
- The code is more easy to read and it's not confusing for the reader.
- Replace the variable with multiple variables.
- Change the name of the variable at its declaration
- If it's possible, declare a new variable as immutable.
- Test
Before
