3 ms·
Seriously, every time people complain about CSS and HTML I think about how much work it is to support all the localisation and layout stuff they do. Managing ma
by Latty 3y ago
Seriously, every time people complain about CSS and HTML I think about how much work it is to support all the localisation and layout stuff they do. Managing massively different sized screens as elegantly as them is hard and yeah, it's still not that elegant or easy, but I haven't used anything better that didn't sacrifice something for it.
- geektips 3y agoAbsolutely, I totally agree. Layout development has gotten a lot better with Flexbox, Grid, and the new Container Queries.
- SenHeng 3y agoEvery time I have to build a UI in canvas, I yearn for all the conveniences CSS and the DOM provide. Do people even realise how much trouble it is to make text wrap within a given space?
- Solvency 3y agoIt is, but yet thousands of videogames have been doing this for decades...
- SenHeng 3y agoAnd most games will use an engine like Unity or Unreal so they don't have to re-invent the wheel. HTML and CSS may not be perfect, but they've been battle tested for a good 30 years and have had improvements added. No need to re-invent that wheel.
- arp242 3y agoThe UI of many games break if you scale the text though, if it offers such a feature (e.g. text won't fit in boxes). This is also the case on the web at times, but much less often.