News for hackers. Stuff that matters.
Re:PyFlow – Visual scripting framework for Python – NodeRED ... by ethbr0 on Sunday January 16, 2022 @11:28AM (#29957306)
I think the key here, as a responsible developer, is ensuring isomorphism between the GUI representation and the generated code. To the extent that the development method could be swapped without repercussion.

Most GUI tools, presumably in speed to market, skip this. But as soon as you've created something that can only be viewed & modified in a visual editor... you've become part of the problem.

So I'd approach this from a "If my tool is successful, and users use all the editors we give them, what will their support story for a 10 year old codebase look like?" (If you care about the greater good)

Re:PyFlow – Visual scripting framework for Python – NodeRED ... by nyellin on Sunday January 16, 2022 @11:49AM (#29957512)
I like this. SaaS platforms typically don't want to do this precisely because it limits vendor lock-in, but I think it's the right approach.
Re:PyFlow – Visual scripting framework for Python – NodeRED ... by bmitc on Sunday January 16, 2022 @03:47PM (#29959830)
> But as soon as you've created something that can only be viewed & modified in a visual editor... you've become part of the problem.

Why is that? You don't view the bytes your text editor generates do you?

Re:PyFlow – Visual scripting framework for Python – NodeRED ... by ethbr0 on Sunday January 16, 2022 @07:27PM (#29961968)
ASCII and Unicode are standards. Presumably OP isn't building a tool with enough market share it's going to have an international standard encoding.

What you end up with, if you don't have a standard, and you don't maintain isomorphism... is user "code" that requires a vendor tool to view & modify.

Which sets up some really screwy incentives & business models.

A thing you built. That you paid for the tools to build. That you have to continue paying for, otherwise you'll be unable to guarantee maintainability.

Charge for execution if you want! But IMHO user developed code, in whatever format, deserves to be owned by users. Even if they decide to no longer be customers.

Re:PyFlow – Visual scripting framework for Python – NodeRED ... by bmitc on Sunday January 16, 2022 @08:21PM (#29962321)
> ASCII and Unicode are standards.

Right, and those didn't just materialize out of thin air. They took time and effort to develop. My point is that we shouldn't keep shooting down visual based tools and languages on the notion that there aren't standards, because there isn't anything (besides preconceived biases) that prevent them. There are many things that text is just not good at describing, such as dataflow, and by claiming everything must be text and isomorphic to text, we're holding things back.

Re:PyFlow – Visual scripting framework for Python – NodeRED ... by ethbr0 on Sunday January 16, 2022 @09:07PM (#29962610)
I'd be more sympathetic to this idea if I hadn't seen the tactic executed repeatedly over the last 10 years to ensure vendor lock-in, which ultimately burns the end user. And/or requires them to insecurely freeze a portion of their IT infrastructure in time.

And honestly, if your GUI/designer is standardized, then it's trivial to define a stable serialization to and from text anyway.

Re:PyFlow – Visual scripting framework for Python – NodeRED ... by z3ncyberpunk on Monday January 17, 2022 @10:05AM (#29967222)
You only need to sympathetic because you have let yourself become jaded by your anecdotal experience.
Re:PyFlow – Visual scripting framework for Python – NodeRED ... by ethbr0 on Monday January 17, 2022 @11:57AM (#29968577)
It didn't feel anecdotal when I was the one trying to modernize systems like these in the face of vendor apathy (or active hostility) and business resistance to change, because they had 10+ years of legacy "code" built in these things.
Re:PyFlow – Visual scripting framework for Python – NodeRED ... by z3ncyberpunk on Monday January 17, 2022 @12:57PM (#29969328)
So every other software project for every business ever? Got it, still anecdotal data
Re:PyFlow – Visual scripting framework for Python – NodeRED ... by dv_dt on Sunday January 16, 2022 @08:13PM (#29962271)
Ah yes? and diff, track, and version the bytes with tools like git. Or perhaps I’m misunderstanding the question here?
Re:PyFlow – Visual scripting framework for Python – NodeRED ... by nopenopenopeno on Sunday January 16, 2022 @03:58PM (#29959963)
YAML parsers don’t read the bytes or the GUI. They read the text.