你有任何好的建议/链接到一套编码标准或最佳实践吗? [英] Do you have any good advice/links to a set of coding standards or best practices to follow?

查看:149
本文介绍了你有任何好的建议/链接到一套编码标准或最佳实践吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于那些已经编程足够的我确定我们已经遇到了许多不同的编码标准,你可以使用它在编程。

For those of us that have programmed enough I’m sure we have come across many different flavours of coding standards that you can use when it comes to programming.

例如 http://msdn.microsoft.com/en-us/library/ms229042。 aspx

您可以为您当前工作的公司或您正在使用的代码的原作者得出您的编码标准。编码样式通常用于特定的程序语言,并且一种编码语言中的一些样式可能不被认为适合于其他编程语言。当然,一些编码标准可以应用于许多不同的程序语言。

You might derive your coding standards for the current company you work for or from the original author of the code you’re working on. Coding styles are often used for specific program languages and some styles in one coding language might not be considered appropriate for others. Of course some coding standards can be applied across many different program languages.

感谢您的时间。

编辑:我们知道有很多相关文章,但 C#编码标准/最佳做法在SO有一些非常有用的链接,在那里值得一游。 (通过ESV查看.NET / C#指南上的2个链接 - 接受答案)

As we know there are many related articles on this subject, but C# Coding standard / Best practices in SO has some very useful links in there which is worth a visit. (Check out the 2 links on .NET/C# guidelines by ESV - Accepted Answer)

推荐答案

C ++ 这里,我有时咨询。只要阅读解释和推理,尽管你最终是否同意某些风格,可能会教你一些你可能没有想过的事情。

Google has a posted style guide for C++ here which I consult sometimes. Just reading through the explanations and reasoning, despite whether you end up agreeing with some of the styles or not, may teach you some things you might not have thought about.

这篇关于你有任何好的建议/链接到一套编码标准或最佳实践吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆