当前位置:网站首页>Why do programmers run away after two years?

Why do programmers run away after two years?

2022-06-10 01:12:00 Ma Nong turns over

Zhangdafan has just graduated , Little work experience , Applied to join a small company . 

Small companies are really small , In addition to the boss , Only three old employees , And a few interns .

What's unexpected is , The boss even held a welcome dinner for himself , This moved zhangdacheng very much . 

At dinner time , The boss said passionately : Our company is a technology company , I hope everyone will study the technology well , In the future, we will become a technology magnate . 

After hearing this , Zhangdafan secretly made up his mind : We must make a name for ourselves here .

Between them , Technical veteran, why drink too much , Red face , Put your arm around zhangdafu's shoulder and say something heartfelt : The boss is good at playing tricks , Not interested in technology , Don't be fooled .

Zhangdafan nodded his head meekly , But I don't think so , I think it should be Lao he's own problem . 

Officially entered the project , Zhangdafu starts to read the code , He works very hard , Often study until midnight , If you really don't understand it, go and ask the veteran he . 

Slowly, , Zhangdafan has started his work , From change Bug Start , You will soon be able to do some functions .

One day , The boss called zhangdafan into his office , First, I praised them :“ Xiao Zhang , You have been here for two months , Well done !”

Then he was given another chance :“ I'm going to put more pressure on you , There is a very important old project , It's always the old he who is maintaining , I'm going to give it to you ……”

Zhangdapan listens , I'm very glad to .

The boss said :“ This project is all old code , Every time there is a new demand , Even a small demand , Lao he always says that it is difficult to realize , I don't know much about technology , You go and see what's going on .”

Zhangdafan asked why he asked for the project code , Open it up , The code is really smelly and long , It's a mess .

He studied it carefully for a week , Finally understand the logic of the code , Simply put, collecting data  Processing data —> The logic of displaying data . 

Why is it so messy ? 

Zhangdafeng read the history of the code , The latest code changes are all old he , He could not help feeling a slight contempt for Lao he . 

He found Lao he , Ask him : The code is so messy , Why not refactor it ? Change to several modules with low coupling and high cohesion , Use... Within the module SOLID principle , You can use factory mode 、 Template method pattern and so on .

He listened to him patiently for a long time , A mysterious smile :“ Xiao Zhang , You're still too young ……”

Then I ignored him . 

Zhangdafan is a little confused , But he remembered the earnest expectation of his boss , assume : I can refactor this project , Show your strength , So I went directly to the boss for support . 

The boss said nothing , Readily agree to . 

Zhangdafang was beaten with chicken blood , For several weeks , Finally, the code is refactored , The code is clear and easy to understand , The operation efficiency is also greatly improved .

The boss is very happy , In the company, he often advertises that the new Xiao Zhang is very capable , In the future, we should cultivate .

Although not aimed at Lao he , But he has already heard what the boss means : Zhangdafu is capable and cheap , Much better than myself .

It was not long before , Lao he submitted his resignation report , He left soon . Before leaving , He told zhangdafan :“ If there is a problem with the project , You can call me !”

Zhangdafan is full of confidence , How could there be a problem ? 

He took several interns with him to continue to improve , Deploy the refactored code to the customer . 

One day at midnight , Zhangdafan suddenly gets a call from his boss , In a stern tone , Said there was something wrong with the customer's project , The site environment requires long-term operation , As a result, no data can be sampled !

Zhangdafu quickly got up and looked , But the problem can not be found .

The boss urges zhangdafu every day , Zhangdafan has no way , I had to contact Lao he , Ask him for help .

Lao he said with a smile :“ The code for this project , I've tried refactoring before , But there are too many pits inside , Too vague a condition , Numerous branches , Strong relevance , There are also various hardware compatibility issues , No test , Refactoring is extremely difficult ……”

Zhangdafan has no way , I had to restore it to the previous version of Lao he , Finally, the problem has been solved .

The boss gave zhangdafan a good scolding , With this, I deducted all the project bonuses of that year . 

A year's work in vain , Zhangdafan is angry , There is no way . 

Another new year , The company has a new employee Xiao Li , Xiao Li is more hardworking than Zhang Dafu , More active , More capable , Let zhangdachun sigh that the young generation is awesome .

One day , Xiao Li suddenly asked zhangdafan : Our project , The code is so messy , Every little demand , Have to change for a long time , Why not refactor it ? Change to several modules with low coupling and high cohesion , Use... Within the module SOLID principle , You can use factory mode 、 Template method pattern and so on .

Zhangdafu was shocked , Seems to have a hunch that something is going to happen . 

Sure enough , After a few weeks , The boss announced : Xiao Li successfully reconstructed the project !

Then he began to publicize in the company that the new Xiao Li was very capable , In the future, we should cultivate .

Although it is not aimed at Zhang Dafang , But zhangdafu has already heard what the boss means : Xiao Li is capable and cheap , Much better than myself .

instant , Zhangdafan understood the state of mind of Lao he that year , Also understood Lao he's mysterious smile .

He lifted the bucket , I'm running away .

( End )

notes : This article comes from the reader @ Wangfeifei's contribution , Who can tell stories about technology , Contribution fee 1000, Workplace , Growth ,IT Comment fee 700, Welcome to continue to contribute , My WeChat :onlyliuxin97.

It's welfare time again , Send out 5 Ben 《 Big talk data structure

CCF The official recommendation , Best selling for ten years

Full color printing + Three dimensional chart + Dynamic effect PPT= Introduction to algorithm + One's deceased father grind sprint + Anti failure Department + Big factory interview

Super best seller Color Sublimation Edition , An interesting reading recognized by millions of readers “ data structure + Algorithm ”, Coordinated dynamic effect PPT Courseware , Dynamic removal of difficulties

db761367ece2d190b2dee64d77cb93f1.png

How to send books : Talk about the data structure you use in your work , Self defined ,JDK Of , Third party class libraries are available ( ordinary ArrayList There's no need to mention that 8b8752291818f1d59c2c107e3ff3043c.png), I picked out 5 classmate , Free mail

By the time :6 month 9 No. In the evening 8 spot .

原网站

版权声明
本文为[Ma Nong turns over]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206100038439470.html