2 ms·
The fact that the Web (not the "internet") runs in debug mode is directly responsible for its popularity and accessibility. Anyone can look at a web page and l
by kijin 11y ago
The fact that the Web (not the "internet") runs in debug mode is directly responsible for its popularity and accessibility.
Anyone can look at a web page and learn how it works. Anyone can copy bits and pieces of code from various places and put it together into a web page of their own. Most "web programmers" manage to make a living without ever having to learn a complicated protocol or trying to figure out what a long string of hexadecimal digits means. Easy to learn = more casual tinkerers = more people learning how to code, at least at a basic level.
You could design perfectly efficient protocols and encoding formats, but if people don't use it, what's the point?
HTTP/2 is a nice compromise. The web server and browser abstract away all of the binary layers, so most programmers only need to care about human-readable text.
- Sirenos 11y ago> Anyone can look at a web page and learn how it works. Not so true anymore. It's true that HTML/CSS are easy to inspect on a browser, but the meat of most websites today (JavaScript) is heavily minified to the point that you'd be hard-pressed to call it plain text.
- kijin 11y agoTrue, but minified scripts are often accompanied by sourcemaps. Technically sourcemaps don't need to be public, but they often are because they make debugging easier for in-house developers. So even if not all websites are in debug mode, there are incentives to make it easy to get them into debug mode.