有关编程相关主题的大图或指南?

发布于 2024-10-25 17:41:39 字数 204 浏览 1 评论 0原文

我想知道是否有人可以概述以下主题和其他未提及的主题如何相关:

  • “代码重用”
  • “重构”
  • “设计模式”
  • “编码/编程标准/风格”
  • ......

我听说过这些人们的谈论和书名,却被这些名字淹没了。我可以从这里得到一些组织和大局吗?

谢谢和问候!

I was wondering if someone could give a big picture of how the following topics and others not mentioned are related:

  • "code reuse"
  • "refactor"
  • "design pattern"
  • "coding/programming standard/style"
  • ...

I have heard of these from people's talk and books' names, but got overwhelmed by these names. May I get some organization and big picture from here?

Thanks and regards!

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

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

发布评论

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

评论(2

唠甜嗑 2024-11-01 17:41:39

我认为你需要买一本戴夫·托马斯和安迪·亨特的《实用程序员》。还有很多其他好书也试图将事物联系在一起,但这是一个很好的起点。

I think you need to buy a copy of Dave Thomas and Andy Hunt's "The Pragmatic Programmer". There are plenty of other good books that also try to tie things together, but that's an excellent place to start.

梦幻之岛 2024-11-01 17:41:39
  • “编码标准”是源文件的样子,使用多少个空格或制表符。大写/小写等等。
  • “设计模式”是代码的结构、数据结构和算法。
  • “重构”是改变代码结构同时保留其行为的过程。通常重构的动机是将代码构建为众所周知的“设计模式”。
  • “代码重用”通常是成功重构所带来的好处。也就是说,您的源文件包含与一组内聚功能相关的代码。您已经消除了代码中的其他问题,这样您就不再担心在其他地方使用该代码时会带来额外的负担。
  • "coding standard" is what the source file looks like, how many spaces or tabs to use. Uppercase/lowercase and so on.
  • "design pattern" is the structure of the code, the data structures and algorithms.
  • "refactor" is the process of changing the structure of the code while preserving its behavior. Usually the motivation for refactoring is to structure the code into well known "design patterns".
  • "code reuse" is typically the bonus you get from successful refactoring. That is when your source file has code related to a cohesive set of features. You have eliminated other concerns from the code so that you no longer worry about the extra baggage you bring along should you try to use the code somewhere else.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文