The author | Mr. K sorting | | Emma source technology leadership (ID: jishulingdaoli)

Although programmers get a lot of money and high social status, they are not qualified to say “grow old together” with a girl, because they are already bald before they reach the white hair. Life is like this, agreed to grow old, but you secretly baked oil.

As a cannon fodder programmer, I have mastered such essential skills as “jail-oriented programming”, “freehand New objects”, and “deleting libraries and running away”.

After years of struggle, I changed from a brat youth to a brat middle age, and wrote a lot of code that destroyed the company. Here is my history of blood and tears:

1. Scribble comments

Notes are like underwear, invisible from the outside, but important.

The notes should be rigorous, with no obvious loopholes. Wouldn’t you be embarrassed if your underwear had a leak? Of course, if you’re strong enough, people will be embarrassed.

2. Inconsistent code and display

It’s Post code on the screen, Zip code in the code. Look at the code to see doubt life!

So young man, you only see the second floor, you think I’m on the first floor, actually I’m on the fifth floor, you know what I’m saying?

Programmers should pay attention to the details and start small, because you can’t do big things.

3. No naming conventions

No specification, is the best specification. The old K’s ancestral naming skills are now taught to you for free: single letter naming, meaningless naming, pinyin English mixing, etc., just like this: ASdef, A, B, C, Guanli-people……

4. Use global variables

By putting the initialization of a global variable in a different function, you have no idea where the variable is declared or initialized.

As long as the ability is strong enough, when the program fails to compile, the compiler will apologize to you!

Nested loops

It’s time to show some real technology, nested loops, infinite loops, no interruption conditions, no stopping without unplugging.

Anyway, life has to go on, and if life cheats you, I hope it’s sold by the pound.

In fact, I also want to underestimate myself, but the weight does not allow!

6. Never validate data

The passed parameter and return value are not checked. Trust your colleague’s code to be top-notch, how could it go wrong? People should trust each other, just like my high school teachers and my middle school teachers.

Junior high school teacher said: “This knowledge point to high school, high school teacher will speak of.”

The high school teacher said: “This knowledge point, your junior high school teacher should have told.”

7. Don’t encapsulate code

You don’t need a code structure at all, tens of thousands of lines of code in a method, have you ever seen that?

In order to become a technical expert, enthusiasm is not only useless, but also professional methods and deliberate training.

For example, I have learned 36 ways to hide private money. The only thing I need is money.

8. Use subclasses

Everyone is object-oriented programming, first write more than 10 layers of inherited classes, with more than 10 different attributes, and then put the 10 classes in different files.

Other people worry about how to make money. I worry about how to spend money. I’m not trying to show off. I’m just worried: how can I spend 200 yuan until next month?

9. Indirect transformation

JAVA has such SAO operations, such as: double to string. New Double(a).tostring ()

There is no ambiguity about the type of variable. Just like the appearance of people are divided into two kinds, one is good-looking, one is ugly, I belong to the middle, good ugly.

10. Copy and paste

A 10x programmer is someone who can use Copy + past 10 times faster than the average programmer.

When I grew up, I realized that I could not spell my father or mother. It was too expensive to spell a lot. I could only spell fast.

11. Use 3d arrays

Programmers have to be brave enough to push human limits, and array definitions have to be more than three dimensions.

If you come across a three-dimensional array and don’t understand it, don’t worry, wait for tomorrow to see, maybe lucky, tomorrow will die?

12. Excessive packaging

API call API, API call API…… Packages above 10 layers, preferably with circular calls.

When your life is not satisfactory, look at the alipay balance, then look at this rotten code, cry out.

13. Never test

No unit tests, no performance tests, no compatibility tests…… No tests.

How can you let a cute test girl do the work? They’re sitting there, that’s why programmers go to work every day, otherwise it’s like going to the grave.

Get the product manager to write the detailed design

Let the product manager write table structures, flow charts, pseudocode, and you’re just a bland little BUG genius.

The relationship between the product manager and the programmer is like that between the landlord and the landlord. One minute they are on the same team, the next they are enemies, and they steal all your chips.

15. Let your boss do the architecture

Many bosses don’t know much about technology, but they like to give advice. Make your boss an architect and encourage him to roll up his sleeves! Keep an eye on you, heart.

No boss can destroy a company if he works hard.

conclusion

Programmers are highly intelligent and well-educated, representing advanced productivity.

Although in people’s eyes, programmers are bald, sloppy, no life…… But as you get closer to them, it’s pretty much the same, hahaha.

So what? We have technology ah, money more words less early death, in the marriage market can be grabbed, to late also can not grab!

The best time to plant a tree was ten years ago. The second best time to plant a tree is now. ** For learning programming or working friends, if you want to better improve your programming ability to help you improve the level! ** I may be able to help you ~

C language C++ programming Learning communication Circle, **QQ group [951258402] ** wechat public number: C language programming learning Base

Share (source code, project actual video, project notes, basic introduction tutorial)

Welcome to change and learn programming partners, use more information to learn to grow faster than their own oh!

Programming Video sharing: