Programming with writing, writing code just in code word

Source: Internet
Author: User

Programming with writing, writing code just in code word author: Phodal Huang Published: 2016-06-30 21:51 read: 12,842 recommendations: 43 original link [favorites]

See an article "We are typists first, programmers Second", the date is 2008, good early an article. When it's time to re-enter the field of programming as a newcomer, it might be influenced by the "re-start", or just rethinking how we should actually program.

Writing code is only equivalent to writing

Programming this thing is not really difficult at all, when we are just using a tool to create something, such as when we are holding a soldering iron, chips, wires and so on to solder a circuit board, we learn how to use these tools. While our boards can achieve the same functionality at the end of the day, we can see where the gap is at a glance.

To get a better analogy, like cooking for a good cook and a layman like me, give us the same ingredients, a kitchen, maybe a tempting meal after a while, a pig to feed-even if I follow the steps of the chef, it might look like the same, But a meal will eat out the gap.

We also do not good food, but also bad welding circuit, but also write bad code, to a large extent not because we are more stupid than others, but only others than we do more. Sometimes a chance to encounter the study or the emergence of a bug, for different people's programming life will have a difference (PS: It seems that the butterfly effect). We're just using tools, good and bad, and in some way determine the quality we write.

Writing is so, give us the same paper and pen (PS: Reduce irrelevant factors), different people write out the difference between the word is very large, well-written compared to the writing is not good, just because more practice. And programming is not the same thing, the last writing code is as simple as writing.

When we first started writing, we needed to understand the stroke order and font structure of a word, which is equivalent to the syntax and its structure. After familiarity, writing code is just as simple as writing.

Learning to program is just learning to sentence

  计算机语言同人类语言一样, sometimes we may feel that some computer language is very much out of our world, but they are the real computer language.

Computer languages imitate human languages, from if to others, and these computer languages are simpler than human languages. Therefore, when we start to learn the language, we are just learning to make a sentence, in a word to summarize the meaning of a code, or can be called functions, methods (method).

So we started to make sentences, so that we could put together a whole article at the end.

Programming is in writing

Code such as poetry, or code such as prose. In general, this is relative to English, not for Chinese. if the code written in a so-called Chinese language is not like a Chinese poem, then it is not a real Chinese language.

The influence of those so-called writing logic on programming

    • The early code is in line number, the article is the word count
    • The code is written for people to read, the article is also for people to see
    • Programming, like writing, starts with ideas.
    • The code can be piled up like an article (PS: As in this article)
    • Writing good articles is not easy, need to be repeated, write good code is not so
    • Constructs a class, is like constructs a character's character characteristic, a little bit more does not have, less not whole
    • Code generation, and generate poems like, no emotion, too mechanized
    • 。。。

However, the difference between a good writer and a general writing person is always great, and the degree of thinking about the same problem is different. The process of writing from one author to the next is a continuous process of accumulation. And from a normal programmer to a good programmer is the same, need a continuous programming process.

When we start to really go to programming, we will also struggle with the " Monk push the Moon next door " or " Monk knocking at the door," when we become more and more skilled in the easy to decide which one to use. Such "scrutiny", both in writing and in programming, is a similar process.

The
process of writing is really a journey of discovery, and it runs through people's lives.
Programming just in Code word
The real idea is in your head, not on paper or in the IDE.

Programming with writing, writing code just in code word

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.