Why do I still only copy and paste after being a programmer for so many years?

If you ask a programmer: Which are the two most proficient shortcut keys?

Programmer (blurring): ctrl+c and ctrl+v! i.e. copy and paste.

For a large number of programmers: the world's code is just a "copy", copy and paste are their left and right arms to create great products, and they will call themselves "CV programmers" in self-deprecating manner.

Like these jokes on the Internet:

1. "We don't produce code, we are porters of code"

2. You don't know anything about my abilities!

3. A programmer who can meet the needs is a good programmer. As for you, did you copy and paste it? The manager won't care!

4. To transcribe and use it rationally... This is a kind of ability in itself...

5. There was a programmer who wrote code seriously every day, and then he died suddenly...

Can CV, but know how to CV

There is a saying in development that says "don't make your own wheels". As long as there is an implementation of this function on the market, you can use other people's code. After all, the code written by others is no worse than yours. There are also many excellent programmers on github who can help optimize together.

If you rewrite it by yourself, it is often a waste of time, and it is not necessarily better than others, so as long as there is ready-made code, most people will choose to copy and paste.

Moreover, some companies do not have high requirements for programmers: as long as you can copy the code and know where to copy the code, the code will really run in the end! That's the real skill, no one cares if you copy or not!

Over time, this kind of copy-and-paste doctrine has become more and more popular.

In fact, for programmers, even copying and pasting can be divided into several grades:

Basics : Scribe program from the Internet = ¥1

Getting Started : Know which part of the program can be copied = ¥100

Master : Know how to adjust before and after copying=¥1000

Elite : Know how to prevent others from seeing that you have copied =¥10000

Entrepreneurship : know how to make everyone recognize your unique value even when copying = ¥100000

Copying and pasting is easy, but knowing what to copy and where to paste it is difficult. As many people say : copying code is worth 1 yuan, and knowing what to copy is worth 19,999 yuan. A qualified CV programmer should know what code to copy, which piece of code, how to integrate it after copying, and the key is to solve the problem.

Can CV, but not only CV

Proper use of copy and paste will make your code write quickly, saving time, effort and brainpower. But when you're copy-pasting, it's easy to slow down and slacken your work.

Don't care about tempering your skills, and then regard programming as manual labor. You can only paste and copy codes, know it but don't know why. Over time, you will become a programmer who can only copy and paste.

Working in this state for 5 or 10 years, and living a day-to-day life without any difference, I have truly made the position of programmer a code farmer who eats youth food.

Therefore, programmers should not limit their work to copying and pasting code from the Internet, but should regard it as a process of learning , instead of copying and pasting directly just to fool the problem at hand.

If you can't trace the source and figure out the inner essence, then you will only stop at the step of copying and pasting .

Technology is always innovating forward. Some programmers can accumulate a lot of knowledge from copying and pasting, master advanced technology, and can independently create excellent software.

And if you choose to lie flat and be a "fool" who can only copy and paste, sooner or later you will be the first one eliminated by the market.

How to get rid of the habit of just copying and pasting?

For programmers who rely too much on copy and paste, they can try to seek breakthroughs based on copy and paste in the early stage, and use repeated practice and cross-comparison to practice programming skills, rather than just repeating the "copy and paste" action.

These methods can also help you:

1. Compared with copying and pasting, it is better to develop the habit of retyping code . This practice helps to develop the ability to read and understand source code , it will force your brain to think about the differences in this type of code pattern, and learning will be more efficient.

2. Conceive, design and build a program independently . First proceed on paper using pseudocode, consider all aspects, write down requirements, design, user stories, use cases, system responsibilities, etc. Draw diagrams, design user interfaces, and try to understand it from all sides.

3.  Conduct regular code reviews . Programmers let peers and architects look at their code and explain what the code does. This will not only improve everyone's ability, but also make yourself no longer lazy.

All in all, practice is the best teacher. Programmers must get out of their comfort zone, from only copying and pasting to being able to develop projects independently.

Slowly transition from independent coding to realize simple functions to design complex programs, and persist in learning and progress. I believe that I will gradually get rid of the "curse" of copying and pasting in the near future.

Are you a "CV programmer"? Do you think copying and pasting has had a positive or negative impact on your work? Welcome to leave a message in the comment area~

Guess you like

Origin blog.csdn.net/mashibingjiaoyu/article/details/130745262