Live data from Hacker News

Create diagrams with code using Graphviz

ncona.com

151–160 of 221 posts

Re: Create diagrams with code using Graphviz

#151
post #125
post #68

Earlier quoted context omitted.

This is excellent! Thank you for the share! I'm working on a Typescript Call Graph [0] and am leaning towards D3 for my visualization. But I hope I can generate something as pretty and useful as your link [1] [0]: https://github.com/whyboris/TypeScript-Call-Graph

Nice. This will be useful, I'm looking forward to it. Are you aware of any similar tools for creating class diagrams from TS code?

The closest I found was TS-Call-Graph [0] which works well but only on classes while mine is aimed at functions

I have a very rough draft of a graph working [1] (currently hardcoded with a specific function name) but I intend to make it interactive and to have more than one visualization of the files.

[0] https://github.com/Deskbot/TS-Call-Graph

[1] https://github.com/whyboris/TypeScript-Call-Graph/pull/1

Re: Create diagrams with code using Graphviz

#152

We're reluctant to be exposed to too much anger about misfeatures in 20 year old code that was basically a prototype that escaped from the lab, but go ahead, ask us anything. We've gotten a lot of help lately from Magnus Jacobsson, Matthew Fernandez and Mark Hansen on cleaning up the website and the code base, even some persistent bugs we could never find ourselves. Improvements that would benefit the community the m…

I have been nothing but happy to use graphviz and recommend it regularly. Thank you for all of your work, truly.

Re: Create diagrams with code using Graphviz

#153

We're reluctant to be exposed to too much anger about misfeatures in 20 year old code that was basically a prototype that escaped from the lab, but go ahead, ask us anything. We've gotten a lot of help lately from Magnus Jacobsson, Matthew Fernandez and Mark Hansen on cleaning up the website and the code base, even some persistent bugs we could never find ourselves. Improvements that would benefit the community the m…

> look like troff from 1985

This is a feature, not a bug.

The rest would be nice to have, though.

Re: Create diagrams with code using Graphviz

#155
post #9

Shameless plug: I created an online Graphviz/dot editor which is powered by a language server that provides auto completion and refactorings. It uses a WASM version of Graphviz to render the graph. You can try it out here: https://edotor.net

That's a fantastic tool! I've been doing some work to create some hierarchy diagrams and this is perfect.

Re: Create diagrams with code using Graphviz

#158

We're reluctant to be exposed to too much anger about misfeatures in 20 year old code that was basically a prototype that escaped from the lab, but go ahead, ask us anything. We've gotten a lot of help lately from Magnus Jacobsson, Matthew Fernandez and Mark Hansen on cleaning up the website and the code base, even some persistent bugs we could never find ourselves. Improvements that would benefit the community the m…

> - better default styles that don't look like troff from 1985 Design is not something that should be tied to a particular decade. It's not fashion. Good design is timeless and only adopts to new technologies/media. Design is how well a particular solution works for the purpose of it. If it looks like 1985 and works well, there is absolutely no reason to change it. If it doesn't, then there is no need to look at "mod…

> it’s not fashion

Many would argue good fashion is timeless as well. A good chunk of haute couture from decades past would be seen as modern and appealing today. (Which is why the houses like to repackage and ship them as such...)

Re: Create diagrams with code using Graphviz

#159

I'm going to hijack this thread to ask if anyone knows of a library that creates "hand drawn"-style sequence diagrams from code? I basically want this: https://bramp.github.io/js-sequence-diagrams/ -- but sadly, this one only seems to run inside a browser.

This one is also web-based, but it takes graphviz source: https://sketchviz.com/new

Re: Create diagrams with code using Graphviz

#160

We're reluctant to be exposed to too much anger about misfeatures in 20 year old code that was basically a prototype that escaped from the lab, but go ahead, ask us anything. We've gotten a lot of help lately from Magnus Jacobsson, Matthew Fernandez and Mark Hansen on cleaning up the website and the code base, even some persistent bugs we could never find ourselves. Improvements that would benefit the community the m…

Hey there, I'm the owner of webgraphviz.com and I am totally excited to see that it made it to the front page of hackernews!!

THANK YOU for making this wonderful program.

Also special thanks to the emscripten team for their wonderful transcompiler.

I am constantly amazed at all the WONDERFUL software that exists on unix as single threaded applications (required for emscriptem asm.js output). There could be a whole sub-culture of webdev which uses these old unix programs. I feel like it's an untapped resource, truly.

Post reply on HN