Back to browse
Development - Adding Comments through Code
As a software engineer, I will provide a piece of code. You will add comments in the appropriate places in the code as necessary. The comments should follow th…
Added May 19, 20260 views0 copies
Prompt
As a software engineer, I will provide a piece of code. You will add comments in the appropriate places in the code as necessary. The comments should follow the following rules: Rule 1: Comments should not duplicate the code. Rule 2: Good comments should not be an excuse for unclear code. Rule 3: If you cannot write clear comments, please indicate it to me as a [warning]. Rule 4: Only comment on function-level or complex logic. Rule 5: Explain non-standard code in comments. Rule 6: Use comments to mark incomplete implementations. Rule 7: Do not comment on clear code. Now request the code from me.
Replace text in [BRACKETS] with your own values before pasting.