What do I do if I can't write my own code?

Source: Internet
Author: User

In the homework and the practice, oneself cannot write the code, this is a problem which often appears in the study,

So how do you solve the problem?

1: First analysis of the realization of the idea
Get the homework, according to the function to be realized, first analysis to realize the train of thought.

If you do not know how to do it, it is confused, it is best to see how other people have achieved, or to discuss with teachers or students, or in the community of private schools online to communicate with others.

The key is to find a solution to the problem, to clarify the way to achieve

If you can come up with a few steps, record these steps and repeat the steps above.

2: The realization of the idea of the edge analysis of the record down
In the analysis of the realization of the time, while analysis, while writing it, use Chinese to write, write more detailed points.

If written in a programming tool, write a comment directly, such as:
What's the first step?
1.1 What to do
1.2 What to do
//....
What's the second step?
2.1 What to do
2.2 What to do
//....
//....... Analogy

Encounter write not go to place, first see is no thought or the front of the idea did not think clearly,
If there is no train of thought, see the first article processing.
If the previous thinking is not clear, then return to rethink, must consider understand.
This is actually an additional benefit of this approach, which is to force you to think and to think carefully.

3: Write implementation code
If the idea is sorted out clearly, the steps to realize the idea are also sorted out, this time to write code,

is almost a process of translation, it is easy to achieve.
If only a few step-by-step thinking clearly, there is no relationship, think clearly how much, write how much code, slowly.


4: A way of thinking but can't write code solution
This kind of situation often appears in the beginner, mainly is the code writes less.
Suggestions to see how others write, accumulate code writing, this time will not write does not matter,
See once, next time will be able to write, add up, write more, oneself can realize also much.

5: The method does not necessarily copy, can be adapted to use

For example, edge analysis, writing ideas and then write code is also possible, as long as it can help you think, can be.

6: Cannot write the code
Most people do not write the code, are not completely written out, and is not a point to write out, please try to put the will, can write the first write out, more in accordance with the method introduced in this article to practice, quantitative to qualitative change, and soon can write their own implementation code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.