{"action":"opened","issue":{"url":"https://api.github.com/repos/kuangfu01/blog/issues/1","labels_url":"https://api.github.com/repos/kuangfu01/blog/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kuangfu01/blog/issues/1/comments","events_url":"https://api.github.com/repos/kuangfu01/blog/issues/1/events","html_url":"https://github.com/kuangfu01/blog/issues/1","id":59398780,"number":1,"title":"烂的极限","user":{"login":"kuangfu01","id":10758363,"avatar_url":"https://avatars.githubusercontent.com/u/10758363?v=3","gravatar_id":"","url":"https://api.github.com/users/kuangfu01","html_url":"https://github.com/kuangfu01","followers_url":"https://api.github.com/users/kuangfu01/followers","following_url":"https://api.github.com/users/kuangfu01/following{/other_user}","gists_url":"https://api.github.com/users/kuangfu01/gists{/gist_id}","starred_url":"https://api.github.com/users/kuangfu01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuangfu01/subscriptions","organizations_url":"https://api.github.com/users/kuangfu01/orgs","repos_url":"https://api.github.com/users/kuangfu01/repos","events_url":"https://api.github.com/users/kuangfu01/events{/privacy}","received_events_url":"https://api.github.com/users/kuangfu01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-01T14:59:30Z","updated_at":"2015-03-01T14:59:30Z","closed_at":null,"body":"话说上周阅读老系统的代码时，我看到了类似这样的两行：\r\n\r\n    result[\"reguler\"] = some_api(\"regular\")\r\n    result[\"regular\"] = some_api(\"regular\")\r\n\r\n我在整个项目里搜索了一下，```result[\"reguler\"]```出现了100多次，```result[\"regular\"]```出现了40多次，并且没有意义上的差别。\r\n\r\n在确定```reguler```是拼写错误以后，我能想到的唯一解释是这样的：\r\n\r\n1. 第一个人在最初写程序时把```regular```错误拼写成了```reguler```，并且在整个项目中使用了100多次；\r\n\r\n2. 一段时间以后需要添加新功能，第二个人，又或者还是第一个人，发现了这个拼写错误。他懒得修正已有代码，直接添加了一行拼写正确的```regular```，然后使用了40多次。\r\n\r\n这是我见过的“烂”的极限，甚于“粘贴拷贝代码”一万倍。我在愤怒之后很快就为自己在这样的环境中工作感到了可悲。\r\n\r\n我决定记录这件事情并作为这个博客的开篇，以提醒自己：\r\n\r\n**目前所处的环境，正是我需要去修正的优先度最高的第一号issue。**"}}