4 ms·
I love this tool! I've used it to do diagrams for Mapless: https://sebastianconcept.github.io/Mapless/guides/2024/01/28/observer-pattern.html https://sebastia
by sebastianconcpt 3y ago
I love this tool!
I've used it to do diagrams for Mapless:
https://sebastianconcept.github.io/Mapless/guides/2024/01/28/observer-pattern.html https://sebastianconcept.github.io/Mapless/guides/2024/01/28...
And to document this Pharo VM Plugin builder setup:
https://github.com/sebastianconcept/PharoPluginBuilder https://github.com/sebastianconcept/PharoPluginBuilder
- James_K 3y agoSo you used an ASCII drawing tool to draw these diagrams in text then took a screenshot of them and uploaded to your website? That seems like such a convoluted way to draw a few rectangles. Isn't there an easier way?
- k12sosse 3y agoThink different.
- mjochim 3y agoDoesn't seem more convoluted than any other drawing tool to me. The UI of Monodraw appears to be pretty similar to "regular" drawing software.
- subjectsigma 3y ago1. 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.
- James_K 3y agoIf 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.
- aidenn0 3y agoPlease don't do things like this that make it harder for people to read your comments.
- James_K 3y agoWriting documentation is typically an addition to writing comments. They serve different purposes. That said, adding a diagram to a comment will only make it easier to read. It is an addition. It cannot make things harder.
- zelphirkalt 3y agoIf only it were true, that additions cannot nake things harder to read.
- James_K 3y agoIn this case, it is absolutely true. It is the difference between: // some comment and // some comment // additionally see ./diagram.png Diagrams are often useful tools for communicating information.
- aidenn0 3y agoThat's not the difference I'm talking about; I'm talking about the difference between // some comment // ... 25 lines of a diagram and // some comment // additionally see ./diagram.png
- misnome 3y agoThanks! 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.
- James_K 3y ago
- Terretta 3y agoAt least for the README, the diagram remains text in three backticks.
- sebastianconcpt 3y agoIn the second link, about the Smalltalk VM plugin, you can see is pre-formatted text in markdown. In the Mapless guide, when I've kept it as text (as the first preferred way to have it done) it became challenging to make it work for all screen sizes and an image was the "good enough" approach for the case.
- lsllc 3y agoLove this too -- I use this to document source code, being able to visualize a buffer or structure layout in the code is so nice!