Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从gulpfile.js的warning联想到软件的腐败 #26

Open
youngwind opened this issue Feb 18, 2016 · 0 comments
Open

从gulpfile.js的warning联想到软件的腐败 #26

youngwind opened this issue Feb 18, 2016 · 0 comments

Comments

@youngwind
Copy link
Owner

缘由

昨天在看《程序员修炼之道》,其中说到“破窗理论”是导致程序腐败的原因。忽然联想到前两天跟同事在处理某些gulp的warning时候的分歧。

情况

2016-02-18 5 26 51
这是我们在启动一个项目装包时候碰到的warning(其实这个warning我已经看到过好多次了,不过一直忽视它)当时我认为时间紧迫,这些warning并不影响开发,不必理会。同事则认为应该改过来。

体会

其实这些warning虽然不影响功能,但是却是一个糟糕的做法,在最求足够好的程序员眼中是不可忍受的(当然,足够好也应该充分考虑时间因素)。当遇到“破窗”的时候,正确的做法是修复它。如果时间不允许,则应该设法让其不扩大影响(比如不再使用这种糟糕的做法)或者让其更加醒目以便有时间的时候改进(比如添加todo注释)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant