News for hackers. Stuff that matters.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by PragmaticPulp on Tuesday November 22, 2022 @03:12PM (#33710794)
> I know git can be tricky but it cannot be that difficult to teach people from non technical departments

This is far more difficult than you're suggesting. Git still confuses a lot of junior and mid level devs the second anything deviates from their memorized command workflow.

If you're expecting non-technical people to have to learn git just to edit the documentation, they're just not going to use it at all.

Writing and aggregating good documentation needs to be easy and simple. Gating documentation behind git is the opposite of that for non technical people.

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by nonethewiser on Tuesday November 22, 2022 @03:40PM (#33711183)
> This is far more difficult than you're suggesting. Git still confuses a lot of junior and mid level devs the second anything deviates from their memorized command workflow

Try explaining that they can't push to the repo because they cloned the http URI and need to generate an RSA token and use SSH instead. Better yet, try to figure out that's the problem when they give you a totally unhelpful version of what the problem is.

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by carom on Tuesday November 22, 2022 @05:52PM (#33712705)
Or just download Github Desktop onto their machine and show them how to use it.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by nonethewiser on Tuesday November 22, 2022 @10:30PM (#33714795)
That's true. They should never be asked to touch the cli on this scenario.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by rcarr on Tuesday November 22, 2022 @03:23PM (#33710952)
I do get what you're saying because I struggled with it for ages. There are good GUI tools like Sublime Merge for easy conflict resolution now which would be one solution. I do think a web interface that just automatically commits by just adding your text in addition to the new text along with a warning would probably be the easiest solution and then just have someone edit it after the fact. It's not been my experience that there's a hell of a lot of merge conflicts going on with documentation anyway but I could see how it could happen if you had multiple non technical people actively working on a project.

Another not great but possible solution could be for non technical people to work on something like a Google Doc when stuff is in highly active development and to then copy this to a markdown document later when its solidified.

I do think that as a society we have to start looking at stuff like this as a new essential skill though. We wouldn't expect people to be working without basic literacy, numeracy and computer skills and I think we are going to have to start looking at upgrading our sense of what basic computer skills entails to include stuff like git and teaching it in schools from an early age.

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by remus on Tuesday November 22, 2022 @03:43PM (#33711228)
I think even the idea of merging changes is a step too far for all but the most technical users. Most user's idea of what it should look like start and end at a word-like UI, so having to introduce the idea of merging different copies together and resolving conflicts is too far outside that view. In my opinion this is why Google docs has become popular because it solves that tricky problem of having to think about how your edits interact with someone else's.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by rcarr on Tuesday November 22, 2022 @03:50PM (#33711318)
I do agree that an online google doc style WYSIWYG markdown solution would be preferable for non technical and then git and markdown for technical would be the ideal solution.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by evolve2k on Tuesday November 22, 2022 @04:24PM (#33711717)
My sense is the markdown/git/render a documentation wiki with mkdocs is mostly solved. The issue is having that easy interface for non-tech folk.

And related to this is the state of WYSIWYG markdown editing.

The Basecamp folks created the very polished Trix rich-text drop-in which is a replacement for TinyMce, which while the standard seems to carry issues.

Basecamp explained the issue with most approaches as such:

> Most WYSIWYG editors are wrappers around HTML’s contenteditable and execCommand APIs, designed by Microsoft to support live editing of web pages in Internet Explorer 5.5, and eventually reverse-engineered and copied by other browsers.

> Because these APIs were never fully specified or documented, and because WYSIWYG HTML editors are enormous in scope, each browser’s implementation has its own set of bugs and quirks, and JavaScript developers are left to resolve the inconsistencies.

> Trix sidesteps these inconsistencies by treating contenteditable as an I/O device: when input makes its way to the editor, Trix converts that input into an editing operation on its internal document model, then re-renders that document back into the editor. This gives Trix complete control over what happens after every keystroke, and avoids the need to use execCommand at all.

Unfortunately Trix does not render markdown so can’t be used in a markdown documentation workflow.

Has anyone seen a decent implementation of WYSIWYG for markdown that has the necessary polish to be non-tech friendly?

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by rcarr on Tuesday November 22, 2022 @04:56PM (#33712103)
I believe Obsidian are using ProseMirror or CodeMirror, the logo is at the bottom of CodeMirror so I assume it is the latter. There was this forum post from one of the Obsidian team a few years back asking about it

https://discuss.codemirror.net/t/implementing-wysiwyg-markdo...

https://codemirror.net

https://prosemirror.net

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by andfrob on Tuesday November 22, 2022 @05:37PM (#33712546)
This would be worth checking out, which shows how CKEditor implements markdown editing: https://onlinemarkdowneditor.dev/
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by Marta_B on Wednesday November 23, 2022 @04:43AM (#33717083)
Yes, CKEditor accepts Markdown input thanks to a customizable autoformatting feature: https://ckeditor.com/docs/ckeditor5/latest/features/autoform... This allows users to employ all the familiar shortcodes on the go. It's basically the user's choice whether to type in Markdown or use the rich-text formatting buttons. Additionally, it's possible to switch the default CKEditor 5 output from HTML to Markdown: https://ckeditor.com/docs/ckeditor5/latest/features/markdown...
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by bpicolo on Wednesday November 23, 2022 @08:08AM (#33718689)
I'm technical and I still prefer WYSIWYG for writing documents. I want it to be easy for me to pull in rich content (images, info boxes, column formatting)

It's ok to be technical and not enjoy markdown, heh.

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by johnwalkr on Wednesday November 23, 2022 @06:46PM (#33726016)
Google docs works great but does require some discipline. There is always someone that starts working on a copy without telling anyone or switches to word/excel and local copies because they “need” feature x. Sometimes this is actually true, for example a legal document with esoteric numbering for headings. You’re going to buy a copy of word, not set out to explain the virtues of Google docs to your lawyer.

As much as I hate to admit it, sharepoint works better here.

On the upside for Google docs, commenting and edit suggestions work so well it’s become easier convince people to use Google docs without downloading copies.

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by jonwest on Tuesday November 22, 2022 @03:48PM (#33711293)
GitHub does offer the ability to modify files within the web UI and open a PR from there.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by joegahona on Tuesday November 22, 2022 @03:27PM (#33711016)
> Writing and aggregating good documentation needs to be easy and simple. Gating documentation behind git is the opposite of that for non technical people.

How do you find a happy medium between this and a Confluence-like free-for-all, where anyone can create/edit a page?

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by vasco on Tuesday November 22, 2022 @03:30PM (#33711051)
Most of the issues with Confluence I've seen are lack of organisation, out of date information mixed with up to date pages and really poor search / discoverability. The fact that people can just edit or create a page at any point is one of the better parts because it's easy for someone to fix something up during onboarding, during a drive-by consultation etc.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by bratbag on Wednesday November 23, 2022 @02:14AM (#33716143)
Even poor discoverability can be fixed with labels.

But yes, the out of date info is a killer.

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by WorldMaker on Tuesday November 22, 2022 @03:38PM (#33711155)
There are Wiki-like interfaces for git+Markdown: GitHub's wikis, gitit, and more.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by otikik on Tuesday November 22, 2022 @03:31PM (#33711069)
Google Docs
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by stcredzero on Tuesday November 22, 2022 @03:45PM (#33711252)
> This is far more difficult than you're suggesting. Git still confuses a lot of junior and mid level devs the second anything deviates from their memorized command workflow

Given the number of non-programmers who Really Need the functionality of git, who probably won't be able to hack dealing with it, doesn't this indicate that there's some huge vein of untapped value to be won by whomever cracks the problem? (Version control for business people?)

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by user3939382 on Tuesday November 22, 2022 @03:47PM (#33711272)
The Google Docs/Sheets version history strikes a pretty good balance of friendliness and power. The biggest weakness I've seen with it in the hands of non-technical users is that they don't know it's there.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by jorgesborges on Tuesday November 22, 2022 @04:21PM (#33711681)
In fact you lost non-technical people at Markdown.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by pxc on Tuesday November 22, 2022 @04:59PM (#33712145)
Non-technical people used to learn bits of HTML just to get sparkly backgrounds on their MySpace pages. Markdown is absolutely masterable by anyone.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by RadiozRadioz on Tuesday November 22, 2022 @05:38PM (#33712555)
> Non-technical people used to learn bits of HTML just to get sparkly backgrounds on their MySpace pages.

I'm going to take a slightly different interpretation of your comment because I think it's an interesting discussion: are the non-technical people of today less technical than the non-technical people of the MySpace days?

From what I have observed, I would say yes. If you took the bottom 10% of users back then, you might have a hope of teaching them HTML. Today? No chance. In particular I think "willingness to learn anything" has really waned.

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by yamtaddle on Tuesday November 22, 2022 @05:57PM (#33712734)
There were tons of users in the 90s who didn't have a clue how to use a computer—I mean even at a very rudimentary level—and just followed memorized or written-down steps, getting lost almost immediately if anything went wrong. Luckily for them, software was way less likely to throw up "what's new" modals seemingly at random, interrupting whatever they were trying to do, back then :-/ (edit: or to "improve" [pointlessly re-arrange] their UI while the user was away from the computer, for that matter)

If there are more of them now it's probably because computer use expanded 100 fold since then, at least, and the largely self-selected 90s users of the Web, especially, tended to have greater-than-average interest in learning computer crap, so a high proportion of new users were the can't-or-don't-want-to-learn sort. In the 90s a computer still might not be the centerpiece of an office worker or middle manager's desk, and most folks used computers very little at home, if they even had one (data I'm seeing indicates % of households in the US with a computer only hit 50% in 2000).

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by jorgesborges on Tuesday November 22, 2022 @05:13PM (#33712309)
Definitely. My thought is rather that it’s an additional point of friction that makes selling a workflow like this more difficult.
Re:The Perks of a High-Documentation, Low-Meeting Work Culture by divbzero on Tuesday November 22, 2022 @04:59PM (#33712155)
GitHub wikis or something similar can work well as an in-between option: edit in browser or git clone, whichever is easier in your context.

https://github.blog/2011-01-17-git-powered-wikis-improved/

Re:The Perks of a High-Documentation, Low-Meeting Work Culture by crazygringo on Tuesday November 22, 2022 @08:33PM (#33713966)
I disagree -- as long as you're using a git GUI front-end, you can set it up in a very straightforward manner.

And dealing with merges that involve only documentation in Markdown is similarly totally doable.

But then for actually releasing the docs, or tying them to feature commits etc., that all has to be done by actual devs. Also the creation of branches.

Also, people working on documentation in a software company aren't exactly "non-technical". They might not be full engineers but they can definitely handle files and some light version control.