News for hackers. Stuff that matters.
Re:Ask HN: Is web programming a series of hacks on hacks? by bbcbasic on Monday September 12, 2016 @02:45AM (#12477681)
You can create controls in WIN32 or MFC that would simply be impossible in HTML for a reasonable level of performance
Re:Ask HN: Is web programming a series of hacks on hacks? by ivanhoe on Monday September 12, 2016 @03:06AM (#12477762)
Performance yes, you can't compete with that one because browsers don't let you control the low-level stuff. But the speed of development and the ease of doing complex layouts with css is hard to match (when you master css enough, of course), specially if you're trying to do UI from the code directly, without IDE helpers and visual builders.
Re:Ask HN: Is web programming a series of hacks on hacks? by millstone on Monday September 12, 2016 @06:16AM (#12478440)
The speed of development is very fast for the first 75%, and comes to a screeching halt for the last 25%. The web stack has no good way to answer basic questions like "does the user have arrow keys" or "what is the current mouse position." That's the point that you start to layer on the "hacks on hacks" that OP references.
Re:Ask HN: Is web programming a series of hacks on hacks? by emodendroket on Monday September 12, 2016 @09:28AM (#12479458)
Can any system tell you that the user has arrow keys?
Re:Ask HN: Is web programming a series of hacks on hacks? by sangnoir on Monday September 12, 2016 @04:25AM (#12478019)
> You can create controls in WIN32 or MFC that would simply be impossible in HTML for a reasonable level of performance

Flip side: You can distribute/deploy the host HTML application with reach that will be impossible achieve with a WIN32 or MFC application.

Re:Ask HN: Is web programming a series of hacks on hacks? by rpeden on Tuesday September 13, 2016 @01:39PM (#12490510)
True, but it should be possible to create high performance UI controls inside an HTML5 canvas element.

With canvas, every browser has hardware accelerated immediate mode rendering that could be used to create UI toolkits. Looking around the web, there are some attempts to make this happen, but none of them seem to be hugely popular.

Last time I looked into this (years ago), a big blocker was that nothing inside a canvas element is visible to accessibility APIs, so UI rendered in a canvas would be invisible to people using assistive technologies like screen readers.

Re:Ask HN: Is web programming a series of hacks on hacks? by raverbashing on Monday September 12, 2016 @02:49AM (#12477694)
Yes, but this doesn't matter for the majority of applications today
Re:Ask HN: Is web programming a series of hacks on hacks? by nodamage on Monday September 12, 2016 @03:30AM (#12477836)
Replace "WIN32 or MFC" with "iOS or Android" and the point still stands, especially on mobile devices where processing power is limited and battery life more important.