Looks nice. https://asciiflow.com/ is a web-based alternative that's been my go-to for a decade.
Monodraw
81–90 of 218 posts
Re: Monodraw
#82Re: Monodraw
#83Earlier quoted context omitted.
If you feel the need to embed giant ASCII diagrams into a source file, I think you should just use a picture. Like a .png or .svg or something and write the documentation in another file. Or even maybe try out rich text source code.
Please don't do things like this that make it harder for people to read your comments.
Re: Monodraw
#84Re: Monodraw
#85OMG this is one of my favorite tools paid for it all the way back when it went out. Have used it so many times just to write documentation for things like: https://github.com/ivank/potygen/blob/main/packages/potygen/... ASCII is just so versatile and allows you to put nice graphics in places where one does not expect, making things more easily understandable.
Re: Monodraw
#86Earlier quoted context omitted.
I use ASCIIFlow all the time. I still haven't figured out how to get browsers to render the monospace fonts correctly see example diagram on this page: http://uggly.bytester.net/#how-it-works
Looks fine on my machine - my guess is that your primary font does not contain all the glyphs used (e.g. the box-drawing chars), so its falling back to another font just for those glyphs, causing inconsistencies.
Re: Monodraw
#87Earlier quoted context omitted.
If you feel the need to embed giant ASCII diagrams into a source file, I think you should just use a picture. Like a .png or .svg or something and write the documentation in another file. Or even maybe try out rich text source code.
Thanks! I’m sure they never thought of that! Or maybe they did, and there are advantages and tradeoffs to any approach. I’m sure your unique insight must be right, though.
Re: Monodraw
#88Earlier quoted context omitted.
Looks fine on my machine - my guess is that your primary font does not contain all the glyphs used (e.g. the box-drawing chars), so its falling back to another font just for those glyphs, causing inconsistencies.
It seems to only mess it up on mobile. Desktop Chrome seems fine. Mobile Chrome is all I've tested on.
text-size-adjust: none;
-webkit-text-size-adjust: none;
(it's infuriating that these options need to exist!)Re: Monodraw
#89I skimmed through the HN comments and see that it can be used for adding diagrams to code comments. But what else? Slack, Jira, READMEs, SMS, Signal etc all allow you to include pngs.
Re: Monodraw
#90Earlier quoted context omitted.
1. You can just “Save as” to PNG, it takes no time or effort. 2. I use to use Monodraw exclusively for making diagrams in source code, but over time I’ve become so comfortable with the tool, keyboard shortcuts, etc. that now I just use it for all diagrams. It’s a very nice tool.
If you feel the need to embed giant ASCII diagrams into a source file, I think you should just use a picture. Like a .png or .svg or something and write the documentation in another file. Or even maybe try out rich text source code.
If you’re wondering why I need diagrams in source code, then the answer is I usually don’t need them but it helps. The only project where they were game changing was where we were using Neo4j as a backend and being able to clearly diagram the data model was really helpful.