The general rule of thumb is that if there's more than one try-block's worth of code in a method, then the method is too big and should probably be broken up into smaller methods anyway.
主要的实践经验是:如果一个方法中存在多个try块,那么就表明方法过于庞大,应拆分为多个较小的方法。
"The scale of the project is so broken down that it almost looks like a bundle of homes rather than a big new building," he said.
他说:“这个项目的规模是如此之大,以至于它几乎看起来像是一捆房子,而不是一座新的大房子。”
应用推荐