真的面向对象吗?为什么我发现了大量的冗余代码?

作者: yansheng836创建于 2020年8月13日更新于 2023年3月31日

In general, when similar code blocks appear more than once, we consider whether we can integrate the code block into a method or a class. However, in this project, I found a lot of duplicate content, as shown in the following image: image Is this to declare copyright? Choosing a suitable open source agreement might be a better choice! Each article has a large amount of similar code at the beginning and end, have you ever considered whether this might cause visual fatigue?

内容来源: h2pl/JavaTutorial