游戏邦在:
杂志专栏:
gamerboom.com订阅到鲜果订阅到抓虾google reader订阅到有道订阅到QQ邮箱订阅到帮看

约翰·卡马克甘当程序员 重视静态分析工具作用

发布时间:2011-08-22 11:47:18 Tags:,,

作者:Frank Cifaldi

贝塞斯达母公司ZeniMax 2年前收购了id Software,这彻底解放约翰·卡马克,令他能够重回自己最喜爱的工作:将自己关在办公室,完全沉浸于编码工作中。

John Carmack from wikimedia.org

John Carmack from wikimedia.org

这位传奇程序员表示,“我无需再扮演管理者角色。我不需要参加董事会。我得以摆脱众多工作!我只需坐在办公室,完成自己的职责。”

卡马克表示,其存在的核心就是成为一名工程师。

“我收集资源,把握目标,通过发挥资源最大效用,实现既定目标。这就是我的工作,我不想涉猎职责以外的其他事务。”

在id即将问世的《Rage》中,Carmack负责监管一个15-18人的程序员团队,同时承担静态编码分析工作。

他表示,“最令人羞愧的一点是,不论你是多么优秀的程序员,在编写代码过程中,还是会犯下愚蠢错误。我非常提倡进行严格代码分析,我是此方面的先行者,非常注重我们代码基础的完善,所有程序员(游戏邦注:不论优秀,还是平庸),都曾犯下愚蠢错误,这无法避免。所以我们需加大自动化检验力度。”

卡马克团队经常使用的一个工具是微软专业版Visual Studio,这个工具面向PC开发商出售高价,但却免费向Xbox 360开发商提供。

他表示,“所以,很多微软的优秀静态分析工具通常需要付费,就像专业版Visual Studio售价8000美元,但却免费提供给Xbox开发商。这一点非常有趣:微软发现,很少有人抱怨Windows软件糟糕,但却常有人抱怨360上的蹩脚应用,所以他们便向后者投放更多静态分析工具。”

“我保证,没有使用该工具的360开发商定会常常犯错。该工具能够发现应用编码基础存在的问题。静态编码分析工具是错误指示器,用户不会访问到未通过检验的内容。我们目前开始接触PVS Studio和PC-Lint之类的其他工具。”(本文为游戏邦/gamerboom.com编译,如需转载请联系:游戏邦

Following Acquisition, John Carmack Is Free To Be Himself

by Frank Cifaldi

When Bethesda parent company ZeniMax acquired id Software two years ago, it freed John Carmack to go back to what he loves best: closing himself off in his office and engulfing himself in code.

“I don’t even have to pretend to be an executive anymore,” the legendary programmer told Gamasutra. “I don’t have to go to board meetings. I don’t have to do anything! I can just sit in my office and work.”

As Carmack explains it, the very core of his being is defined as being an engineer.

“I take resources and a goal, and I try and put them to the best use to get us there. That’s what I do. I don’t want to be doing anything else.”

For id’s upcoming Rage, Carmack oversees a large team of between 15 and 18 programmers. As part of this, he’s been paying a lot of attention to static code analysis.

“One of the humbling things that you find is that, no matter how good of a programmer you are, you write code, and you make stupid mistakes,” he says. “And I am getting to be a huge proponent of really, really rigorous code analysis, because I have been going through pioneering these things, just squeegeeing through our code base, and every single programmer — from our best to our worst — they all make stupid mistakes, and they are unavoidable. So, we need to have more automated checks on these things.”

One tool his team is using frequently is the professional edition of Microsoft’s Visual Studio, a tool that is expensive for PC developers but, interestingly enough, is free for Xbox 360 developers.

“So, Microsoft has got some pretty good static analysis tools, and normally they make you buy, like an $8,000 professional edition of Visual Studio, but they give it for free to all Xbox developers — which I think says an interesting thing about this stuff. Where Microsoft figures that, well, nobody blames them for crappy software on Windows, but they do blame Microsoft a bit for crappy software on 360, so it’s in their best interest to put more static analysis tools available there,” he says.

“I swear, any 360 developer that’s not using that is making a mistake. It will find problems in your code base. But after we got through all of that, we made it so it’s warnings as errors, nobody can check in anything that doesn’t pass that. We’ve been going on adding additional tools like PVS Studio and PC-Lint.”(Source:gamasutra


上一篇:

下一篇: