Search posts, tags, users, and pages
Maxi Contieri
Software Engineer
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 ...
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 = ''
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 = ''