Live data from Hacker News

Write plain text files

sive.rs

371–380 of 425 posts

Re: Write plain text files

#371

Earlier quoted context omitted.

The biggest UX sin of Git is that rebasing is featured so prominently. If you had just done a normal merge commit then Git could have realized the common history, done a three-way merge, and resolved the conflict automatically. But no, people always seem to insist on that linear history is the only concern that matters, explicitly delete the history, and then wonder why Git is so annoying and easy to screw up. Maybe…

When I have a chain of commits pending review on Gerrit, and I fixed some flaws in the first commit in chain and need to rebase the dependent commits, merging is not an option. And rightly so: when I look at the master branch, I don't want to see random corrections someone made during review, they're just irrelevant once the reviewed changes are merged. There are many reasons why linear history is important. Rather t…

> When I have a chain of commits pending review on Gerrit, and I fixed some flaws in the first commit in chain and need to rebase the dependent commits, merging is not an option.

No, you just add it at the end of the commit chain?

> And rightly so: when I look at the master branch, I don't want to see random corrections someone made during review, they're just irrelevant once the reviewed changes are merged.

git log actually has the --first-parent for this, which hides all of the commits that were merged into the branch, without destroying the history when you try to go back and try to understand why the choices were made. The idealized version of history created by constant rebasing serves neither purpose.

> Rather than saying that "you shouldn't want to do that", I'd prefer it if the tools people use were fixed to better serve the things people actually want to do.

Agreed, tools that cope poorly with merges should be fixed, rather than forcing people to hack around it by rebasing.

> None of those issues is better handled by merging than by rebasing.

Not quite, rebasing generates more false positives, since it tries to merge every intermediate commit instead of only looking at the end states and the common ancestor.

Re: Write plain text files

#372
post #20

This is one of the main strengths of Obsidian, which I have been using lately and I’m extremely happy with: everything is just Markdown files in some folder on disk. Zero danger of lock in. You can have a disk hierarchy if you desire, or trust that search will find you what you are looking for. For me search works fairly well and if I need something extra I can just grep/sed/awk. Plus it has the features that a simpl…

Obsidian looks interesting, but how do you sync between devices? Their sync service seems really expensive. On desktop I guess you can use git/Dropbox plugin, but what about mobile? I take a lot of notes on my Android phone.

Re: Write plain text files

#373
post #35

Another advantage to plain text files: source control. You can check your writing into git and get a history of all your edits. It’s something programmers take for granted, but it would be amazing if this got more widely adopted outside of tech. The number of files with names like “Report Final Final draft v3.docx” is truly staggering. “Git for everything“ would be a multi-billion dollar startup easily.

[deleted]

Re: Write plain text files

#374
post #249

Earlier quoted context omitted.

Is SVG too complex to be portable across systems and preserved across time? It does remind me that EPUB, the ebook format, has potential: It's essentially, as I understand, HTML, CSS, and some metadata files, structured according to the specification, all in a zip file. It's already a standard, though AFAICT not quite stable. https://www.w3.org/publishing/groups/epub-wg/

If you've tried opening up lots of epub files (I have), you'll soon learn that there are a huge range of layouts and ugliness under the hood. Yes it's HTML, and therefore you can preserve a good portion of the knowledge even if you didn't have an ereader (though you need zip), but it would still be a pain to extract and reformat at scale. Disclaimer: I probably spend too much time thinking about this from a 'long now…

> Disclaimer: I probably spend too much time thinking about this from a 'long now' perspective.

That's great! What have you come up with?

AFAICT, PDF - or PDF/A - is currently the only good format for long-term text document (e.g., books) preservation. It's the only format that's stable over the long-term (at least PDF/A is), it's the only universally supported format, and it's the only option with stable annotations (which is essential to me).

The major downside is that the actual text is hard to extract and integrate with other functions. That's why I have hopes for epub.

Re: Write plain text files

#375

I just use Google Docs, I can access it on any consumer computer and I’m pretty sure there’s an offline mode.

I agree. Google Docs is mediocre at WYSIWYG and interoperability, but boy does it solve long term storage. I don't have to worry about paying for Dropbox or having local files that I can't search quickly unless I am on a Mac with Spotlight or have full indexing on Windows or the Linux equivalent. I don't have to worry about the folder structure and the files can't vanish with an SSD failure. And, unlike text files, i…

Right, I like my raw data in the places it’s needed because the world isn’t perfect and sometimes we have less resources.

I can’t shake the ridiculous feeling that comes with typing plaintext journal entries on a gaming pc.

Re: Write plain text files

#376
post #35

Another advantage to plain text files: source control. You can check your writing into git and get a history of all your edits. It’s something programmers take for granted, but it would be amazing if this got more widely adopted outside of tech. The number of files with names like “Report Final Final draft v3.docx” is truly staggering. “Git for everything“ would be a multi-billion dollar startup easily.

I once thought git for humans would be a great idea but never got around to speccing it out. Later on, a lawyer friend showed me the software they used 'for backup' (that they paid thousands per month for) and it turned out everything about it was just exactly like SVN. The terminology was different, the UX was laser focused to the intended users, but at the end of the day it was commits, syncs, merging, pretty much…

What was the tool called? We're currently looking to solve a problem for a client to better manage contract negotiation between his lawyers and the purchaser's lawyer (apartment units). ATM it's all done via email but I imagine there'd be heaps of tools out there.

Re: Write plain text files

#377

Earlier quoted context omitted.

HTML works quite well for images and text placement. Latex (and its derivatives) work even better. Word isn't bad, so long as you keep paying your subscription.

> " Word isn't bad, so long as you keep paying your subscription. " Web Word is free, like Google Docs is. (Meaning, it costs your credentials and data rather than your money). https://www.techradar.com/uk/how-to/how-to-download-and-use-... https://www.microsoft.com/en-us/microsoft-365/free-office-on...

> Web Word is free, like Google Docs is. (Meaning, it costs your credentials and data rather than your money).

For now. You don't know if and when Microsoft's business model is going to change.

Re: Write plain text files

#378
post #336

Earlier quoted context omitted.

I once thought git for humans would be a great idea but never got around to speccing it out. Later on, a lawyer friend showed me the software they used 'for backup' (that they paid thousands per month for) and it turned out everything about it was just exactly like SVN. The terminology was different, the UX was laser focused to the intended users, but at the end of the day it was commits, syncs, merging, pretty much…

I had a similar thought some time ago and concluded it's an impossible task. The problem is that it would need to understand every file format its users care about and be able to represent changes in a useful way. How do you merge destructive edits to image files?

git-lfs with appropriate file types set to use it.

Re: Write plain text files

#379

I disagree with the whole "NEED VISUALS OR GRAPHICS?" section. I do need visuals! I do need graphics! I'm not a typewriter, why must my flow be interrupted with me having to leave my document to open some JPEG file whenever I need to show something that isn't text? It's not like this is crazy difficult or requires proprietary apps either. Writing a modern browser may be an impossible feat but I'm certain that it woul…

> but I'm certain that it would take just a day or two to get a very simple barebones HTML renderer which supports and a couple of formatting options. https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect This tells me you've never actually tried this. For example the img tag allows you to, amongst other things, render an svg. If you want a more full spec you can see here what it takes to render an img element:…

What I said right before the part you quoted was "Writing a modern browser may be an impossible feat" and the part you quoted talks about a "barebones HTML renderer". What I'm describing is labels and images in a VStack. This is something any operating system UI toolkit (open source ones too!) can do.

Re: Write plain text files

#380
post #253

> NEED HIERARCHY? Use directories — also known as folders. I really wish I could define a custom order for files in a directory. A folder hierarchy is almost an outline, but not quite. Yes I could prefix with "01", "02", and sort alphabetically, but those are cumbersome workarounds and reordering is a pain. Are there file systems that allow for a custom order of files/folders?

> Yes I could prefix with "01", "02", and sort alphabetically, but those are cumbersome workarounds and reordering is a pain.

BASIC line numbering:

  010_...

  020_...

  030_...
Post reply on HN