!avYyleMexqjFHoqrME:nixos.org

Nix Documentation

437 Members
Discussion about documentation improvements around the Nix ecosystem92 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
11 Aug 2023
@asymmetric:matrix.dapp.org.ukasymmetricjust to be clear: i'm arguing for soft line breaks (a newline inserted by the editor) at some arbitrary column, say 8007:55:49
@Minijackson:matrix.orgMinijackson
In reply to @asymmetric:matrix.dapp.org.uk
just to be clear: i'm arguing for soft line breaks (a newline inserted by the editor) at some arbitrary column, say 80
I've done that for quite some time, but I found that diffs becomes unreadable, which is an issue for PRs that needs to be reviewed
07:58:38
@asymmetric:matrix.dapp.org.ukasymmetric
In reply to @Minijackson:matrix.org
I've done that for quite some time, but I found that diffs becomes unreadable, which is an issue for PRs that needs to be reviewed
do you have an example? or how do they become unreadable?
07:59:39
@asymmetric:matrix.dapp.org.ukasymmetric
In reply to @Minijackson:matrix.org
I've done that for quite some time, but I found that diffs becomes unreadable, which is an issue for PRs that needs to be reviewed
* do you have an example? or could you explain how they become unreadable?
07:59:52
@Minijackson:matrix.orgMinijacksonthere's some example here: https://rhodesmill.org/brandon/2012/one-sentence-per-line/08:02:46
@Minijackson:matrix.orgMinijackson
-The beauteous scheme is that now, if you change
-your mind about what a paragraph should look
-like, you can change the formatted output merely
-by changing the definition of ‘‘.PP’’ and
-re-running the formatter.
+The beauty of this scheme is that now, if you
+change your mind about what a paragraph should
+look like, you can change the formatted output
+merely by changing the definition of ‘‘.PP’’
+and re-running the formatter.
08:02:58
@Minijackson:matrix.orgMinijackson * there's an example here: https://rhodesmill.org/brandon/2012/one-sentence-per-line/08:03:44
@osslate:fsfe.orgosslate

I liken it to: imagine a program written in something like Nix or C. Now, imagine instead of one statement per line, the entire program was smushed together, with newlines only occurring at the 80 col mark.

...now, imagine receiving a substantial PR to change something in that spaghetti :D

08:04:37
@alejandrosame:matrix.orgalejandrosame infinisil: I'm already part of NixOS/nixpkgs-maintainers -> https://discourse.nixos.org/t/join-the-package-maintainer-team/3751/68?u=alejandrosame 08:38:03
@asymmetric:matrix.dapp.org.ukasymmetric
In reply to @osslate:fsfe.org

I liken it to: imagine a program written in something like Nix or C. Now, imagine instead of one statement per line, the entire program was smushed together, with newlines only occurring at the 80 col mark.

...now, imagine receiving a substantial PR to change something in that spaghetti :D

I’m not saying new lines should only be at the 80 column mark, people are free to break after each sentence according to semantics, presentation, etc
09:09:56
@asymmetric:matrix.dapp.org.ukasymmetricBut the 80 column mark provides an upper bound for sentence length09:10:24
@osslate:fsfe.orgosslate
In reply to @asymmetric:matrix.dapp.org.uk
But the 80 column mark provides an upper bound for sentence length
How do you determine the "correct" upper bound for sentence length?
09:14:20
@osslate:fsfe.orgosslateDocumentation isn't poetry 😅 editing is very intuition based (beyond style guides which cover grammar, voice, correct spelling/case for terms)09:16:47
@osslate:fsfe.orgosslateAlso considering that a defined column length will be inclusive of markup (code segments, bold, italic, etc.) which isn't ideal either09:19:15
@osslate:fsfe.orgosslate Contradicting myself here after saying "documentation isn't poetry", but a real metric that can be used is word count in an individual sentence. Column wrapping isn't useful to get that metric, though 09:24:31

Show newer messages


Back to Room ListRoom Version: 6