由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 最近一桩好玩的小事
相关主题
rand() in multitreading心目中的编程高手 [zz]
use abort() to generate coredump (转载)ganshuai2006的推荐书目 ZZ
From C++ to C普通C++程序员一年全职工作写多少行代码?
为什么cpp会有 const_cast ?一个工作open for Top Coder
a simple question about constructor中国的软件工业为何不如印度?
讨论个idea题how to prevent client programmer to pass by value?
请教C++Diff between Java coder and C++ coder
陆奇 在 CMU 博士后的导师是印度人 M. Satyanarayanan谁说做开发没趣味?!
相关话题的讨论汇总
话题: removing话题: balked话题: fix话题: ford话题: line
进入Programming版参与讨论
1 (共1页)
S*******e
发帖数: 525
1
先说明,本人的coding水平很一般,下面小事是瞎猫碰到死老鼠。记得本版有个哥们帮
人家把一个网站(要上线的前两天突然什么都不工作了)花了一两天修了一下,挣了几
万块 -- 羡慕他很有两下子。
Coders: how many times did you fix a problem by removing one line of code?
Recently, several guys in my team worked on a problem for a couple of weeks
but went nowhere. I was asked to help. I let them show me what the issue
was and how to reproduce it. By the end of the day I was able to fix the
issue by just removing one line of code!
I recalled a story I read a long time ago about a dash that was worth $10,
000. It looks my fix of removing just one line of code also was worth $10,
000 :-). I searched the internet and did find it:
TIL Henry Ford once balked at paying $10,000 to General Electric for work
done troubleshooting a generator, and asked for an itemized bill. The
engineer who performed the work, Charles Steinmetz, sent this: "Making chalk
mark on generator, $1. Knowing where to make mark, $9,999." Ford paid the
bill。
https://www.reddit.com/r/todayilearned/comments/2b4n7a/til_henry_ford_once_
balked_at_paying_10000_to/
h****e
发帖数: 2125
2
知道怎么reproduce problem居然还不能fix,那几个哥们水平可是值得怀疑。

weeks

【在 S*******e 的大作中提到】
: 先说明,本人的coding水平很一般,下面小事是瞎猫碰到死老鼠。记得本版有个哥们帮
: 人家把一个网站(要上线的前两天突然什么都不工作了)花了一两天修了一下,挣了几
: 万块 -- 羡慕他很有两下子。
: Coders: how many times did you fix a problem by removing one line of code?
: Recently, several guys in my team worked on a problem for a couple of weeks
: but went nowhere. I was asked to help. I let them show me what the issue
: was and how to reproduce it. By the end of the day I was able to fix the
: issue by just removing one line of code!
: I recalled a story I read a long time ago about a dash that was worth $10,
: 000. It looks my fix of removing just one line of code also was worth $10,

g****t
发帖数: 31659
3
我以前遇到过有一次一小点c code出问题。好多人一起看,最后是一个俄罗斯年轻人查
到的问题。
l******n
发帖数: 9344
4
不能rollback到以前working的version?

weeks

【在 S*******e 的大作中提到】
: 先说明,本人的coding水平很一般,下面小事是瞎猫碰到死老鼠。记得本版有个哥们帮
: 人家把一个网站(要上线的前两天突然什么都不工作了)花了一两天修了一下,挣了几
: 万块 -- 羡慕他很有两下子。
: Coders: how many times did you fix a problem by removing one line of code?
: Recently, several guys in my team worked on a problem for a couple of weeks
: but went nowhere. I was asked to help. I let them show me what the issue
: was and how to reproduce it. By the end of the day I was able to fix the
: issue by just removing one line of code!
: I recalled a story I read a long time ago about a dash that was worth $10,
: 000. It looks my fix of removing just one line of code also was worth $10,

S*******e
发帖数: 525
5
新项目。。。是一开源系统,项目有特殊需要,要加一新功能。他们觉得能够做到,但
怎么也过不了。

【在 l******n 的大作中提到】
: 不能rollback到以前working的version?
:
: weeks

1 (共1页)
进入Programming版参与讨论
相关主题
微软真二a simple question about constructor
读Bjarne Stroustrup写得The C++ programming language 是不是经常有不知所谓的感觉。讨论个idea题
谁给推荐一个C++复习大纲?请教C++
现在的Top Coder还有意思吗陆奇 在 CMU 博士后的导师是印度人 M. Satyanarayanan
rand() in multitreading心目中的编程高手 [zz]
use abort() to generate coredump (转载)ganshuai2006的推荐书目 ZZ
From C++ to C普通C++程序员一年全职工作写多少行代码?
为什么cpp会有 const_cast ?一个工作open for Top Coder
相关话题的讨论汇总
话题: removing话题: balked话题: fix话题: ford话题: line