简体   繁体   English

是否有代码完整测验/测试?

[英]Is there a Code Complete Quiz/Test?

So, my boss for very good reason LOVES the book Code Complete by Steve Mcconnell. 因此,我的老板非常有理由喜欢Steve Mcconnell撰写的《 Code Complete》一书。 I was wondering if anyone has ever come across a way to test if someone has read the book. 我想知道是否有人曾经尝试过一种方法来测试是否已读过这本书。 I swore a quiz/test had to be online somewhere. 我发誓测验/测试必须在某处在线。 Alas, my efforts to find one were futile. las,我寻找人的努力是徒劳的。 We are starting a Gameification process of developer seniority. 我们正在开始开发人员资历的游戏化过程。 We are giving a list of code achievements that can result in bonuses and benefits. 我们提供了一系列代码成就,这些成就可能会带来额外的好处。 One of the achievements is to read Code Complete. 成就之一是阅读“代码完成”。 One of my personal achievements is to find a definitive way to test if someone has read it. 我的个人成就之一就是找到一种确定的方法来测试是否有人阅读了它。

This seems ambiguous but there is a definitive answer(s). 这似乎模棱两可,但有一个明确的答案。

TLDR: Does anybody know of a quiz or test about Code Complete? TLDR:是否有人知道有关代码完成的测验或测试? If you do not, what single question would you ask someone, to determine if they read Code Complete? 如果不这样做,您会问哪个问题,以确定某人是否阅读了“代码完成”?

Some of my Questions: ("I like these but I am looking for that one definitive question") 我的一些问题:(“我喜欢这些,但我正在寻找一个明确的问题”)

What is Cohesion, why is it important?
When should code go in to it's own method? 
When should a collection of methods become a class? 
How much should you plan a project out before doing it? 
What is Code Construction? 
Give an example of a variable name for an investment amount. 

To clarify, I am not looking for a summary or even an answer. 为了澄清,我不是在寻找摘要甚至答案。 I simply would like a premade quiz or a single question to ask someone. 我只是想要一个预制的测验或一个问题问一个人。 Thanks so much guys. 非常感谢你们。

The coding practices should unroll with time as they're applied, but if you're looking for a quick "Did you read this?" 应用时,编码实践应随时间展开,但是如果您正在寻找快速的“您读过吗?” then I'd pick one of the funny comments McConnell has peppered in there, like: 然后我会选择麦康奈尔在其中发表的有趣评论之一,例如:

Under what conditions would you be a pompous fraud? 在什么情况下您会成为大手笔的欺诈?

What musical composer died in the comments? 评论中有哪个音乐作曲家死了?

And so forth. 依此类推。 These would more than likely stick out if you read the book like a novel (which I think can be done -- I enjoyed it!) rather than just skimmed the headings. 如果您像读小说一样读这本书(我认为这是可以做到的,我很喜欢!),而不仅仅是略读标题,这些很有可能会突出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM