面条代码(Spaghetti code):指那些结构上完全不可理解的系统,尤其是因为误用代码。
Spaghetti code: Systems whose structure is barely comprehensible, especially because of misuse of code structures.
这导致了许多所谓的“意大利面条式代码(spaghetti code)”,意味着许多从未在浏览器上执行过的代码被附带到浏览器。
This causes a lot of spaghetti code and implies that there will be a lot of code shipped to the browser that is never executed on the browser.
清单10提供了意大利面条式代码的示例。
应用推荐