benchexec icon indicating copy to clipboard operation
benchexec copied to clipboard

WIP: Improveme Documentation

Open incaseoftrouble opened this issue 1 year ago • 8 comments

fixes #999

Changes:

  • Relative links in the Markdown
  • Semantic one-line=one-sentence formatting
  • Prominent distinction between BenchExec, benchexec, and runexec
  • Brief usage instructions for both tools
  • Separate python API doc file
  • Restructure the benchexec description

Probably not finished yet, but maybe give it a read.

incaseoftrouble avatar Mar 24 '24 16:03 incaseoftrouble

Thanks!

The mixture of technical changes, new text, improvements, and move of text all in one commit makes it somewhat hard to review, though. For example, it is not visible whether the moved text is changed at the same time or not. Would it be possible to split the commit from this PR into independent commits, one for each part of the PR? (as identified in the PR description)

Semantic one-line=one-sentence formatting

This is something that we prefer to keep as it was: lines should not be too long, and thus line breaks should be added at semantically fitting places (like clauses of a sentence). Short lines make it easier to work with the text, for example when looking at diffs. So I would like to ask you to revert these changes and write new text in the same style as the existing text.

PhilippWendler avatar Apr 02 '24 15:04 PhilippWendler

This is something that we prefer to keep as it was: lines should not be too long, and thus line breaks should be added at semantically fitting places (like clauses of a sentence). Short lines make it easier to work with the text, for example when looking at diffs. So I would like to ask you to revert these changes and write new text in the same style as the existing text.

To be honest, I would need a sensible rule to do that. I tried to infer something from the existing text but I couldn't find something that generally worked. I can try in a best-effort way.

Would it be possible to split the commit from this PR into independent commits, one for each part of the PR? (as identified in the PR description)

Most of these mutually depend on each other. I can give it a try but I don't see too many possible splits.

incaseoftrouble avatar Apr 02 '24 15:04 incaseoftrouble

This is something that we prefer to keep as it was: lines should not be too long, and thus line breaks should be added at semantically fitting places (like clauses of a sentence). Short lines make it easier to work with the text, for example when looking at diffs. So I would like to ask you to revert these changes and write new text in the same style as the existing text.

To be honest, I would need a sensible rule to do that. I tried to infer something from the existing text but I couldn't find something that generally worked. I can try in a best-effort way.

Simply keep the lines not too long (~80 characters is good) and break the lines at those places where it matches the sentence structure, i.e., prefer line breaks between two clauses instead of inside one of them. This is basically the same as line breaks for code, where one also keeps inner expressions on one line as long as possible and prefers to add line breaks as far towards the root of the AST as possible. (Just no indentations for text.)

PhilippWendler avatar Apr 02 '24 15:04 PhilippWendler

Ok, this makes the diffs very tricky to look at, but I will try :)

incaseoftrouble avatar Apr 02 '24 15:04 incaseoftrouble

Attempted in #1029

incaseoftrouble avatar Apr 02 '24 21:04 incaseoftrouble

Ok, this makes the diffs very tricky to look at, but I will try :)

Hm? The whole idea of this is that it makes diffs easier to read if the lines are not so long (for example on GitHub, which does not provide a word diff).

PhilippWendler avatar Apr 03 '24 04:04 PhilippWendler

Hm? The whole idea of this is that it makes diffs easier to read if the lines are not so long (for example on GitHub, which does not provide a word diff).

Well, one of the many points: If the first word in a sentence / paragraph is changed, this cascades and adds several changed lines / artificial changes.

I have strong opinions on hard wraps in text, but anyway this is moot - the style for benchexec is 80 col wrap so lets follow it :)

incaseoftrouble avatar Apr 03 '24 06:04 incaseoftrouble

Hm? The whole idea of this is that it makes diffs easier to read if the lines are not so long (for example on GitHub, which does not provide a word diff).

Well, one of the many points: If the first word in a sentence / paragraph is changed, this cascades and adds several changed lines / artificial changes.

No, don't do this. If the first word in a sentence is changed, then either keep the changed line as is even if it is longer or just break that line. Don't cascade.

PhilippWendler avatar Apr 03 '24 06:04 PhilippWendler

I guess this can be considered as superseded by #1044 and closed?

PhilippWendler avatar Jun 07 '24 12:06 PhilippWendler

I think there are some points in there but I would have to have a separate look, would definitely end up being a new PR

incaseoftrouble avatar Jun 07 '24 12:06 incaseoftrouble