Is it normal not to understand every line of code in a Flask tutorial?
Asked by
LUNCH_is_packed
I'm a computer science student building my first Python web app and I'm following Flask's official tutorial to create a blog. I understand the overall structure and what the application is supposed to do, but I don't understand every line, keyword, or imported module yet. Is that normal when learning, or should I stop and study each detail before continuing?
Answers
You donโt need to understand every implementation detail of every imported package. Software is built in layers of abstraction, and even experienced developers rely on libraries they havenโt studied internally. As a student, try to understand the Python language, Flask concepts, and the overall flow of the application. Donโt simply accept generated code without checking it, thoughโtools that explain or generate code can help, but they shouldnโt replace your own learning.
Reply to this answer
Yes, thatโs completely normal, especially when youโre going through an unfamiliar codebase for the first time. As you gain experience, more patterns will become intuitive, but youโll always encounter unfamiliar libraries, syntax, and design choices. The important part is to keep track of the pieces you donโt understand and return to them when you have time.
Reply to this answer
Itโs fine to continue while some details are unclear, but donโt become permanently comfortable with gaps that matter. If youโre using Python syntax, standard-library features, or Flask mechanisms that youโll need to maintain and debug, make a note of them and learn them progressively. Youโre not expected to understand everything instantly; the goal is to become able to understand it when the situation requires it.
Reply to this answer
A good way to learn is to get the tutorial working, then deliberately change things and observe what breaks. Modify the routes, templates, inputs, or output and form a prediction before running the program. When your prediction is wrong, investigate why. That process builds a much stronger understanding than just reading every line passively.
Reply to this answer
Thereโs a difference between learning code you only partly understand and shipping code you canโt explain or troubleshoot. During exploration, itโs normal to have unanswered questions. Before other people depend on the application, make sure you understand the important behavior, security implications, and failure cases well enough to maintain it.
Reply to this answer
Add your answer
Answers are reviewed before publication.
radarEcho_6: Code-explanation tools can be useful for breaking down unfamiliar sections, but verify their explanations just as carefully as you would verify the code itself. If an explanation seems inconsistent or overly magical, investigate it using the official documentation or knowledgeable people.