News for hackers. Stuff that matters.
Re:Final “STEPS Toward the Reinvention of Programming” Paper... by dkersten on Friday May 13, 2016 @10:28AM (#11690588)
"But writing constraints as text is painful."

I find writing the anchors in QML (Qt Quick's layout language) to be quite pleasant and easy.

Eg:

    Rectangle {
        Rectangle {
            id: a
            anchors.top: parent.top
            anchors.bottom: parent.bottom
            anchors.left: parent.left
            width: parent.width / 2
       }
       Rectangle {
            anchors.top: parent.top
            anchors.bottom: parent.bottom
            anchors.left: a.right
            anchors.right: parent.right
       }
The two most "interesting" parts of this are the width: parent.width / 2 and anchors.left: a.right

There is much much more, much of which makes it more concise, but that's the basics.

Re:Final “STEPS Toward the Reinvention of Programming” Paper... by Animats on Friday May 13, 2016 @02:03PM (#11692061)
That's because you're a programmer, not a graphic designer.
Re:Final “STEPS Toward the Reinvention of Programming” Paper... by dkersten on Friday May 13, 2016 @06:31PM (#11693621)
Oh, I didn't realise the context was non programmers. My bad.