Re:Ask HN: Webdevs, designers: what devtools should we (Mozi...
by pixelcort on Tuesday March 05, 2013 @12:58PM
(#5326124)
If a browser supported PUTting the modified resource back up to the server, we'd be off to a good start. Server-side frameworks could then add functionality to split the modified resource back into the files that created it.
[ Parent
| on HN ]
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi...
by timdorr on Tuesday March 05, 2013 @01:35PM
(#5326376)
What about pre-processors (SASS, Less) or templating engines (ERB, Haml, Slim)? That would seem to be a huge task to "un-pre-process" an asset. Going backwards is immensely difficult. These are not easily reversible processes.
Instead, why not make something like IntelliJ/RubyMine/WebStorm/etc.'s Live Edit plugin a native part of the browser. Allow the asset pipeline to tell the browser it has changes available, rather than try to have it regurgitate all the processed assets. That would be relatively easy to add and very straightforward to implement.
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi...
by pedalpete on Tuesday March 05, 2013 @10:55PM
(#5329222)
Your Live Edit idea is a good one, but I think the assumption about "un-pre-processing" would be part of the pre-processing development tools understanding what was being pushed to them, therefore, the need for an open standard as has been alluded to above.
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi...
by btown on Tuesday March 05, 2013 @01:07PM
(#5326189)
Love this idea, it would make source modification a piece of cake for every browser-maker to implement. To allow for compatibility, this feature could be activated only when a X-Source-Modification-Enabled (or something) header is present on the original page. The header's value could even be the (relative) endpoint to call!
The simplest middleware that would pop up would be a diff generator. But with source maps, web frameworks could track what exact source files were used.
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi...
by mbell on Tuesday March 05, 2013 @01:11PM
(#5326227)
My crazy idea is to just use git + some sort of source map style overlay on both ends to track changes and pass them back and forth.
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi...
by paddy_m on Tuesday March 05, 2013 @07:04PM
(#5328366)
A lot of these ideas could be supported via a proxy system. Something like charles http://www.charlesproxy.com/ on steroids. If you wanted to edit yahoo.com , you would checkout your local repo, have charles point to the local repo, and then your on the fly css/js fixes would go to your local repo. Yahoo's server wouldn't have to support it.
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi...
by yesbabyyes on Tuesday March 05, 2013 @03:41PM
(#5327192)
It seems to me, that with source maps in the browser, the browser should be able to PUT the original source file, with the correct file hierarchy. So, downloading assets.min.js, editing models/Foo.coffee, PUTting models/Foo.coffee.
That would be really something.