4 ms·
> If you graphically drag a point around, the coordinates in the source code should automatically update. If you edit the source code, the graphical UI should a
by UncleEntity 1y ago
> If you graphically drag a point around, the coordinates in the source code should automatically update. If you edit the source code, the graphical UI should automatically update.
That sounds difficult.
I'm trying to think through how that would work, you would have to map language elements to geometry elements and be able to seamlessly update both on any changes. Plus be able to insert/delete elements on both the text and geometry sides including during renamings and reorderings of elemental lists.
I suppose one could treat the geometry elements as the 'model' (to use MVC parlance) and the 'view' could either be source code or UI elements generated on the fly. Maybe add some 'non-display' attributes for comments and whatnot for pretty printing the source code.
I'm sure someone much smarter than me figured out how to do this kind of thing back in the '70s.