axelson

axelson

Scenic Core Team

Hi everyone :wave:

I’ve always wanted a tool to better visually understand inter-file dependencies in Elixir projects to help me reduce compilation dependencies (and hence, reduce recompilation times), but none existed so I wrote my own! As part of my Code BEAM BR talk I’d like to release the tool.

Try it online at: https://depviz.jasonaxelson.com/

Or view the code:
https://github.com/axelson/dep_viz

This is what it looks like when you view a project:

It can highlight dependencies of a given file:

It can also highlight the files that depend on the given file at compile time:

To better understand how to use the tool, watching parts of my Code BEAM BR will likely be helpful:
https://www.codebeambr.com/video/12

Who is it for?

Any elixir developer that wants to better understand (and hopefully reduce!) the inter-file dependencies of their project.

Acknowledgements

I’d like to thank my wife for helping me with the design, along with @rodrigues and members of the Elixir Hawaii community for providing valuable feedback during the initial design and development.

I hope this tool can prove helpful to people!

Showing Posts 1 to 5

josevalim

josevalim

Creator of Elixir

This is awesome! Great job @axelson and everyone involved!

axelson

axelson OP

Scenic Core Team

Thanks José! :tada:

tomekowal

tomekowal

This looks fantastic!

Did you see the talk by Rafał Studnicki about similar topic? https://www.youtube.com/watch?v=LkGx33Suzsk He does a very similar thing but uses different visualization method.
The idea is that all files are on a big circle sorted by module name. This makes closely connected files appear together (because they share the same prefix MyApp.MyContext…).

This also means that places or files do not change that much when you add new ones.

I wonder if it would be possible to use your tool which has more functionalities but with visualisation method proposed by him?

axelson

axelson OP

Scenic Core Team

Thanks! That was a very interesting talk, and it is neat that it is also using d3.js

Hmm, it would be possible to add the per-file dependency visualization on top of a hierarchical edge bundling graph, and that would be a neat way to visualize the dependencies. It would be interesting to do that visualization.

axelson

axelson OP

Scenic Core Team

My Code BEAM BR talk about DepViz was posted semi-recently. In it I give an overview of DepViz and talk about what causes applications to have lots of compile-time dependencies:

https://www.codebeambr.com/video/12

FYI, the talk is in English :blush:

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews