关于编程相关主题的大图片或指南? [英] Big picture or guide on programming related topics?

查看:248
本文介绍了关于编程相关主题的大图片或指南?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人可以大致了解以下主题和其他未提及的内容是否相关:





  • refactor

  • 设计模式 / li>
  • ...



我听说过人们的谈话和书名,被这些名字淹没了。

解决方案

div>

  • 编码标准是源文件的外观,要使用多少空格或制表符。

  • 设计模式是代码的结构,数据结构和算法。

  • refactor改变代码结构的过程,同时保留其行为。通常重构的动机是将代码结构化为众所周知的设计模式。

  • 代码重用通常是成功重构后获得的奖励。这是当您的源文件具有与一组内聚的功能相关的代码。您已经从代码中消除了其他问题,这样您就不必担心您在其他地方使用该代码时带来的额外行李。


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!

解决方案

  • "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.

这篇关于关于编程相关主题的大图片或指南?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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