News for hackers. Stuff that matters.
Re:SVG: The Good, the Bad and the Ugly by PaulHoule on Friday February 12, 2021 @11:42AM (#26115493)
I have been interested in the "low code" problem, in particular the kind of advanced parsers that were used in the 1990s to attempt things like "edit the UML diagram in a GUI and change the Ada source code the way a professional programmer would".

Dreamweaver used to do this for HTML, sometime before it got bought by Adobe. Today Dreamweaver seems like it would be usable on a 90 THz computer but I can do 10 push ups waiting for the UI to settle down after typing "Hello World".

A split-screen SVG editor would be particularly good, since so much of editing an SVG file is getting the numbers right. You'd face many interesting problems, such as exposing decimal math to the user (whatever iffy floating point is used, your git commits are going to be awful unless you "snap to grid" in factors of 1/2 and 1/5.)

What I'd particularly like to do is have control of the structure of the document so I can group elements with the discipline of a programmer.

A tool like that still might not be satisfying because Bézier curves were made to make people feel like they were bad at computer graphics and took over instead of better alternatives that were patented at the time. I was shocked to find that my favorite character designers don't know how to draw anime characters with Bézier curves.

Re:SVG: The Good, the Bad and the Ugly by ahartman00 on Friday February 12, 2021 @02:44PM (#26117738)
Is this what you mean by groups?

"The <g> SVG element is a container used to group other SVG elements.

Transformations applied to the <g> element are performed on its child elements, and its attributes are inherited by its children. It can also group multiple elements to be referenced later with the <use> element."

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/g

Re:SVG: The Good, the Bad and the Ugly by PaulHoule on Saturday February 13, 2021 @09:47AM (#26123856)
Mostly.

That is the most prominent tool one would use to apply "programming" or "architectural" discipline to SVG.

For instance you could make a <g> that looks like a cat paw and then <use> it to make a track of cat paws. That's more disciplined then say, "cut-n-paste" a cat paw you drew 10 times which a real artist might do, or I might do because I can always figure out how to do it with a drawing program.

Related to that is the use of CSS, which can range from beautiful code which is easy to understand towards a complete mess.

Re:SVG: The Good, the Bad and the Ugly by Eisfunke on Friday February 12, 2021 @12:30PM (#26116140)
Author here, for editing SVGs by hand I use VSCode (or VS Codium to be precise) with the SVG Viewer add-on in split-screen: https://marketplace.visualstudio.com/items?itemName=cssho.vs...

Works pretty well as split screen editor. The preview refreshes on save with ctrl-S.