I retired recently and have been considering scratching a longtime itch by trying my hand at coding a web application. The last time I wrote anything was in the 1990s, in C for an Apollo workstation (which rather dates me).
Anyway, whilst futtering around reading about how “modern” web apps are built I came across ELM, which struck me as a very clean language that I could probably get my ageing brain around. Elm-ui looks like I can avoid having to learn too much about html, but I’d like some recommendations as to an equivalent package for graphics.
Back in the day I used GKS and PHIGS (look them up on wikipedia), which let you compose graphical elements (lines, fill areas etc.) as “segments”, which you could then transform, show, hide, etc. They also let you work in a normalised co-ordinate space, rather than pixels. Most importantly, however, it was relatively trivial to map segment ids (i.e. representations on a screen) to object ids in your data model, which greatly simplified building interactive graphical editors (think a flow chart or a circuit editor). Selecting a segment (say one representing a resistor) returned an event which contained its segment id, which you could trivially map to the appropriate structure in the application’s model.
I realise that I can use elm-svg to generate SVG (if I care to learn its complexities, which I’m not sure that I do), but it all seems rather low level. Can anyone suggest a package I might look at instead, one more at the level of elm-ui?
Thanks in advance