Listing 10 provides an example of spaghetti code.
清单10提供了意大利面条式代码的示例。
which, when used on a larger scale, can lead to hard to read spaghetti code.
当在大型应用程序中使用回调函数,就会导致编写出很难阅读的意大利面式代码。
You can imagine the spaghetti code when dealing with all of the browsers it must support.
您可以想象一下处理所有支持的浏览器的代码大拼盘。
Spaghetti code: Systems whose structure is barely comprehensible, especially because of misuse of code structures.
面条代码(Spaghetti code):指那些结构上完全不可理解的系统,尤其是因为误用代码。
Still, I wanted to put something together that was a little bit better designed than a few pages of 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.
这导致了许多所谓的“意大利面条式代码(spaghetti code)”,意味着许多从未在浏览器上执行过的代码被附带到浏览器。
You can avoid the equivalent of large blocks filled with spaghetti code if you think in terms of how to combine a series of narrowly scoped modules to meet the XML data needs.
如果我们着眼于如何合并一系列范围较窄的模块来满足XML的数据需求,就可以避免使用功能等同、填满小段代码的大代码块。
That's exactly how spaghetti code (where you have tangles of point programs) gets created — while it's quicker to produce, you really don't want to end up maintaining all that crud.
这正是大杂烩代码(你得到的是一堆相互缠绕的程序)产生的方式——尽管能更快的产出,但你最后真的就不会想要去维护那些垃圾了。
I now knew that if I didn't pay attention to code quality, at some point there would be a late night where I'd be fishing through a mess of spaghetti looking for the proverbial bad meatball.
现在我知道了,如果不注意代码质量,那么迟早它们会给我造成一团乱麻。
A Big Ball of Mud is a haphazardly structured, sprawling, sloppy, duct-tape-and-baling-wire, spaghetti-code jungle.
所谓的大泥球就是一个偶然结构的,伸展的,邋遢的,spaghetti代码的混合。
A Big Ball of Mud is a haphazardly structured, sprawling, sloppy, duct-tape-and-baling-wire, spaghetti-code jungle.
所谓的大泥球就是一个偶然结构的,伸展的,邋遢的,spaghetti代码的混合。
应用推荐