Skip to content
EntityQ1047561· pop 30· linked from 50 articles

面条式代码

Sign in to save

Also known as spaghetti program

pejorative phrase for source code that has a complex and tangled control structure reminiscent of spaghetti

Wikidata facts

Image
Spaghetti Rules Or Business Rules.png
Sources (1)

via Wikidata · CC0

Article · 中文

面条式代码(Spaghetti code)是软件工程中反面模式的一种,是指源代码的控制流程复杂、混乱而难以理解,尤其是用了很多GOTO、例外、线程、或其他无组织的分支。其命名的原因是因为程式的流向就像一盘麵一样扭曲纠结。面条式代码的产生有许多原因,例如没有经验的程序设计师,及已经过长期频繁修改的复杂程序。结构化编程可避免面条式代码的出现。

Abstract from DBpedia / Wikipedia · CC BY-SA

Connections

Categories