Code Smell 188 - Redundant Parameter Names
TL;DR: Don't repeat your parameters' names. Names should be contextual.
Problems
Duplication
Readability
Solutions
Remove the repeated part from the name
Context
When using names, we often miss that words are contextual and need to be read as ...
maximilianocontieri.com1 min read
Syed Jafer K
Developer
Nice one. I feel it will also apply to instance variables,
class Employee: def __init__(self): self.employee_first_name = ''to this,
class Employee: def __init__(self): self.first_name = ''