+ 1
Workflow when coding
I am a beginner in the programming world, and is about to finish my course in python 3. There are times where I try to make a simple program (basically just formatting strings into an output) but I often end up confused since my priority seems to wander from a line of code to another line of code. So what's your advice? What are the things I should consider first before actually do some coding?
2 odpowiedzi
+ 4
Im not an expert, but i think than you have to try to think first how design the code before coding. Think about the problem, subdivide it in multiple problems which can be indipendents between them. Try to make the question "Can i make this part indipendents by rest of code?". Indipendence help to build modular codes and will help you to concentrate on a single sub-problem to time.
0
I see. I do have the habit of not designing first but rushed it as though it was a race.
Also, it does seem to make it easier when we think more about the problem and subdivide each part as independent as possible. Thank you!!