Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid incorrect or conflicted documentation-like files. #1560

Open
yangby-cryptape opened this issue Nov 15, 2023 · 1 comment
Open

Avoid incorrect or conflicted documentation-like files. #1560

yangby-cryptape opened this issue Nov 15, 2023 · 1 comment
Labels
d:confirmation Discussion required to confirm whether it's a bug document P-Low Priority

Comments

@yangby-cryptape
Copy link
Collaborator

yangby-cryptape commented Nov 15, 2023

Description

Please Answer these Questions before continue.

  • As a reviewer, would you check the generated file by yourself, before you click the approval button?
    p.s. I won't.
  • Have you ever did that, even once?
    p.s. I haven't.

Continue ...

Documentation has no binding effect, just fake oneself, to pretend that he has done something to keep things right, but actually did nothing. "No-developers-cared", "users-will-be-fooled", "passively-maintained" documentations, like $\text{wanks}$: no one gets benefit except the owner who feel his is huge.

I don't have to imagine a bad case, since I have already experienced those sucked and useless documentations.

Even no documentations are better than incorrect documentations.

I think there are 3 ways which could resolve this problem.

  • Add a CI check to check those generated files if they could.
  • Generated those source codes in compile-time (build.rs) from the original files if they could.
  • Remove all files which are used as documentations, to force users to read the source codes.
    At least, source codes have a better probability to be correct.

☢️ Pay Attention

Incorrect documentations don't due to the developers: how could they know two unrelated files are related?

Concrete Cases

@yangby-cryptape yangby-cryptape added the d:solution Discussion required for the solution. label Nov 24, 2023
@Flouse
Copy link
Contributor

Flouse commented Nov 24, 2023

Even no documentations are better than incorrect documentations.

I think there are 3 ways which could resolve this problem.

  • Add a CI check to check those generated files if they could.
  • Generated those source codes in compile-time (build.rs) from the original files if they could.
  • Remove all files which are used as documentations, to force users to read the source codes.
    At least, source codes have a better probability to be correct.

Need confirmation before PRs


@yangby-cryptape if the solutions are confirmed, would you like to take over this mission?

@Flouse Flouse added d:confirmation Discussion required to confirm whether it's a bug and removed d:solution Discussion required for the solution. labels Nov 24, 2023
@Flouse Flouse added the P-Low Priority label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
d:confirmation Discussion required to confirm whether it's a bug document P-Low Priority
Projects
None yet
Development

No branches or pull requests

2 participants