Skip to content

Visual Programming for CP #171

@s-light

Description

@s-light

i like the idea to program CP in a visual way

this is a follow up from #20 (comment)

Initial Idea / thoughts:

i personally like the flow based version more than the blockly approach,
as its more of a real visual abstraction & appealing design..

Integration in current web-editor

  • add a side-by-side or top-bottom panel with the graphical representation
  • this way you can switch between both representations and ways to code seamlessly.
  • example for this for blockly: BlockMirror

Libraries

create a automagic conversion system to parse the libraries and create components for them.
(maybe as a build job on the library builds...)
as otherwise you would have no libs to use..
(its a to big burden for the lib maintainers to generate something special for the editor i think...)

Flow Based

  • for parallel branches of a graph we could use asyncio)
  • for sub-graphs we could use extra files that gets imported
    • that would make it very tidy in both representations

link collection


what do you think about this?
would be a PR including some simple beginner friendly visual editor be an option?

conclusion

it would be reasonable possible to include blockly based on the BlockMirror project in the web-editor.

after more research on the available flow-based UIs i think there is currently no easy fitting framework/library out there.. (without writing all the code-generation myself)

and there are already running editors available -
so is there any benefit in integrating it here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions