To be honest, I never thought that I would learn to drive in my life. Before you learn how to drive, sometimes you dream about driving, but more like flying. Now I learned how to drive. I often dreamed that I could not find a car, or I could not find a place to stop. :)
Let's talk about the relationship between driving and programming. I used my grandfather (I drove for 50 years before the war of resistance) and said: it is very easy to drive and I will be able to learn it in two minutes. But it takes a lifetime to drive a car.
I learned how to drive a car a few years ago. Although I did not learn it in two minutes, I learned the fastest among the several people in the same group. (If it was ten years earlier, it would be faster, in elementary school ). Driving is actually a complicated concurrent operation. At the beginning, it was always confusing (it was quite normal to get scolded by the master ).
For example, I plan to turn right when I drive to an intersection. Turn on the direction light first, and then slow down. However, you cannot immediately turn around. As a driver, it is very important to ensure the safety of pedestrians and bicycles.
. Therefore, before you attach a video, you must observe the non-motor vehicle on the right side from the right mirror. At the same time, the eyes also need to scan the people and bicycles on the right of the front. Start turning if there is no block in front of the right. But this is not complete yet,
Because of deceleration, shift is required. If the road in the vertical direction is a green light, you must also avoid the car and people in that direction. There is also a small trouble, the windshield column in front of the left of the cab often affects the line of sight, forming
Blind Zone. Experienced drivers constantly shake their heads to avoid column obstruction.
In summary, when you drive right at a busy crossroads, it is often: the left foot is on the clutch, the right foot is on the brakes, the left hand is on the direction, the right hand is holding the gear, the head keeps turning, or shaking before and after, depending on
The lines are constantly scanned between the right mirror, right and right front of the car, right front, and left front. Of course, the mind cannot be idle, high-speed operation, looking for gaps between the traffic flow and the flow of people, so as to quickly penetrate. In this case
Machine, like a notebook running multiple threads.
Generally, the human brain can only process one task at a time. As a result, when we are a beginner, We will basically drive the car. However, as the exercise time increases, these actions will gradually integrate into our subconscious and gradually become reflective actions. So we learned how to drive concurrently.
When a programmer program, there are many similarities with driving. For example, if we write a program and draw some curves in a window, we need to deal with many problems at the same time. First, I
We have to deal with the syntax and think back to the key points of the syntax as much as possible to compile useful code. Then, we must call the system service, and recall the type, order, and meaning of each parameter. And each
Parameters and return conventions. Some exceptions must be handled as necessary. We need to recall as many constants, enumerations, or macros as possible. We also need to do our best to avoid damaging the software engineering of the Code.
Can achieve dry. In order to implement the program, we must also clarify the algorithm for graph construction and the settings of color lines. The most important thing is to try to avoid writing code that causes errors.
In many cases, we are dealing with these problems almost simultaneously, which often overload our minds. This is where compilation software is tiring.
We continue to practice these jobs through programming exercises and development activities, and finally store the basic programming skills as instinct in the brain as we drive, so that we will be familiar with the future development activities.
It is easy to understand why programmers should learn to drive. Because of programming, you can also put some work that is not the top priority, such as dry, error handling, and so on, and finish the function first. But driving,
Any negligence will lead to an accident. Driving helps train people to handle problems concurrently. For programmers, it is easier to deal with a lot of mixed programming essentials.
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.