什么是“生产级代码”?

发布于 2024-09-27 03:46:06 字数 1459 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

感受沵的脚步 2024-10-04 03:46:06

生产级代码具有许多示例代码或一次性项目中的代码所没有的属性。例如

  • 错误处理
  • 边缘情况条件处理
  • 可移植到多个平台
  • 经过深思熟虑的变量、函数、方法、类、参数等的命名
  • 可测试性
  • 文档
  • 优化代码空间或速度
  • 用户界面考虑因素

而不是许多陈述事物的教科书示例例如“为简单起见未显示错误处理”。

Production-level code has many attributes that example code or code from throwaway projects would not have. Such as

  • error handling
  • edge case condition handling
  • portable to multiple platforms
  • well thought out naming of variables, functions, methods, classes, parameters, etc.
  • testability
  • documentation
  • optimizations for code space or speed
  • user interface considerations

as opposed to many text book examples which state things like "error handling not shown for simplicity".

浊酒尽余欢 2024-10-04 03:46:06

它是为了表明您在大学/学校/为了好玩而编写的代码与您为了赚钱而编写的代码之间的区别;大部分只是注重细节,但变化是显而易见的。

It's to signify the difference between code you might write at university/school/for fun and code you write for money; mostly just attention to detail but the change is noticeable.

国产ˉ祖宗 2024-10-04 03:46:06

这意味着该公司最近雇用了一个写垃圾的人,并且他们正在努力防止这种情况再次发生。

It means that the company recently hired someone who wrote garbage and that they're trying to keep it from happening again.

傲娇萝莉攻 2024-10-04 03:46:06

如果有人在面试中问我有关“生产级代码”的问题,我会根据我当前/过去的工作经验参考项目。这将是我简历中详细介绍的公司项目。这还可能包括 CodePlex 或其他类似项目,其中已发布稳定的工作版本以供使用别人。

我不会谈论演示、概念验证等……我会谈论由其他人编写、部署和使用的项目。

If someone asked me in an interview about "production level code", I would reference projects based on my current/past job experience. This would be projects for companies that are detailed on my resume. This could also include CodePlex or other similar projects where a stable working build has been released for consumption by other people.

I wouldn't talk about demos, proof-of-concepts, etc., etc...I would talk about projects that were written, deployed and used by someone else.

就此别过 2024-10-04 03:46:06

通常,“生产级代码”可能意味着您使用软件开发工具(例如源代码控制或测试/验证)的能力,而不是通常只在小型项目中使用 IDE 或命令行工具的学生。

Often 'production-level code' can mean your ability to use software development tools such as source code control or testing/validation as opposed to a student who has often only used an IDE or command line tools for small projects.

鲸落 2024-10-04 03:46:06

我认识一些人,他们从未将任何实质性代码投入到任何产品的生产版本中。构建大量原型既简洁又有趣,但在您发布支持代码之前,这都是理论练习。

发布这些帖子的人可能并不想要这种“体验”。

I've known a couple of people that never got any substantial code into production releases of anything. Building lots of prototypes is neat and fun and all, but until you release and support code, it's all a theoretical exercise.

It may be that people who placed those postings don't want that kind of 'experience'.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文