Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

真的面向对象?为何我发现大量了冗余代码? #26

Open
yansheng836 opened this issue Aug 13, 2020 · 1 comment
Open

真的面向对象?为何我发现大量了冗余代码? #26

yansheng836 opened this issue Aug 13, 2020 · 1 comment

Comments

@yansheng836
Copy link

一般而言,当相似的代码块出现两次以上时,我们就会考虑是否可以将该代码块整合成一个方法,或者是类。

可是在该项目中,我发现了大量重复内容,如下图所示:
image

是为了声明版权吗?选择一个合适开源协议或许会是更好的选择!

每一篇文章头、尾都含有大量的类似代码,有没有考虑过这样是否会造成视觉疲劳?

@h2pl
Copy link
Owner

h2pl commented Mar 31, 2023

你的建议很中肯,我会进行修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants