8 ms·
This is great. Has this approach to visualizing loops and structures been tried with general programs? Indentation and color coding seems to be the limit to th
by cookingrobot 14y ago
This is great. Has this approach to visualizing loops and structures been tried with general programs? Indentation and color coding seems to be the limit to the visual expressiveness in most IDEs because they tend to stay withing the format of plain text files.
I'd really like to see some more creative visuals like this for making program structure visible.
- spiralganglion 14y agoI don't know if there's a name for this style of display, but it's the same as the way JSON is depicted on its official site. http://www.json.org http://www.json.org Edit: It's called a Railroad Diagram.
- plq 14y agoNo, it's called a finite state machine ;)
- spiralganglion 14y agoThe FSM is the model, the Railroad Diagram is the view, to borrow terms.
- beala 14y agoWell, as long as we're picking nits, an FSM accepts only regular languages, while a rail road diagram accepts context-free languages[1]. So a railroad diagram isn't really the "view" for an FSM. A state-diagram or state-transition table is (although the whole MVC analogy is itself kind of weird. Where's the controller?). [1] http://en.wikipedia.org/wiki/Syntax_diagram http://en.wikipedia.org/wiki/Syntax_diagram
- modarts 14y ago>Where's the controller? The MV* family of patterns seems to be okay without the notion of a controller.