by Turing_Machine · 14y ago · 0 comments
I can't imagine anyone being surprised by that. Programmers, on the other hand, look at source all the time. Being able to view the source when you wonder "how did they do that?" is a big factor behind the rapid evolution of the web.
"The source of the desktop applications you use isn’t typically human-readable unless the source is open and you seek it out."
Which, I would argue, is one reason why most innovation is now occurring on the web rather than the desktop.
"Beginners need consistency, and the majority of developers are always going to be beginners, so we have no choice but to help them."
By concealing the way things are done from them and eliminating the terabytes of publicly viewable example code?
Sorry, that doesn't seem very helpful to me.
Compiling and delivering in an unreadable format is possibly the worst solution to this problem. Who ends up benefiting from this? The end user who saves a minuscule amount of time loading the page? Is hampering innovation and progress really worth that amount of time?
Below, the author makes a point that viewing the actual source is unreadable anyways. Very true, but tools like Firebug and Chrome Developer Tools help combat that problem to an extent by nicely formatting HTML, CSS, JS, etc. And while many large sites (Gmail, etc.) have compact and utterly horrendous source, I would argue that novice developers are not looking there first for help, instead they look at less complex sites that are not minified (because they don't need to increase page loading speed).
That being said, the web has felt like technology soup for some time now, shortly after getting away from CGI, it just felt like we where doing it wrong (at least the apps part). The newer JavaScript / CSS / HTML front-ends communicating to a REST back end feels a little more right to me over all the proprietary server pages mess (ASP, JSP, PHP) that we contorted the document language with, to make pages, apps. But it does still feel like there should be a better way to deliver apps. I think this is why IOS apps are doing so well, the use a common REST back end with the web, yet make development of the UI a lot less complex. I think the web could learn a lot from Apple's successes on the mobile platform, but there is just so much inertia behind web technologies that a radical departure is just not in the cards.
The nice thing about text is that its easy to edit and process, right? If we make this binary format easy to edit and process in addition to being more efficient, what advantage do we get from text?
The “publicly viewable example code” isn’t helpful at all as-is. Discoverability already sucks. Just sending the source through a pretty-printer would be solving the problem backward, but if you’re going to do that, then there’s still no real reason the source itself has to be transmitted. If we had a single, standard, compiled format, then we’d solve the transmission and parsing problems, and the format could be presented on many different media, of which “decompilation” to HTML would be just one.
I’m not saying it wouldn’t be a lot of work to get it right, but in my opinion the benefits would outweigh the costs. That’s why I wrote the article. But of course you can’t solve a problem just by saying “this is how we ought to do it” without any discussion, so it’s people like you who intone “no, that’s a terrible idea, Jon” that will ultimately prove me wrong or right.