|
|
|
|
|
by TrianguloY
847 days ago
|
|
Serious questions: for those of you who say "just read the code", don't you find it useful when your IDE autocompletes what a function does? I do. And sometimes you can't even read the code! Note: I'm not talking about things that you know just by looking at the method itself, but things that are obvious when reading the code of the method only. /** This will return the data */
Data getData() {...}
This is useless, But /** This will return true iff it's not empty */
boolean isValid() {return !empty();}
This is useful. This is what a good documentation should provide, and having documentation in the code itself (that you can later extract to an html page or other) is way better than having it on a separate platform that you need to remember to update.Edit: remember that this is library that other people will use, it's not an internal tool that only your team knows about. |
|