At best this caused hard to maintain code and at worst brittle code that fails when new types in the enterprise extend existing types.
即使最好的情况下这也会带来代码维护的困难,而最坏的情况当企业扩展现有类型而引入新类型时,脆弱的代码就会失效。
While metaprogramming is powerful, using it well takes experience and the resulting code tends to be hard to understand, maintain, and debug.
元编程十分强大,但是使用它需要经验,而且会导致代码变得难以理解,维护和调试。
Overly complex code is hard to test and maintain, which means it usually has a higher incidence of defects.
过于复杂的代码难以测试和维护,这通常还意味着更高的出错率。
To use an ancient expression from the 1970's, which only John and I will appreciate, it's really hard to grok what that code is doing, to understand what it's trying to make happen.
我和约翰都会同意,70年代的一句话来概括,那就是很难理解编码的内容,以及它想要完成的工作。
应用推荐