Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Respectfully, all of your points regarding the triviality of view-source here are just wrong. Here's a test for you: go to a page and view-source; what do you see?

> View Source is already useless on most large sites

No it isn't. Web devs can easily read source on almost all sites all the time.

> Modern web sources aren't meant to be read by humans

Yes they are - that why we've got view-source.

> and it's really only one or two steps above being handed a compiled binary.

That's the point - it's NOT compiled binary.

The sanctity of View Source is exactly what's in question here, and I stand in the group that says "no" to closed-source web specifications.



"Yes they are - that why we've got view-source."

So, uhh, I tried to view-source on a gmail tab. A solid wall of code. There's nothing there meaningful, not like the web pages of 1999 used to be.

If you're telling me you can browse the wall of code on a site like gmail.com and learn new tips and tricks from it, well, pull the other one, it's got bells on.


oh come on, just use firebug or developer tools and the html tree tab: you have an entire inbrowser IDE for the webpage including even deminified JS


I personally agree that sites with obfuscated JS are hard to read, and are pushing boundaries close to binary. I also think, it's absurd to use that as an argument.

Some sites are pushing shitty, hard to read code, sure. But instead of allowing them to continue working against the spirit of the system, we should shame them, and use them as examples of what not to do. If a couple of bad politicians abuse their system, we don't say "fuck it. lets go back to a monarchy"


It's not "some" sites, it's nearly all.

Heck I picked the front page of BBC News and opened it up. Wall of minified JS. Further down the page we see something that vaguely resembles normal HTML except for stuff like this:

<div id=markets_index_promo class="hidden" data-comp-meta="{&quot;id&quot;:&quot;markets_index_promo&quot;,&quot;type&quot;:&quot;remote-portlet&quot;,&quot;handler&quot;:&quot;remotePortlet&quot;,&quot;deviceGroups&quot;:null,&quot;opts&quot;:{&quot;assetId&quot;:&quot;10263779&quot;,&quot;id&quot;:&quot;market_data\/markets_index_promo&quot;,&quot;loading_strategy&quot;:&quot;post_load&quot;,&quot;position_info&quot;:{&quot;instanceNo&quot;:1,&quot;positionInRegion&quot;:3,&quot;lastInRegion&quot;:false,&quot;lastOnPage&quot;:false,&quot;column&quot;:&quot;secondary_column&quot;}}}">


It's no longer practical to ship source JS, if it ever was. Filesize limitations and frameworks that require recompilation are a significant chunk of the magic of the modern web.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: