9 ms·
It seems inevitable that remote dev environments will become ubiquitous. With increased distribution of systems, increased use of cloud proprietary infra softw
by vp8989 6y ago
It seems inevitable that remote dev environments will become ubiquitous.
With increased distribution of systems, increased use of cloud proprietary infra software that you can't run locally and now these custom SOCs. Companies are just going to give up on local dev environments and force everyone to write code in a browser.
- pjmlp 6y agoTimesharing is back! At least it is better than those X Windows terminals I was using in 1994.
- cbhl 6y agoAt least VS Code means we'll have options for a half-decent IDE in the browser. (Not that there's anything wrong with vim or emacs over SSH-in-a-browser, but...)
- brysonreece 6y agoPersonally, my development routine is to use VSCode's "Remote Connections" as my primary way of editing code/interacting with the CLI (via the built-in terminal). It lets me work closer to the shell with a shareable app instance (pointed at a dev.myappname.com domain) that I can share or Slack a coworker at any time.
- arawde 6y agoCould you elaborate a bit on the shareable app instance (or just share links to its documentation)? That sounds really useful but I hadn't heard about this use case before
- mratmeyer 6y agoLooks like this is what he's talking about: https://code.visualstudio.com/docs/remote/ssh https://code.visualstudio.com/docs/remote/ssh I haven't used the remote SSH feature, but I have been playing around with GitHub Codespaces through VSCode. Once you have the extension, you can select a repository and it will spin up a virtual workspace for you on their servers. It actually works surprisingly well- tasks like installing node packages is faster than on my local computer and it automatically handles things like setting up a proxy for local web environments.
- xnyan 6y agoI assume they are talking about something like https://github.com/cdr/code-server https://github.com/cdr/code-server . It’s vscode in your web browser. Run it locally in your dev environment and setup your web server to proxy vscode.your domain.tld to it and boom, you have vscode running in your dev environment that anyone with a link can access. The fastest way to set it up with tls+auth is probably something like https://hub.docker.com/r/linuxserver/code-server https://hub.docker.com/r/linuxserver/code-server + caddy configured with basicauth.
- hk__2 6y agoNote you can open files through SSH in Vim. This is better that ssh'ing on a machine that runs Vim, because all the editing is done on your machine. It only uses the connection when you save the file.
- retzkek 6y agoEmacs too, of course: https://www.emacswiki.org/emacs/TrampMode https://www.emacswiki.org/emacs/TrampMode Despite that I still tend to ssh to machines and use a local editor, because I typically don't want to just edit files, I also want to run some commands in-between editing files.
- snazz 6y agoVS Code can do that as well (I think it might be how they implement WSL support too).
- mouldysammich 6y agoTramp will run whatever commands you want to run on remote server if you're running commands with `M-!` I use it for work sometimes, that + vterm and ssh makes for a fairly pleasant remote editing experience in emacs. LSP even works over tramp (kinda)
- z3t4 6y agoYou can also SSH -X and start a GUI app on the remote machine. (you can install Xserver on both Mac and Windows) Although you need low latency/ping or it will lag.
- onetom 6y agoI have tried this setup recently (with XQuartz) but it had abysmal performance compared to a Tiger VNC session with a Linux server and a macOS client. I couldn't figure out why. I remember it was working better decades ago over 10Mbit/s connections, running on 80486 machines... Maybe between 2 Linux machines running the same Xorg versions would work better?
- mr_toad 6y ago> half-decent IDE in the browser https://aws.amazon.com/cloud9/ https://aws.amazon.com/cloud9/ It was more than half decent last time I used it.
- fmakunbound 6y agoLooks like I won't be needing that sweet Apple Silicon, after all.
- DSingularity 6y agoWhy? If we indeed go remote dev we need laptops with exceptional energy efficiency for browser workloads.
- mixmastamyk 6y agoNot to mention not burning ourselves slaving over a hot laptop.
- pavlov 6y agoMaybe not in a browser, but in VS Code with custom extensions — definitely happening already.
- arawde 6y agoMy primary workflow on side projects right now is VS Code with an ssh connection to a GCP instance. It's very quick, and I can run it across both my desktop and laptop, so if I want to go work in the living room I can get up and get to work immediately on whatever was open in the workspace. The only downside is that the difference between extensions installed on the remote and locally is a little confusing, but the extension ecosystem in VS Code has satisfied all of my use cases. I've also run into some occasional ssh hangups on weak connections, but I haven't experienced that isuse in a few months. For years I was a linux guy, and now I see no reason to go back, because I can just remotely access a linux environment from whatever system I'm already on. Less time spent swapping between operating systems to work on projects, and a consistent environment, are both huge features.
- thekyle 6y agoI've been experimenting with VS Code remote for the past few weeks, and I'm really enjoying it. I have a Linux desktop that I run headless in the closet and can connect to it from thin clients. I recently bought the base model new Macbook Air to replace my Linux laptop which I'm hoping will give me the best of both worlds: thin and light laptop with great battery life which I can connect to a powerful Linux server/desktop for development. This way I don't have to spend so much money on expensive desktop replacement laptops.
- arawde 6y agoThis is actually a good idea, I've been meaning to turn one of my old laptops into a media server, but it hadn't occurred to me to use it as a development server as well. I'm in a similar boat as the Macbook Air, but I was going to go for a Surface Book because I want the detachable tablet features
- 6y ago