4 odpowiedzi
+ 2
This is one of the techniques I use to practice
1) find a piece of code and try to understand the logic and the flow of information
2) comment out the portion of the code you are working on, then attempt to reproduce it from memory (make a backup!!)
3) make comments on the portions of the code you made errors in, then comment it out.
4) repeat step 2
+ 4
That's impossible. Mistakes belong to the process. By correcting them, you improve.
Go on learning, and write a lot of code. Over time you will get better.
+ 4
The methodology of learning is learning from your mistakes, since we all started coding we all have committed mistakes, and with the pass of the time we have corrected them and start committing less errors.
In other words: Code, fail, code again
Good luck friend!!
+ 3
Most important: REPAIR your mistakes!
Different to a violin performer, you haven't failed as soon as you make a mistake - because you're not on a stage, programming live.
Scrutinize your programs, test every eventuality until it finally runs perfectly. No one will see how long you needed, just the perfect result.
And in time, the whole procedure becomes quicker.