3 ms·
> saying that code commenting is an outdated practice and code should be self commenting Commenting is in no way outdated; it's an essential part of "self-docu
by Rochus 3y ago
> saying that code commenting is an outdated practice and code should be self commenting
Commenting is in no way outdated; it's an essential part of "self-documenting code"; of course the comments shall not duplicate what a sufficiently skilled developer can read directly from the code, but give information about why the code is there. It also depends on the programming language in use; C can be very cryptic at times, so comments are useful; also assembler requires a lot of comments to be human comprehensible. Higher level languages need less code comments. Even Brooks himself states in "The Mythical Man Month": "I find myself being briefer in comments to an APL program, which will live on a disk, than on a PL/I one that I will store as cards.".