News for hackers. Stuff that matters.
Re:Qt for WebAssembly by sho_hn on Tuesday June 19, 2018 @03:56PM (#17349819)
Having recently made a website with a non-trivial layout that required lots of ugly JS to implement adequate scaling and bevavior, boy, I can't disagree more. I do UI in QML in $dayJob and gained a whole new appreciation for how much simpler and faster it is to achieve similar results in a more consciously crafted language.

Unfortunately it was our wedding website and I didn't think "let's hold off until I can use Qt/WASM" would go over too well ... :-)

Re:Qt for WebAssembly by littlestymaar on Tuesday June 19, 2018 @08:43PM (#17351498)
Are you really comparing your professional expertise with something you've just started to learn for your wedding website?

If all you know is C, writing an “Hello world” in C will be easier than doing the same in Python, but is that really a good insight of which language is easier to write ?

Re:Qt for WebAssembly by sho_hn on Tuesday June 19, 2018 @09:25PM (#17351687)
I see your point, but no. I've made websites semi-regularly since the late 90s and have contributed to a browser engine, so it's not lack of familiarity. This was just the first site in a few years. I think my argument takes rustyness/routine into account.
Re:Qt for WebAssembly by dimgl on Tuesday June 19, 2018 @04:01PM (#17349871)
> QML > consciously crafted

LOL

Re:Qt for WebAssembly by sho_hn on Tuesday June 19, 2018 @04:07PM (#17349904)
Now QML has its warts for sure, but it benefits from being designed with well-known use cases in mind, so it has lots of features suitable to them.

HTML was designed for structured, flowing text documents and everything else got bolted on top with only partial awareness of where the journey was headed (reading up on the origins of stylesheets and the relevant discussions is interesting in this respect). As a result it's just a mess for what it's used for now, pain-alleviating salves like flexbox notwithstanding.

When I do any non-trivial UI in the web stack, I can feel I am in continuous workaround territory. I'm trying to bend something ill-suited to my will. I don't get that feeling with QML.

Re:Qt for WebAssembly by martin_ky on Wednesday June 20, 2018 @04:28AM (#17353534)
> When I do any non-trivial UI in the web stack, I can feel I am in continuous workaround territory. I'm trying to bend something ill-suited to my will. I don't get that feeling with QML.

That has been my experience as well.

I think the web dev crowd advocating HTML/CSS originates in a) limited knowledge beyond the web tech field, and/or b) thinking that web is the state-of-the-art of computing.

The trouble with modern web is, that it was not so much designed as it evolved. But evolution in general is doggone slow and produces mistakes and mutations. I think the evolution of the web platform is still in a very early phase.