Managing highly repetitive code and documentation in Java

后端 未结 9 658
南旧
南旧 2020-11-30 22:53

Highly repetitive code is generally a bad thing, and there are design patterns that can help minimize this. However, sometimes it\'s simply inevitable due to the constraints

9条回答
  •  抹茶落季
    2020-11-30 23:28

    I get that Sun has to document like this for the Java SE library code and maybe other 3rd party library writers do as well.

    However, I think it is an utter waste to copy and paste documentation throughout a file like this in code that is only used in house. I know many people will disagree because it will make their in house JavaDocs look less clean. However, the trade off is that is makes their code more clean which, in my opinion, is more important.

提交回复
热议问题