English 中文(简体)
这一共同方案拟定错误究竟属于哪位支持者
原标题:What antipattern does this common programming mistake fall under

方案拟订项目

更不用说,在很多地方,例如......,方案管理员对类似职能的名称不同。

int ask_bro_4_data();

页: 1

int ask_mom_for_data();

这代表了谁? 基本上,它缺乏标准化的权利? 如同一项功能一样,另一项功能使用4。

同样,方案管理员也可以以某种方式点名与其使用有关的变量,但在每一种情况下都未能点名,或者以非标准方式表示。 这使得在大型法典中对这些变量的检索更加困难,因为这些变量可能跟不上你假设的命名条件。

任何想法? 出于模糊不清的名声,但我不敢肯定这个问题是什么。

问题回答

这将被视为比一种规律更重要的公约。

英语将使我们能够规定使用比数字更优惠的措辞,以便改进可维持性。 然而,根据你的同行群体,公约可以有很大的不同。

设计模式将被视为一种解决办法,旨在解决特定情况下提出的共同问题。

例如,我希望确保我的申请只能与某类人员相同。 解决这一问题的基本模式是单一州。

如果解决办法产生的问题比解决办法多,那么它就成为一个反家长。

例如,单一州很难进行单位测试,因此,许多人认为自己是反家长。

Anti-Pattern: Rename later

当方案管理员认识到他或她的同事在后来点名和决定做些什么时,或者说根本就做事并不重要。

可通过以下方式应对:

  • clear guidelines from the team about what to strive for in respecting naming conventions,
  • recognizing that refactoring is an ongoing process, parallel to the coding.
  • simple IDE commands that afford the user after thinking oh we used "4" here and "for" here, that s disturbing *Ctrl+R Ctrl+R* ah that s better *continues coding.*




相关问题
vectors vs. vector graphics

What (if any) is the relationship between vectors used in programming languages (e.g. arrays) and vector graphics? Why do they share the term vector? Does it represent some analogous aspect of their ...

MVC and Property Terminology in Objective-C

I am having a problem with terminology I think. Is a ViewController the Controller portion of MVC? Or is it not the same thing. Is this combining the VC of MVC into one file? Properties like ....

Origin of "map" in Computer Science

In computer science, there are two definitions of the word map. The first is as an associative array, a type of container that maps values of one type to values of another type. An example of this is ...

Definition of the word "patch"

Personally, I use the word "patch" as the software equivalent of a symptomatic treatment, which makes a patch a quick-and-dirty bugfix. However, I m not sure this is correct, because I often see it is ...

What is Facet in JavaEE?

I wonder not only what is Facet but also what is Facet in physical level (as I understand it s not a separate jar, but what?)? I also wonder how can it affect my application after deploying. I ll ...

What is the meaning of "POSIX"?

What is POSIX? I have read the Wikipedia article and I read it every time I encounter the term. The fact is that I never really understood what it is. Can anyone please explain it to me by explaining ...

Term for rotating header

I m looking for terminology that describes this behavior: The header of a web-page contains a different image every time you visit it. Update: It is not an advertisement, but images related to the ...

热门标签