by parhamn · 4y ago · 0 comments
You could achieve a lot more than the conventional file-per-module approach. Off the top of my head benefits could include: much easier refactoring, comments bound to specific tokens, function level versioning, much smarter git diffs, and so much more.
The mapping graphs to flat-files thing feels especially silly when I do FE dev. Manipulating JSX doms on top of the JS function stack is a constant reminder of how the flattening step feels unnecessary.
https://docs.darklang.com/structured-editing
Emacs has some structural editing plugins like ParEdit
Many graph/node based editors like Blender shaders (3D), Reaktor (music)
https://www.unisonweb.org/ (this has some of the function versioning ideas)
Smalltalk
There's many many more, these are just some I remembered off the top of my head.