About a mentality problem when writing code

1, we must first think, to think, to ponder, in his head have a rough idea of ​​beginning again, not a problem encountered blind open dry.

2, when writing code must be patient, especially when done with respect to a complex problem is the face of the error must have patience, patience to change.

When 3, it can not find errors, logical errors occur, calm down, picked up a pen step by step program to run from the beginning of the simulation, there is always rewarding.

4, when you think that logic is not wrong, but still not run out, and then you run the simulation again, you can put your program into small pieces to be checked.

5, if these are not does not work, you can ask someone for help, but we must own and start over again after the correction, enhance memory.

 

 

 

 

Guess you like

Origin www.cnblogs.com/ranyang/p/11901790.html