1
Where I could find tips for naming variables, organizing code, etc.?
For example, I have a class and it has several attributes, some depend on whether 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)
...
Have I never read anything that says attributes, alphabetical order maybe? 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 vazas, truco...
Where I can find things like that?