4 ms·
Something like this is great for the following use case (1) you have a Chromebook, and (2) your working directory is on a remote workstation. You can always ss
by skybrian 10y ago
Something like this is great for the following use case (1) you have a Chromebook, and (2) your working directory is on a remote workstation.
You can always ssh in, use tmux or GNU screen, and use a terminal-based editor emacs or vi. But if you want to use a different editor, you're out of luck.
An alternative might be to get some kind of remote desktop going, but that only works well with good latency, since every keystroke and mouse movement is going over the network.
A web-based editor should be less chatty. True offline access doesn't matter for this use case; ssh wouldn't work anyway.
Also, keep in mind that some companies don't even allow you to put your working directory on your laptop. With a monorepo, downloading the company's entire codebase (or even just the parts you need to compile) is risky and impractical.
- bandrami 10y agoThat's why I love Emacs' tramp mode. Run Emacs on my laptop; access any file I can ssh to. Though also keep in mind that if you have an X11 server running on your laptop you can run any X11 client application (say, your favorite editor) on a remote machine and just have it display on your laptop.
- nothrabannosir 10y agoX11 over network is not a reasonable alternative to running an app locally which syncs data intelligently. Like e.g. a web based editor, or emacs in tramp mode. The lag is noticeable and a bad or spotty connection makes it a no go. No way you can tether or work on a train.
- bandrami 10y agoOTOH it's very useful for running computationally expensive programs on my relatively powerful VPS while displaying them on my completely underpowered Chromebook.
- webmaven 10y ago> But if you want to use a different editor, you're out of luck. Back in the day, we used WebDAV[0] for remote FS access. This had some issues with file locks (with multiple users accessing the same directory) and cross-platform compatibility (mostly between different versions of Windows and/or Office), but most of the time it Just Worked. Anyway, there are also other open source solutions like sshfs[1][2] available that sidestep those issues (as long as only one user is accessing the remote copy, anyway). [0] https://en.wikipedia.org/wiki/WebDAV https://en.wikipedia.org/wiki/WebDAV [1] https://github.com/libfuse/sshfs https://github.com/libfuse/sshfs [2] https://en.wikipedia.org/wiki/SSHFS https://en.wikipedia.org/wiki/SSHFS
- skybrian 10y agoThis works reasonably well for basic editing. When you want to do more advanced navigation or refactoring, you need a language service that indexes all the source files you depend on (including hundreds of packages) and reindexes it all when you sync or switch branches. Running language services remotely across a slow network may not be practical because downloading all those files (to build the search index) requires a lots of bandwidth.
- webmaven 10y agoThank you for your thoughtful response. So some standardization to reduce vendor lock-in in this area may be helpful.
- skybrian 10y agoYes, Microsoft is doing some good work here: https://code.visualstudio.com/blogs/2016/06/27/common-language-protocol https://code.visualstudio.com/blogs/2016/06/27/common-langua...
- audleman 10y agoThis is the best reason I've seen and should be at the top of their list of reasons. To summarize: - we work in an environment where our code lives remotely and desktop client software won't work
- matt4077 10y agoDo such environments exist? The only possible reason for such a setup I can think of is that requires an environment that's not available on desktop and can't be virtualised. If some web shop asked me to work in a browser window with remote files I'd mostly use the fancy editor to open resume.md.
- skybrian 10y agoI guess you don't want to work at Google then :-) The problem with virtualization is that you still need to download all the files. And it's still on your laptop, which could be stolen.