I always wonder—how do experienced Python developers write so much code and still remember what each part does? Every time I try to study someone else's code, I get overwhelmed, confused, and lose all motivation to learn Python.
Recently, I've been learning Tkinter. Everything seemed easy and understandable until I reached the class-based approach. (I do have all the basic knowledge about classes.) Now I'm hella confused.
#🔒 experienced developers.... please guide me
16 messages · Page 1 of 1 (latest)
@wispy adder
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
i get confused at my own code lol
lol that's relatable
comments
print("this does something") # this doesn't
# nor does this
also classes and functions can have docstrings, which describe what they do
you should also name your variables and functions/class well, in order that they describe themselves
furthermore, you can use typehints to describe how a function should be used
I would remember some part of it
It is mostly in the way of thinking how I would have design it
Like:
I probably have done this, and I probably never fixed it, so my code probably do this
It doesn't mean I am always correct on what I guess so check the code is probably better
And sometimes I would still confuse at my code
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.