当前位置:网站首页>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

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
), I picked out 5 classmate , Free mail
By the time :6 month 9 No. In the evening 8 spot .
边栏推荐
- 图片批量下载 +图片马赛克:多张图片组成端午安康!
- MAUI + MVVM + SIEMENS 跨平台应用实战
- 洛谷P2657 [SCOI2009]windy数 题解 数位DP
- Application scheme of residual pressure monitoring system in a high-rise residential building
- xargs命令详解,xargs与管道的区别
- 剑指 Offer II 014. 字符串中的变位词
- Sword finger offer II 012 The sum of left and right subarrays is equal
- Sword finger offer II 016 Longest substring without duplicate characters
- The gradient decline triggered a "heated debate" among AI bulls. Netizen: everyone's answer is worth seeing
- PCI bar register explanation (two examples)
猜你喜欢

Maui + MVVM + Siemens cross platform application practice

FPGA-VGA显示

How to implement complex SQL such as distributed database sub query and join?

Reprint the Alibaba open source project egg JS technical documents cause "copyright disputes". How to use the loose MIT license?

My creation anniversary

Flutter ITMS-90338: Non-public API usage - Frameworks/webview_ flutter_ wkwebview. framework

缓解修复Android Studio卡顿,Kotlin代码提示慢

劍指 Offer II 018. 有效的回文

为什么程序员干两年就跑路?

Chapter 6 domain controller security
随机推荐
Flink CDC + Hudi 海量数据入湖在顺丰的实践
[HFCTF2020]BabyUpload
Sword finger offer II 010 Subarray with and K
Node-RED系列(二六):使用dashboard节点开发常见的表格搜索布局
项目成功了,最大的功臣居然是项目经理?
洛谷P2657 [SCOI2009]windy数 题解 数位DP
Benders Decomposition study notes
Chapter 6 domain controller security
Offre de doigts II 018. Palindrome valide
为什么程序员干两年就跑路?
Mysql——》事务
ThingsBoard教程(十九):规则节点概览介绍
Flutter ITMS-90338: Non-public API usage - Frameworks/webview_ flutter_ wkwebview. framework
Win11右键怎么直接打开所有选项?
Reprint the Alibaba open source project egg JS technical documents cause "copyright disputes". How to use the loose MIT license?
Maui + MVVM + Siemens cross platform application practice
梯度下降引发AI大牛们“激辩”,网友:每个人的答案都值得一看
防火门监控系统在某住宅项目上的应用
MySQL -- problems caused by concurrent transactions (read consistency)
【无标题】