4 ms·
Web applications are the best example for Wirth's law. It's really mind-boggling if you think about it. None of the client-side components of a web application
by tralarpa 8y ago
Web applications are the best example for Wirth's law. It's really mind-boggling if you think about it. None of the client-side components of a web application were originally designed for what they are used for today:
1. a programming language (Javascript) that turns into a nightmare if you try to write programs with more than a few thousand lines
2. a user interface that requires you to learn two additional declarative languages (HTML and CSS), both of them equally incomplete and crappy.
3. an API between 1 and 2 that is so lacking that you need an external library (e.g. jQuery) to reduce the amount of boilerplate code to a sane level.
4. a network protocol (HTTP) that was designed for static web pages with a few pictures and that has serious performance issues for anything more complex.
5. and finally, the whole thing implemented in a language (C or C++) that is fast but offers you plenty of opportunities to shoot yourself in the foot in obscur ways security-wise.
Things are changing fortunately (HTTP/2, QUIC, Rust).