Programming path (a very old article)

Source: Internet
Author: User

Directory

Preface
Article 1 quiet Kong Yu
Article 2 ancient masters
Article 3 design
Article 4 Encoding
Article 5 Maintenance
Article 6 Management
Article 7 knowledge in the company
Article 8 hardware and software
Conclusion

 

Article 1 quiet Kong Yu

The programmer said:

"When you have the ability to take this crystal stone from my hands, it's time for you to become a teacher ."

1.1

In the silence of Kong Yu, a magical material was formed and born. It immediately quieted, staying alone, without any movement, but in the constant movement. It is allProgramI don't know its name, so I will call it a programming path.

If this is perfect, those operating systems are perfect. If the operating system is perfect, the compiling program is perfect. If the Compiling Program is perfect, then the application is perfect. User satisfaction-Harmony came into being.

The way of programming goes by and goes back in the morning.

1.2

This generates machine languages, while machine languages generate assembly languages,

Assembly languages generate compilation programs, and now there are tens of thousands of languages.

Each language has its own humble use. Each language expresses the yin and yang of the software. Each language has a place in this path.

However, do not write programs in COBOL as much as possible.

1.3

At the beginning of the universe, the Tao produced space and time. Space and time are the yin and yang of programming.

Programmers who cannot comprehend this path always use up the time and space of the program they want to write. programmers who understand this path always have enough time and space to achieve their goals.

Is there any other situation?

1.4

The Savvy programmer heard about this and followed it; the mediocre programmer heard about it and looked for it; the stupid programmer heard about it, but laughed at it.

If it weren't for ridicule, the Tao would no longer exist.

The highest voice is the most difficult to hear. Moving forward is also a kind of regression. It becomes late. Even a perfect program still has potential risks.

It is hard to understand.

Article 2 ancient masters

The programmer said:

"If you do not program for three days, life will become meaningless ."

2.1

Older programmers are mysterious and profound. We can't figure out what they think. All we can do is describe what they look like.

They are sober, just like a fox swimming over the water; they are vigilant, just like a general on the battlefield; they are friendly, it is like a hostess who serves guests. They are simple, just like uncarved wood. They are still hard to figure, like dark pools in the dark caves.

Who can tell their secrets?

The answer only exists in the Tao.

2.2

Turing, the computer science giant, once dreamed that he was a machine. When he woke up, he was amazed:

"I don't know-do I dream of Turing as a machine or a machine that dreams of Turing ?"

2.3

A programmer from a big computer company attended a software seminar. When he came back, he reported to the Manager: "What are the programmers who work for other companies? They behave poorly, regardless of their own instruments. Their hair was long and messy, and their clothes were wrinkled and old. They broke into our customer group and made rude noises during my speech ."

The manager said, "I shouldn't have asked you to attend this meeting. Those programmers live outside the material world. They think that life is absurd and an unexpected coincidence. They come and go freely. They only live for their programs and are carefree. Why do we use social customs to constrain them?

They live in this way ."

2.4

An Auditorium man asked the master, "a programmer never conceived, compiled, or tested his program. However, everyone who knows him thinks that he is the best programmer in the world. Why ?"

The master replied, "The man has mastered this. He doesn't have to think about it in advance. When the system crashes, he doesn't feel unhappy, but accepts the whole fact calmly. He also excludes the need to write the program instruction document, and does not care whether someone looks at his code. He does not need to perform tests either. Every program is perfect. Quiet and elegant, and the use of the program is obvious.

Indeed, he has entered the magical realm of Tao ."

Article 3 design

The programmer said:

"It is too late to modify the design scheme when the program is tested ."

3.1

A person once went to a computer exhibition. every day when he entered the exhibition hall, he said to the guard:

"I am a thief, and I am famous for my ability to steal. Warn you in advance that this presentation is also in danger ."

The comment left the guard restless because there were millions of dollars worth of computer equipment inside, so he kept a close eye on the man. However, this person just strollers from one Booth to another, with a slight hang in his mouth.

When the man went out, the guard pulled him aside and searched his clothes, but nothing was found.

The next day, this person came again and shouted out to the guard: "I returned to the door yesterday, but today the gains will be even greater ." As a result, the guard stared at him more closely, but still got nothing.

On the last day of the presentation, the guard could no longer restrain his curiosity. "Mr. thieves," said the guard. "I am confused by you. I really cannot understand it. Please tell me what you are stealing ?"

This person smiled. "I am stealing ideas ." He said.

3.2

A programmer once liked to write unstructured programming. A beginner attempted to imitate him and began to write unstructured programs. When the apprentice asked the master to review his progress, the master criticized him for his practice. He said: "It is not suitable for beginners to be a programmer. Before going beyond the structure, you must first understand ."

3.3

A programmer was once assigned to work under the Army Minister of IBM. The military data minister asked programmers: "which is easier to design a financial software package and an operating system ?"

"Operating system ." The programmer replied.

The Minister of military equipment immediately experienced an untrustworthy exclamation. "A financial software package is a little dumb with a complicated operating system ." He said.

"That's not the case," said the programmer. "When designing a financial software package, programmers act as intermediaries between people with different ideas: how the software must be operated, what is the form of its report, how it must be consistent with the tax law, and so on, an operating system is not restricted by its appearance. When designing an operating system, programmers only need to find the simplest harmony between machine and human thinking. This is why the operating system is easier to Design ."

The Military Minister nodded and smiled. "The same is true. But which of the following is easier to detect and correct errors ?"

The programmer did not answer.

3.4

A manager goes to the programming master and gives him a description of the requirements for a new application. The manager asked the programmer, "How long will it take for me to design this system if I assign five programmers to you ?"

"It will take a year ." The master answered immediately.

"But we need this system right away, and even require faster! How long does it take for me to allocate ten programmers to you ?"

The master frowned. "That would take two years ."

"What if I allocate one hundred programmers to you ?"

The master shrugged his shoulders and said, "This design will never be completed ." He said

Article 4 Encoding

The programmer said:

"A Perfect program is its own paradise, and a poorly written program is its own hell ."

4.1

A program should be lightweight and flexible, and its subprograms are connected like a string of pearls. Its spirit and intention should always run through. In a program, neither too much nor too little content should be involved. There should be neither unnecessary loop structures nor redundant variables; there should be no structural or overly rigid structures.

A program should be run in a whole way no matter how complicated it is. Procedures should be guided by their internal logic, rather than the external form.

If a program fails to meet these requirements, it will be in a disordered and ambiguous state. The only method is to rewrite this program.

4.2

A beginner asked the master: "I have a program, but it doesn't work. I have always followed the programming rules, but the results are confused. What is the reason ?"

The master replied, "You are puzzled because you have not understood it. Only a fool can expect to see rational actions from humans. How can you expect a machine made by humans? Computers imitate the theory of determination, and only the Tao is perfect.

The rules used by programming are just a flash of cake, and only the Tao is permanent. Therefore, before you are inspired by the Tao, you must meditate on the TAO ."

"But how can I know that I have been inspired ?" Questions for beginners.

"When your program runs correctly ." The master replied.

4.3

A master is explaining the true meaning to one of his beginners. "This is reflected in all the software-no matter how insignificant it looks ." Said the master.

"Is this in the palm calculator ?" Questions for beginners.

"Yes ."

"Is this in video games ?" Continue to ask questions for beginners.

"This is even reflected in electronic games ." Said the master.

"Is this also reflected in the personal computer's DOS system ?"

The master coughed and moved a little. "Today's class is here ." He said.

4.4

A programmer under a project manager is writing software. His fingers dance on the keyboard, and there is no error message during the compilation process of the program. The program runs like a storm of wind.

"Great !" The manager shouted happily, "your skills are perfect ."

"Skill ?" As the programmer said, he turned around from his terminal. "What I followed is the road-all the skills are far from what I can do! When I started programming, what I saw was a mess of problems. Three years later, I will never see this mess. Instead, I use a variety of subprograms. But now I can't see anything. My whole body and body exist in an invisible void, and my consciousness is empty.

With my instinct, my spirit can work freely without principle plans. All in all, I wrote my own program. It is true that sometimes there are some difficulties. As I saw the difficulties coming to me, I slowed down and watched them silently. Then I changed the encoding line, and those problems were eliminated. Then I compile the program. I sat quietly, making my work a pleasant mood all over my body. I close my eyes, rest for a moment, and then exit the system ."

The manager said, "I hope all my programmers will be so smart !"

Article 5 Maintenance

The programmer said:

"Even if a program has only three presidents, it will have to be maintained one day ."

5.1

A record does not need lubricating oil for the hanging chain of doors that are frequently opened.

A Fast River will not become dirty.

Neither sound nor idea can be spread in a vacuum.

The software will decay if it is not used.

The world is amazing.

5.2

A programmer is writing his program, and the manager asks him how long it will take to complete.

"It will be done tomorrow ." The programmer immediately replied.

"I think this is impractical," said the manager. "To tell the truth, how long does it take ?"

The programmer thought for a while. "I want to add some new features, which takes at least two weeks ." He finally said.

"Even that expectation is too high," the manager insisted. "As long as you tell me when the program is compiled, I will be satisfied ."

The programmer agreed.

A few years later, the manager is about to retire. On his way to the retirement luncheon. He found the sequencer asleep in front of his terminal. I spent the whole night writing that program.

5.3

A beginner programmer is assigned to compile a simple financial software package at a time. The beginner has been working for many days. But when his master checked the program, he found that there was a screen editor, a common chart program, and an artificial intelligence interface, but there was nothing Financial.

When asked, the beginner seemed angry. "Don't be patient like this," he said. "I just want to add financial materials ."

5.4

Is it difficult for a good farmer to miss a crop he planted?

Is it difficult for a good teacher to give up even the worst student?

Is it hard to say which child will be allowed to starve by a good father?

Is it hard to say that a good programmer will not want to maintain his program?

Article 6 Management

The programmer said:

"Let the programmers have more and fewer managers-then the production efficiency will be high ."

6.1

When managers talk endlessly, programmers write games and financial managers talk about quarterly profits, the development budget will be cut soon; when senior scientists talk about the blue sky, the sky is surging.

In fact, this is not the way to program.

When managers are loyal to their duties, the game program will be put aside; when financial managers develop long-distance plans, the harmonious order will be restored quickly; when senior scientists start looking at problems, they will soon be resolved.

In fact, this is the way of programming.

6.2

Why are programmers inefficient?

Because their time is wasted in meetings.

Why are programmers difficult to control?

This is because the management layer is nosy.

Why have programmers resigned one after another?

Because their enthusiasm is exhausted.

Working in poor management, they are no longer dedicated.

6.3

A manager is about to be dismissed, but a programmer under him invented a new program. This program is popular and popular. As a result, the manager returned to his original position.

The manager tried to send a fund to the programmer, but the programmer refused. "I write this program because I think this is a very interesting idea," he said. I don't expect a return ."

The manager heard this and commented: "Although the programmer is humble, he can understand the responsibilities of an employee. Let's promote him to the management consultant level !"

However, after receiving the notification, the programmer refused again. He said: "I am in my position to better program. If I am promoted, I will accomplish nothing except wasting everyone's time. Can I leave now? I have another program to compile ."

6.4

A manager came up and said to his programmers, "about your Start Time: you will arrive at nine o'clock a.m. And get off work at five o'clock P.M. a.m ." After hearing this, all the programmers were angry, and several of them had to resign on the spot.

As a result, the manager had to say, "Well, in that case, you can schedule your work as long as you can finish the project on time ." Programmers are satisfied. Later, they came to the office at noon and worked together until early morning.

Article 7 knowledge in the company

The programmer said:

"You can demonstrate a program to a company's president, but you cannot make him learn to use a computer ."

7.1

A beginner asked the master: "in the east (this refers to the east coast of the United States, there are many corporate headquarters-), there is an unusual tree structure, people call it 'headquarters '. The large number of its Vice Presidents and financial directors makes it difficult. It issued a master's letter, each of which was written as "returning" and "coming to death", but no one knew what it meant. Its branches need new names every year, but they have no value. How can such an abnormal entity continue to exist ?"

The master replied, "You may be confused about this huge Deng because he has no reasonable use. Don't you get fun from its endless maneuver? Do you not enjoy the carefree and easy programming in the part it shields? Why are you upset because it is useless ?"

7.2

There is a big fish in the east, which is bigger than all other fish. It becomes a bird, and its wings are like clouds filled with the sky. When the bird flew over the land, it sent the "Company headquarters" message, throwing the message among those programmers like qingting water. Then the bird drove the wind, carried the blue sky, and returned to his home.

The beginner programmer stared at the bird with surprise because he could not understand it. The mediocre programmer feared the arrival of the bird because he was afraid of the news brought by the bird; the programmer is still working in front of his terminal, because he does not know that the bird is coming and going again.

7.3

The magicians in the ivory tower brought about his latest invention. Let the programmers test it. The magician pushed a big black box into the office, and the Master waited quietly.

"This is an integrated, distributed, and universal workstation," the magician started. "using the principles of human engineering, designed using a patented operating system, sixth-generation review, and multi-state user interface. It took me several hundred assistants a few years to build this workstation. Isn't that surprising ?"

The master raised his eyebrows gently. "This is indeed amazing ." He said.

"The company headquarters has commands," the magician continued. "Everyone has to use this workstation as an operating platform to design new programs. Do you agree ?"

"Of course I agree," said the master. "I will ship it to the data center immediately ." So the magician happily returned to the Ivory Tower.

A few days later, a beginner walked into the master's office and asked, "I can't find my new program list. Do you know where it will be stored ?"

"Yes," the master replied. "Those lists are stacked on the platform of the data center (platform can refer to the operating platform or the normal platform- ."

7.4

Programmers are never afraid to adjust their jobs in different programming scenarios; management changes cannot damage him; he will not be dismissed, even if the project is canceled. Why? Because his chest has a "Tao ".

Article 8 hardware and software

The programmer said:

"There is no wind, the grass remains static; without software, the hardware is useless ."

8.1

A beginner asked the master: "I noticed that a computer company is much bigger than any other company. It is far ahead in the middle, just like a heap. Any of its departments can form a complete enterprise. Why ?"

The master replied, "why are you asking such stupid questions? The company is big, so it is big. If it only produces hardware, no one is willing to buy it; if it only produces software, no one is willing to use it; if it only maintains the system, people will regard it as a servant. However, because it combines all these things, it changes and is seen as one of the gods. It is easy to win.

8.2

One day, a Master passed by a beginner programmer and found that the beginner was concentrating on handheld computer games. "Sorry," he said. "Can I check it ?"

The beginner immediately got nervous and handed the trick to the master. "I know this kind of device provides three game levels: Easy, medium, and high," said the master. "However, each of these devices has another level. At this level, game consoles do not want to win or be defeated."

"Excuse me, dear master," the beginner pleaded. "How can I find this wonderful level setting ?"

The master threw the things onto the ground and stepped on to the ground. Suddenly, the beginner understands something.

8.3

There was once a programmer who was good at programming on a microcomputer. "Look, how nice I am here," he told another visiting programmer, this programmer works on a large host. "I have my own operating system and file storage device, and I don't have to share my resources with anyone else. The software here is self-consistent and easy to use. Why don't you quit your current job and join me ?"

As a result, the host programmer began to depict his system to his friend: "The host is sitting in the data center like a saint in meditation. Its disks are connected at the beginning and end, just like the ocean of machines. The software here is as complex and untested as a diamond, reflecting the light. The procedures here have their own unique characteristics. They are like a fast river passing through the system. This is why I like it.

Microcomputer programmers are in silence when they hear this. But the two programmers have always maintained friendship.

8.4

On the way to Silicon Valley, hardware ran into software. The software said: "You are Yin, I am Yang. If we work together, we will become famous and make a lot of money ." So the yin and yang walked forward together and thought about how to conquer the world.

In a short time, they met firmware, a component that combines hardware and software, such as an IC card, and he was walking in a shabby manner with a stabbed cane in his hand. The firmware said to them: "The channels are outside of yin and yang. It is obscure and static. It does not pursue reputation, so no one knows its existence. It does not pursue wealth because of its integrity and perfection. It exists outside space and time ."

The software and hardware turned around and went home.

Chapter 9 Conclusion

The programmer said:

"Now is the time for you to become a teacher ."
 

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.