Where can I find tips for naming variables, organizing code, etc.?
For example, I have a class and it has several attributes, some depend on that another attribute has been declared before, but others are independent, how could I order which one to put first and then? Example:
class Button(object):
defs __init__(self):
self.image = pygame.image.load()
self.rect = self.image.get_rect()
self.draw = True
self.moved = False
self.text = font.render(text, True, color)
...
I've never read anything that says how to sort the attributes alphabetically, perhaps? And another thing I tried to use all the names in English but I ended up bumping into some that I could not translate for example tricks, trick ...
Where can I find things like this?