News for hackers. Stuff that matters.
Re:Ask HN: Why Haven't GUI Front End Editors Caught On? by news_to_me on Friday February 10, 2017 @01:11PM (#13617501)
> What I would really like are more robust layout APIs for both the browser and native apps.

This is what I love about CSS flexbox and grid. Flexbox completely changed how I approach layouts, and I'm excited for grid to hit the big time as well.

The only thing I wish flexbox could do is allow custom spacing functions, so I could write my own alternative to "justify-content: space-around".

Re:Ask HN: Why Haven't GUI Front End Editors Caught On? by jasondc on Friday February 10, 2017 @01:20PM (#13617569)
Here is the best visual approach ive seen to designing flexbox layouts: http://flexboxgame.com
Re:Ask HN: Why Haven't GUI Front End Editors Caught On? by briantmaurer on Friday February 10, 2017 @05:27PM (#13619477)
This is great. Until now, I have been using the "flex box froggy" game for reference. It has been faster for me to recall flex-box CSs rules by scrolling through levels in that game than reading any "real" documentation.

The link you shared above is a big upgrade.

Re:Ask HN: Why Haven't GUI Front End Editors Caught On? by nojvek on Saturday February 11, 2017 @01:04AM (#13621301)
I really like what safari has done with its devtools for the style editor.

Right-click inspect element selects the element you want to modify. Then change CSS properties in a GUI editor. Only problem is persistence.

I love designing and tweaking with devtools iteratively.

A lot of things are done in editors because it gives you a lot of control of logic. Designing assets in visual language like flash makes a lot of sense.

Unity has the same idea. Create your assets visually and assign behaviors to it via code. Their GUI/code fusion is pretty cool.

Writing a public var in a class exposes it in GUI and makes it bindable to other things via click and drag.

Re:Ask HN: Why Haven't GUI Front End Editors Caught On? by fiveseven_ on Friday February 10, 2017 @09:03PM (#13620512)
Flexbox Game doesn't support Firefox 53 yet, but I can vouch for Flexbox Froggy as well as Flexbox Defense http://www.flexboxdefense.com/
Re:Ask HN: Why Haven't GUI Front End Editors Caught On? by namuol on Friday February 10, 2017 @02:45PM (#13618267)
> custom spacing functions

Keep an eye on "Houdini" -- a new browser API draft that exposes the internals of CSS's layout system (and much more): https://www.youtube.com/watch?v=sE3ttkP15f8