The 7 worst habits of programmers

 

0 "All code is garbage except mine

(The picture comes from the Internet)

Dude, I have bad news for you, your code is rubbish. No matter how much effort you put into it, there are always a lot of programmers out there who think your code is rubbish and they can do it 10 times better than you can.

How to fix it: Don’t just focus on criticism, you are also the one who writes the code. Try to be objective, not judge! Be humble.

 

1 Disaster brought about by "get it done now"

 

(The picture comes from the Internet)

Everyone likes to take shortcuts, everyone has done it. Sometimes taking shortcuts is necessary, but most of the time taking shortcuts is dangerous, very dangerous, so we should try to avoid it. A shortcut might save you hours, but it could cost you months of pain.

How to fix it: Don’t just get things done on your own, but consult with others and ask them to check your work. If you want to take a shortcut, please get the approval of all involved, including your manager.

 

 

2 "Incorrect time estimates

I live in Barcelona and we have the very famous Sagrada Familia church there. The reason it is famous is because it is very beautiful and has a very long projected construction period, starting in 1882. I think this project does not have programmers involved in the time budget, otherwise the construction completion time may be two weeks.

How to solve it: First of all, it is impossible to accurately estimate the time of software development, we can only guess. In the process of development, you may encounter various problems that you have not encountered, so we often multiply the estimated time by 2.

 

3 "Blind arrogance

Discussions between programmers sometimes look like rooster fights rather than human conversations. This tends to happen in design and architecture meetings. In your eyes, other people's opinions are bullshit, bullshit, bullshit...

How to solve it: Leave your arrogance at home, listen calmly to what other people are saying, and then make a decision.

 

4 "I didn't do it!

We always make excuses for ourselves. We tend to excuse ourselves, like under normal circumstances, I would never make that mistake and so on.

怎么解决:谁都会犯错误,调整你的态度,“是的,这是我的问题,我们现在需要修复它”就是一种非常专业的态度。它会帮助你建立你的声望,并获得同事的好感。

 

5 “缺乏耐心

 

(图片来源于网络)

虽然重复的简单工作很枯燥,但是那也是必须完成的任务。程序员往往抵制,反感这些任务,导致工作效率低下。

怎么解决:纪律!记住,再激动人心的项目也有枯燥无味的任务要完成!

 

6 “不成熟

如果编程是做爱的话,一定有很多没有被满足的电脑。你不能简单的进入,做到一半然后就睡觉了。很多程序员都没有搞明白“完成”是什么概念。请记住:完成意味着测试通过(不仅仅是单元测试),文档完整,提交,合并……

怎么解决:这一条很难,很多看起来不必要的任务加在一起很复杂。但这是完成一个项目所必须的工作,需要通过纪律和训练来完成。

 

本文转载自程序员e家(programmer_clubs),略有修改

原文:top 7 programmers bad habits

译文:www.oschina.net/news/29163/programmers-7-bad-habits

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326079291&siteId=291194637