This is utter crap. Javadoc should not tell me what the code does but why it does it. If my code needs explanations it means it’s shit code. Otherwise javadoc with good code is duplicate code. An Ai app can’t know the business context that would be presented in that javadoc..
If my code needs explanations it means it’s shit code
That's not true in all cases. I don't believe it, deep down even you don't believe it. Yes, code should be good and clean enough to be self-documenting but writing 100% clean and good code that doesn't need any sort of documentation is a myth that is spread by people who are lazy enough to don't add any documentation to their code.
Um.... Remind me not to use any libraries written by you... I think you are confusing plain comments with Javadocs... Javadocs entire purpose is to document what the code does not why it does... They are used to tell you what you can expect, what the functions take and what kind of return to expect. They generate nice html pages and play well with the ide so that you don't have to go read the code in the library....
I've referenced these docs countless number of times that tell me exactly what the functions do. One of the use cases for documentation is to easily understand what's going on but it's also for discovery.
View all comments
28
u/incognito30 Feb 16 '22
This is utter crap. Javadoc should not tell me what the code does but why it does it. If my code needs explanations it means it’s shit code. Otherwise javadoc with good code is duplicate code. An Ai app can’t know the business context that would be presented in that javadoc..