logoalt Hacker News

pjmlp11/08/20241 replyview on HN

The problem is that while on text based languages folks quickly learn to use subroutines and modules/packages, apparently the same concept seems alien to anyone that hasn't done digital circuit design.

Most visual languages, support subroutines and modules/packages as well, no need to design a gigantic piece of spaghetti.

If anything, visual languages make it clear straight away when the code is a mess.


Replies

WillAdams11/08/2024

Yes, but if one uses subroutines/modules, then one ends up with the wall of text which one was presumably attempting to escape from --- just wrapped up in coloured boxes/connected with lines.

GraphSCAD at least affords an option to add an image to a module representation, preserving some of the visual aspect --- I believe OpenSCAD Graph Editor has that in the works (if it's not already done).