应用程序代码也往往捕获并转换异常,其间常常废弃许多详细信息。
Application code also tends to catch and translate exceptions, usually discarding many details in the process.
图9:废弃—通过被删除的代码行数进行测量。
另一方面,无效的,废弃的代码只会使程序变得拥挤不堪,难于阅读和理解,所以还是删掉的好。
On the other hand, dead, unused code only clutters a program and makes it harder to read and understand, so delete it.
应用推荐