I just want to respond to the talk about commenting and in defense of netboxes because they are something I use all the time. I mainly use them for commenting/documenting the network. The ability to collapse them is a pretty nice convenience but i dont think its their main purpose. They are useful for saying - “this group of nodes over here are doing this certain thing”
Code comments work the exact same way. I suppose you could say that any group of lines of code that serves a purpose should be collapsed into a function and you can comment on the function but i dont think people actually do that. For example im looking at a bunch of code examples here - https://wiki.haskell.org/Example_code - and its a really common pattern, One line of comments explaining the next few lines of code, you dont only comment on functions, and when you are commenting its assumed that the comment pertains to more than the line underneath, but the whole block of code underneath.
netboxes serve the same purpose, they tell you the purpose of a group of nodes, heres an example from houdinis oceanevaluate node-
I think this might be possible to represent visually and in code at the same time if the comment in code has a beginning and end point, but im not sure…