by RegEx · 13y ago · 0 comments
# gets the xml
def get_xml():
It took comments like this to help me realize just how silly the whole thing was. Now I write as much self-documenting code as I can, but comment as needed.Comment should be "why I did this", and code should be "how I did this", some people just write in "what did I do" and walk away thought they have comment
Code took from a project I'm working with:
#End of packagethe problem starts when the 'why' doesn't match the 'how'...which one is "correct"?