3 ms·
The web's view layer, html and css, has the wrong granularity for building precise ui. Html's controls are too high level for pixel perfect manipulation, and to
by Joeri 10y ago
The web's view layer, html and css, has the wrong granularity for building precise ui. Html's controls are too high level for pixel perfect manipulation, and too low level for easy assembly into rich ui. CSS meanwhile tries to get you to make general rules that interact to produce a precise rendering, which you never quite achieve because there are always unintended side effects of the rules. No native view api works like this, and for good reason. Since these technologies are almost entirely but not quite unsuitable for building a native-like view layer, people build abstractions around them to approximate the view layer api any native ui gives you. But then the problem becomes one of synchronizing the facade view to the real view, hence ten thousand templating and layout frameworks, all while continually dealing with the leaky nature of the abstraction.
I guess what i'm saying is that i believe in the principles of the web, but i think html and css are terrible technologies that do a disservice to those principles.
- CharlesW 10y ago> Html's controls are too high level for pixel perfect manipulation, and too low level for easy assembly into rich ui. HTML+CSS isn't the only abstraction available, though. If you want a lower-level abstraction, you can use canvas. If you want a higher-level abstraction, you have your choice of composable view component systems (e.g. React).