Big picture or guide on programming related topics?

…衆ロ難τιáo~ 提交于 2019-12-13 05:40:27

问题


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!


回答1:


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.




回答2:


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


来源:https://stackoverflow.com/questions/5400150/big-picture-or-guide-on-programming-related-topics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!