代码改变世界

程序员的谎言

梦短梦长俱是梦,年来年去是何年。去年的今天,我还在上海,整理了 请用一句话证明你是程序员 。而今天的我已回合肥工作半年多时间,很庆幸又见故乡庐州月。

儿时凿壁偷了谁家的光
宿昔不梳 忆苦十年寒窗
...
半生浮名只是虚妄
三月 一路烟霞 莺飞草长
柳絮纷飞里看见了故乡
...


又忍不住感概了几句,打住打住。在1024这个特殊的日子里,总想整理一些非技术相关的东西。

很多人都知道销售人员的话不能全信。在IT行业中,上身格子衬衫、双肩包,下身牛仔裤、运动鞋,生活低调、工作热情、代码风骚、内心狂热的程序员经常被贴上“少言寡语”、“老实人”等标签,那么这个“老实人”群体真的“老实”吗?

https://www.quora.com/What-are-the-most-common-lies-told-by-programmers

本篇参考上面这一篇帖子,结合自身工作日常以及国内程序员的调侃,总结了如下程序员常说的“谎言”。


Yeah, I tested it.

放心,我测过!


Only need to change one line of code, and will not affect other programs.

只需要改一行代码,不会影响其他地方的。


I'll comment and document my code later.

我以后再给代码写注释和文档。


TODO
FIXME

后续再优化完善


That's easy, it'll just take a couple of days.

那个简单,几天就能搞定。


It works on my machine.

在我机器上没问题。


I'll add unit tests in the next code change.

下次提交代码我再添加单元测试。


I am 90% finished.

我已经完成90%了。


// This can never happen.

// 这种情况不可能发生。


It's not a bug, it's a feature!

这不是Bug,这是特性!


I'll be done in like 2 hours.

大概2小时能搞定。


I only have like 3 things left to finish.

只剩下3个小问题了。


It's almost done.

就快完成了。


Yeah, it is a known bug.

这是一个已知(潜台词当前无法解决)问题。


It will just take 2 minutes to fix !

这个两分钟就可以修复!


You must have the wrong version.

一定是你使用的版本不对。


I haven't touched that module in weeks!

我已经好几周没动过那个模块了!


It must be a hardware problem, nothing to do with software.

这是硬件问题,与程序无关。


It's just some unlucky coincidence.

这只是偶发事件。


There has to be something funky in your data.

你的数据肯定有问题。


I'll improve the solution later.

以后再改进方案。


This code is self-documenting.

代码即文档。


This fix is so simple that we can put it straight into production.

这次修复改动很小,可以直接放到生产环境。


It was working earlier. Some one changed something!

先前还是好的,肯定有人动了什么东西!


It's just a temporary solution, it won't be used in production.

这只是个临时方案,不会用在生产环境。


We can solve this problem in the next version.

下个版本解决这个问题。


git commit -m "changing the log message", but the truth is fixing some bug.

提交代码时描述信息是修改日志,实际这个提交修复了一些bug。


Yes, I have a girlfriend.

我有女朋友。


The bug isn't in my code; you are using it incorrectly.

这不是代码问题,只是你不会用而已。


I'll just cut-and-paste this code for now, but I'll make a super-class when I have a moment.

我先拷贝代码,等以后有时间再提取一个父类出来。


Dev: This will take 10 days.
Boss: Can you do it in 5?
Dev: Sure!

开发人员:这个需要10天做完。
老板:5天不行?
开发人员:差不多吧!


Environment issue. Was working fine on my dev box!

肯定是环境问题,在开发环境不跑得挺好嘛!


Code is compiling.

代码正在编译。


It was working ...did something on the network change?

现在来看一切正常,当时是不是网络抖动引起的?


This refactor is small and low risk.

这次重构很小,基本没什么风险。


Documentation is coming soon.

文档再等等。


Just comment this code for now , it may be used later.

先注释掉这里的代码,以后说不定还能用到。


在面对一个不想接的需求时,程序员的几个理由:

  1. 这个需求太out了
  2. 目前服务器性能跟不上
  3. 现有的技术实现不了
  4. 去找老板排期吧,这个很费时间的

同行的朋友们,回忆回忆这些年你们说过哪些“谎言”,欢迎评论区补充!

posted @ 2021-10-24 07:01  行无际  阅读(351)  评论(0编辑  收藏  举报