Open maveius opened 4 years ago
This is provided to you for free by someone simply doing it in their free time. He doesn't need to do anything.
Ok. If someone does something in their free time that means that can use not clarify the naming convention and can use "dirty code"? What if someone needs to use it? Or debug?
that means that can use not clarify the naming convention and can use "dirty code"?
Yes. They have no obligation to do anything and can do whatever they want in their code.
Let's strart: In
wmi.py
line 1311 i sawobj = GetObject(moniker)
obj
?object
, but this is very bad way to name classes and variables byobject
keyword, because we don't know what it is actually. Have you ever read "Unklebob" Robert C. Martin "Clean code"?shortcut
name instead offull varaible name
? This was described too in "Clean Code".