https://futureofcoding.org/ logo
Title
m

Maikel

12/04/2022, 5:47 PM
2022 Advent of code day 4 part 1 using my visual programming environment
y

yairchu

12/05/2022, 7:54 AM
I can’t read the text when I zoom in, so I have no idea what I’m looking at.
m

Maikel

12/05/2022, 8:20 AM
Yeah thanks, good point offcourse.. I am working on a svg exporter but it hasn't all the information of the image yet.. I'll see if I can create a larger image
Good old puppereer to the rescue:
As a test I am adding all aoc flows to 1 canvas
Maybe I can provide a live environment on the web somewhere as well, I am going to think about it and see if I can find some time
y

yairchu

12/05/2022, 2:23 PM
Do connections get created automatically according to property names that match?
m

Maikel

12/05/2022, 2:30 PM
No you need to add them manually. Each node receives and sends a payload, this payload is a simple javascript object in this implementation. A node can modify the payload (usually adding properties).. and the payload gets bigger througout the flow. Connections can be seen as "node triggers". Some nodes contain multiple outputs.. these are "events" from within the node and depend on the specific functionality of that node type
y

yairchu

12/05/2022, 2:58 PM
Could they be created automatically then? Otherwise it seems redundant not to automate it? Or am I missing something fundamental?
m

Maikel

12/05/2022, 3:58 PM
From a UI perspective I can make it easier to add the connection automatically when connecting a node to another node (when dragging a new node on stage this already happens when you move the new node within a certain range of a node on the canvas) but the system cannot guess which node to connect to other nodes by looking at the node properties (this what I thought you meant) or I dont know how yet