HN user

ftr1200

84 karma
Posts2
Comments26
View on HN

I have thought about this a lot. I was going to do some stuff with gzip, but fundementally, I came to the conclusion that the most elegant solution (no hidden chars / extra encoded data coupled with export) might actually be training a neural net to do it. Also, this would mean being able to import diagrams that weren't even made on Cascii. Training data can be self-generated too.

Perhaps a good middle ground would just be offering the gzip dump.

Nice! Yea it should be easy to use the internal layerManager.import and .encodeAll

This might break state for the online version, but I can do some tweaks and get it merged if you open the PR.

to be clear, the short url feature is useful in that other people can easily edit / update diagrams they see referenced in code comments. If privacy is a concern and you're not distributing the diagram, then indeed exporting JSON is a good way to go.

I know it's controversial to do things this way, but given it's a personal project and focuses on portability, I think the benefits are worth while.

I have taken care to break things up, comment, etc - if you start at main(), you may find it's not any more difficult to follow than if i'd broken it up. Just because it's one file doesn't mean it doesn't separate concerns.

Glad you asked. Have you checked the online version https://cascii.app

There, all exported drawings come with a short link. This is so that months later anyone reading / seeing can edit their own copy online / keep it up to date.

You can also create an account to manage your own drawings.

Side note - when you use real pasting, it will not remember meaningful information (that's very hard to do elegantly). In your example, I'm guessing that 3x3 table you pasted in could not be properly edited like a table again. Hence, use short links so that Cascii remembers state.

Calendar.txt 1 year ago

ha, well, nothing to hide to that extent.

I don't know about Keep, but it's another app, which is kind of my point - I already use Gmail.

Calendar.txt 1 year ago

I use my Gmail drafts as permanent, in-sync notes (with subject as the title of each note) Why?

- No extra app needed

- Keeps them quite hidden / private / secure

- Always easy access (I always have emails open)

- In sync with different devices