News for hackers. Stuff that matters.
Re:Vscode.dev by ARandumGuy on Wednesday October 20, 2021 @12:39PM (#28932800)
This seems really cool, and seems like it took a lot of man hours to put together.

However, I'm not sure who this is for. Downloading and installing an application is not a particularly big ask for the type of people who use VSCode. The browser version will always be a compromised experience, given the inherent limitations of browser applications. Even if it works 99% of the time, that 1% would add enough friction to make it more of a hassle then it's worth.

The post gave some use cases involving hardware that can't easily run Desktop VSCode (e.g. iPads and Chromebooks). I just don't see that being much of a use case though, except in desperate circumstances where a more capable dev machine isn't available.

If there are some use cases I'm missing, I'd love to hear about them! This is a pretty new concept, and I certainly don't know how everyone likes to code. But from my perspective, I struggle to see any situation where someone would choose to use this, and few situations where someone would have to.

Re:Vscode.dev by Androider on Wednesday October 20, 2021 @12:57PM (#28933028)
Surely shoving VSCode into a tab is just step 1. Think about what this could do, that your local app couldn't.

Off the top of my head: Complete remote state. Open vscode.dev on your desktop, work for a while. Then open vscode.dev on your Macbook Air later, and be in _exactly_ the same state. I don't mean, the same project, I mean the text cursor is at the same position in the same file with the same set of tabs open.

Need a GPU for some CUDA work? The only question is how many GPU cores would you like.

Could your next engineering hire's onboarding guide be: open vscode.dev/company/workspace, click the "run all tests" button. OK, you're done, please pick the topmost "ready to start" ticket from the queue.

Re:Vscode.dev by 91edec on Wednesday October 20, 2021 @01:58PM (#28933763)
This already exists with github codespaces. https://github.com/features/codespaces
Re:Vscode.dev by geoffeg on Wednesday October 20, 2021 @02:01PM (#28933798)
Sadly still limited to teams or enterprise users. I hope they open it up to individual contributors soon.
Re:Vscode.dev by dlisboa on Wednesday October 20, 2021 @02:34PM (#28934317)
I've used Gitpod (https://www.gitpod.io/) for this same scenario and it's available for anyone, way cheaper than Github Codespaces (possibly free depending on your usage), and it works really, really well. It felt like coding in the future.
Re:Vscode.dev by 1shooner on Wednesday October 20, 2021 @10:27PM (#28939553)
We're starting to set up Gitpod for LAMP apps (e.g. Drupal), and it seems to work well with docker-in-docker running each part of that stack in their respective containers.
Re:Vscode.dev by ghuntley on Thursday October 21, 2021 @12:33AM (#28940300)
Geoff from Gitpod here. Come join https://www.gitpod.io/chat <3
Re:Vscode.dev by SCUSKU on Wednesday October 20, 2021 @03:52PM (#28935423)
I have been a very happy user of VSCode Remote - SSH. I have a VM in AWS with a GPU that I SSH into using VSCode, and I can use VSCode as if I were running it locally, with all of the computer power of a big server. Would highly recommend!
Re:Vscode.dev by ghuntley on Thursday October 21, 2021 @12:37AM (#28940327)
Geoff here from Gitpod. I have a bare metal machine that I remote into and use for supportive tasks such as (in a couple moments) exploring the TruNAS marketplace ecosystem. My primary computer these days is an iPad - see https://ghuntley.com/anywhere

There are big changes happening in development ecosystem which will happen faster then people realize. Soon more than 80% of the IDE market will have built-in functionality to connect to developer environments running in the cloud, while keeping the editing experience you are used to from your Desktop application in a very short time and Gitpod’s IDE architect went into detail about this over at http://gitpod.io/blog/cloud-ide-history

Re:Vscode.dev by moonchrome on Wednesday October 20, 2021 @01:47PM (#28933617)
But this is already far better if you use code server [1] because you get your extensions/compilers/etc. running on the same host

This particular implementation (opening local files via browser) sounds rather useless.

[1] https://github.com/cdr/code-server

Re:Vscode.dev by gkfasdfasdf on Wednesday October 20, 2021 @03:27PM (#28935035)
Saving state sounds pretty awesome indeed, but does it really work like that? From the blog post it sounded like it is opening files on the local filesystem.
Re:Vscode.dev by tmaly on Thursday October 21, 2021 @12:56PM (#28947410)
I look at this as an opportunity for beginners to get started. Makecode does a good job for kids. But at some point all the current languages require you to install something or get an IDE going. Having the ability to do everything in the browser with little setup on an inexpensive Chromebook can go a long way for a beginner.
Re:Vscode.dev by coldtea on Wednesday October 20, 2021 @01:11PM (#28933198)
>However, I'm not sure who this is for. Downloading and installing an application is not a particularly big ask for the type of people who use VSCode

It's like how nerdy types could easily slap together their own Dropbox, with rsync and duct tape (as per the famous comment), but most didn't - plus the world is not just full of types who'd do it. And then MS can start adding all kinds of collaboration tools built in, from pair coding to bug tracking, time tracking and so on.

I can imagine an enterprise giving devs just this + something like local/Cloud VPS/CI/CD environment to work in. Immediately reproducible, no hassle, secure, and so on.

>The browser version will always be a compromised experience, given the inherent limitation

Well, offline VSCode is a glorified browser as well.

Re:Vscode.dev by redleggedfrog on Wednesday October 20, 2021 @02:17PM (#28934019)
"I can imagine an enterprise giving devs just this + something like local/Cloud VPS/CI/CD environment to work in."

That sounds horrible.

Re:Vscode.dev by dlisboa on Wednesday October 20, 2021 @02:53PM (#28934577)
It's really freeing when coupled with something like Gitpod or CodeSpaces. You join a new project and you have ZERO setup to do on your own. You can open up a new branch and start working in seconds. I don't have to worry about whether my computer has enough memory to keep up with Docker, if it's fast enough for this new project, if I have to install version managers to separate runtimes for each project (rbenv, pyenv, nvm, etc).

To perform experiments it's even better. I have multiple directories with sample/initial projects from many languages where I was just feeling out a new framework or library or concept. Then months pass and I can't run them again because the specific dependency is no longer installed on my laptop. Now I can create these new study projects and know that it'll run in seconds when I get back to it.

Plus not all of us can work from highly performant workplace-provided workstations. I have just my laptop to work with. Imagine running Docker and Chrome and Spotify and maybe macOS decided that was the right time to hog my disk and do file indexing while I'm running tests...it's a hassle I'm glad to be rid of. I'd rather a company get me a Gitpod/Codespace and I can separate things cleanly.

Re:Vscode.dev by pjmlp on Wednesday October 20, 2021 @02:42PM (#28934428)
That is how many of us used to work on UNIX and similar timesharing OSes.

The cloud + browser is back to the future.

Re:Vscode.dev by noizejoy on Wednesday October 20, 2021 @03:56PM (#28935505)
Brings back sweet memories of Multics[0], which predated Unix by quite a bit:

[0] https://en.wikipedia.org/wiki/Multics

Re:Vscode.dev by pjmlp on Wednesday October 20, 2021 @04:32PM (#28936081)
My first experience with such setup was the DG/UX at the university campus, where we had a mix of classical green/ambar phosphor terminals, and a couple of X-Windows thin clients from IBM to connect to it.

Regarding Multics, it was a failure only for Bell Labs themselves, as the project kept going and had still a couple of years for itself.

https://multicians.org/myths.html

Re:Vscode.dev by Zababa on Wednesday October 20, 2021 @02:58PM (#28934643)
That makes a lot of sense. Thanks for the insight.
Re:Vscode.dev by JasonCannon on Wednesday October 20, 2021 @02:12PM (#28933949)
>Well, offline VSCode is a glorified browser as well.

Not really, it may use electron for the front end, but a huge amount of what makes vscode useful and fast is the native binaries that power all of its functionality.

Re:Vscode.dev by Zababa on Wednesday October 20, 2021 @02:56PM (#28934620)
What are those native binaries? I know that VSCode ships with ripgrep, but that's the limit of my knowledge. Those binaries probably could be compiled to WASM to make VSCode fully run in a browser too.
Re:Vscode.dev by JasonCannon on Wednesday October 20, 2021 @06:16PM (#28937523)
The Language Servers that power all of the intellisense and syntax highlighting and stuff are all native code. As are the compilers and everything that make VSCode more than just a text editor.
Re:Vscode.dev by aozgaa on Wednesday October 20, 2021 @07:11PM (#28938075)
I think the typescript compiler and language service are implemented in typescript and compiled to JavaScript.
Re:Vscode.dev by pjmlp on Thursday October 21, 2021 @02:30AM (#28941085)
And none of them require Electron, because they run out of process.
Re:Vscode.dev by afiori on Thursday October 21, 2021 @03:14AM (#28941362)
well, the browser is not going to provide them.
Re:Vscode.dev by pjmlp on Thursday October 21, 2021 @04:02AM (#28941672)
The server backend will, and this is also a way to run VSCode on system browser without Electron bloat.
Re:Vscode.dev by Zababa on Thursday October 21, 2021 @02:24AM (#28941038)
Good points, you still have to rely on an OS for all that stuff.
Re:Vscode.dev by charrondev on Wednesday October 20, 2021 @10:24PM (#28939537)
Language servers for any non JavaScript language? Python, rust, Go, C++, and many more.

Additionally the ability to say.. start a web server and run it? The ability to run the actual generated binaries from any of those other languages?

Re:Vscode.dev by coldtea on Thursday October 21, 2021 @05:17AM (#28942143)
>Additionally the ability to say.. start a web server and run it? The ability to run the actual generated binaries from any of those other languages?

You could trivially had those with VSCode in the browser. They just run on a remote build/CI/CD environment.

Re:Vscode.dev by Voloskaya on Wednesday October 20, 2021 @07:42PM (#28938328)
> It's like how nerdy types could easily slap together their own Dropbox

Let's be honest, setting up and maintaining your dropbox clone, versus installing one executable once, are not the same kind of "easy".

> And then MS can start adding all kinds of collaboration tools built in, from pair coding to bug tracking, time tracking and so on.

But they can do that just as easily today with the vscode app. The fact that this runs in your browser does not help (or hinder) at all: As you said, offline VSCode is just a glorified browser.

> I can imagine an enterprise giving devs just this

presumably they would have to give you a laptop to access it, and any laptop that can run it in the browser can run it offline, this is 99% the same codebase.

Overall I also don't understand where this fits between offline VSCode and Codespaces. Codespaces makes sense because you don't even have to clone your code, and the compute/build happens elsewhere. Plus collaborative features can be added with no hassle because authentication is already baked in.

But this seems like it brings 0 value over offline, except skipping a 30 seconds install, once.

Re:Vscode.dev by coldtea on Thursday October 21, 2021 @05:20AM (#28942153)
>But they can do that just as easily today with the vscode app. The fact that this runs in your browser does not help (or hinder) at all: As you said, offline VSCode is just a glorified browser.

On the contrary, it does help a lot. Offline VSCode might be just a glorified broswer, but web VSCode will hook automatically with the vendors development/build/code repo backends. And you could have the appropriate environment (eg. a linux version x, with y libs, and z servers running) per project, available everywhere you go with no setup of your own.

>presumably they would have to give you a laptop to access it, and any laptop that can run it in the browser can run it offline, this is 99% the same codebase.

Yes, and then you can install this or that, diverge from the common environment, and so on. And you have to setup all of those, even if it's just some docker instance running locally or some cloud stuff you access.

With the bundled web-vscode+cloud-backend, you wont have to.

>Codespaces makes sense because you don't even have to clone your code, and the compute/build happens elsewhere. Plus collaborative features can be added with no hassle because authentication is already baked in.

Codespaces is the whole idea behind this too. In other words, this is just a component of codespaces / a codespaces type deal.

Re:Vscode.dev by Voloskaya on Thursday October 21, 2021 @09:54AM (#28944396)
> web VSCode will hook automatically with the vendors development/build/code repo backends. And you could have the appropriate environment (eg. a linux version x, with y libs, and z servers running) per project, available everywhere you go with no setup of your own.

But again, that is codespaces. They have rolled this out months ago, and it does exactly what you are talking about, with vscode in the web and all. And I agree that it makes sense.

Vscode.dev looks like it could have been an early prototype of codespaces, with 10% of the features. So I still don't understand why this is coming out after codespaces is already in production.

Re:Vscode.dev by Zababa on Wednesday October 20, 2021 @02:55PM (#28934604)
> Well, offline VSCode is a glorified browser as well.

It's the opposite, you download an OS that runs VSCode. That OS is a web browser. It's just that it's an OS that runs on other OSes.

Re:Vscode.dev by coldtea on Thursday October 21, 2021 @06:51AM (#28942706)
>That OS is a web browser.

The key point os "glorified browser" being "you still run non-natively in a sandbox, whether it is JS or web assembly, and you still call the DOM for drawing".

Re:Vscode.dev by abrowne on Wednesday October 20, 2021 @09:05PM (#28938991)
Ubuntu is my hypervisor.
Re:Vscode.dev by ghuntley on Thursday October 21, 2021 @12:40AM (#28940336)
I use a mixture of Gitpod, GitHub Codespaces and Proxmox. https://ghuntley.com/anywhere
Re:Vscode.dev by pjmlp on Thursday October 21, 2021 @02:29AM (#28941076)
Why bother with all of that when you could just ssh (nee telnet), remote X or VNC sessions to a server?

Apparently current generation never worked in classical UNIX development environments.

Re:Vscode.dev by glitchc on Wednesday October 20, 2021 @01:26PM (#28933367)
Not to mention corporate rules.
Re:Vscode.dev by CJefferson on Wednesday October 20, 2021 @02:34PM (#28934299)
I teach coding to new programmers, in particular kids, and every step is a pain. In particular, since we had to go fully remote it's really hard to even get people started.

Anything where I can just say "go to this website, start typing python/javascript, see cool stuff happen" is cool.

Re:Vscode.dev by jonny_eh on Wednesday October 20, 2021 @02:59PM (#28934665)
Teaching code is hard enough, anything that makes the process easier, especially at the start, is greatly welcome.
Re:Vscode.dev by ghuntley on Wednesday October 20, 2021 @10:11PM (#28939475)
Hey, Geoff from Gitpod here. I agree! Check out https://gitpod.io/blog/workshops-as-code
Re:Vscode.dev by wffurr on Wednesday October 20, 2021 @01:00PM (#28933077)
FTA:

"This simple gateway to the local machine quickly opens some interesting scenarios for using VS Code for the Web as a zero-installation local development tool, such as:

* Local file viewing and editing. Quickly take notes (and preview!) in Markdown. Even if you are on a restricted machine where you cannot install the full VS Code, you may still be able to use vscode.dev to view and edit local files.

* Build client-side HTML, JavaScript, and CSS applications in conjunction with the browser tools for debugging.

* Edit your code on lower powered machines like Chromebooks, where you can't (easily) install VS Code.

* Develop on your iPad. You can upload/download files (and even store them in the cloud using the Files app), as well as open repositories remotely with the built-in GitHub Repositories extension."

Also various interesting URLs are now possible:

"For example, change https://github.com/microsoft/vscode to 'https://vscode.dev/github.com/Microsoft/vscode'.

For Azure Repos, do the same. Change https://dev.azure.com/… to 'https://vscode.dev/dev.azure.com /…'."

"As you can see, vscode.dev URLs are a powerful way for us to deliver new, lightweight experiences. Another example is that Live Share guest sessions will also be available in the browser through the https://vscode.dev/liveshare URL. The sessionId will be passed to the extension to make joining a seamless experience."

Re:Vscode.dev by dolmen on Thursday October 21, 2021 @12:35PM (#28947038)
> Local file viewing and editing. Quickly take notes (and preview!) in Markdown. Even if you are on a restricted machine where you cannot install the full VS Code, you may still be able to use vscode.dev to view and edit local files.

If the sysadmin has blocked install of VSCode for security reason, I would also expect (s)he also blocked access to the special API that gives access to local files from browser.

Re:Vscode.dev by peakaboo on Wednesday October 20, 2021 @01:37PM (#28933480)
Your solutions are to problems that a decent developer doesn't accept anyway.

Working on locked down machine where you are not allowed to have visual code? Seriously?

Working on a chromebook? Why?

Sorry to be negative but I feel sometimes you tech guys get excited about solutions to problems that doesn't actually exist in the real world.

Re:Vscode.dev by ncallaway on Wednesday October 20, 2021 @01:45PM (#28933598)
> about solutions to problems that doesn't actually exist in the real world.

Problems that don't exist, or that you personally don't have?

Why is enabling development on a Chromebook a bad thing? You ask "Why?", but it seems a more reasonable question to me is: "Why not?" This seems to pull one of the bricks away from "why not?" for working on a Chromebook. I don't see why that's a bad thing.

Re:Vscode.dev by LuciusVerus on Wednesday October 20, 2021 @01:52PM (#28933693)
This "decent developer" thing sounds a bit gatekeepy - this solution isn't here to replace a fancy IDE on a MacBook Pro, it's here to help make coding easier to beginners or on shitty machines. I'd have loved to use this in high school/college instead of relying on the IDEs already installed in the lab.
Re:Vscode.dev by mynameisvlad on Wednesday October 20, 2021 @02:13PM (#28933970)
It's entirely gatekeepy. We should be doing everything we can to encourage development where people are at, not trying to say that unless you do it a certain way (which costs a lot of money for a student, or someone in a developing country) you're not a "decent developer".
Re:Vscode.dev by WorldMaker on Wednesday October 20, 2021 @02:28PM (#28934201)
Plus there are more than enough "dark matter" developers making an otherwise good living at Fortune Xty companies that are afraid of technology and love micro-management and require all software to install to go through 6 month+ review processes. I've known some fantastic developers that will put up with that (and more), code in Notepad and Perforce if they have to, so long as they make a living wage and can clock out directly at 4:59pm every day. (In some of those cases there is maybe hope for them that getting a personal internet access firewall exception for vscode.dev might only be one form and a 30 minute review versus that 6 month+ process to get VS Code installed properly. I appreciate that it may be a nice new option for them by existing.)

It's not a lifestyle that I want for myself, but that doesn't mean I don't respect those folks as "decent developers". It takes a lot of fortitude to build software in those sorts of constraints.

Re:Vscode.dev by WorldMaker on Wednesday October 20, 2021 @03:49PM (#28935372)
It may be late in October, but I guess some people don't appreciate horror stories of actual development jobs that exist. If I could find a way to package that and sell it as Developer Haunted House experiences, I imagine I could make a quick buck.
Re:Vscode.dev by Gracana on Wednesday October 20, 2021 @01:53PM (#28933709)
Even if everything about remote workspaces were bad for professional developers, they will accept it if that's what companies are offering. Just like they accepted open offices, standup meetings, all-day video calls, agile, etc. And there's a lot to like for an employer: spend less on computers, reduce IT costs by locking down machines, get new employees productive sooner, make developers more interchangeable...

It's going to happen, and it doesn't matter much if employees like it or not.

Re:Vscode.dev by pjmlp on Thursday October 21, 2021 @02:34AM (#28941101)
It has happened since UNIX/VMS/.... systems exist.

That is a typical enterprise setup, thin clients with development taking place on a beefy server.

For Windows systems, you get a VM with RDP or Citrix access.

And native cloud development, is exactly the UNIX/VMS/.... model with fancy UI.

Re:Vscode.dev by easton on Wednesday October 20, 2021 @02:36PM (#28934335)
You should consider yourself lucky to never have been under the boot of a crappy IT department that won't let you have diddly (and even if they let you have diddly, it's five years out of date).
Re:Vscode.dev by wffurr on Wednesday October 20, 2021 @10:50PM (#28939662)
These aren't my solutions, they are the ones presented in the article.

That said, I do a lot of professional software engineering with a Chromebook and a Linux server, so.

Re:Vscode.dev by pjmlp on Wednesday October 20, 2021 @02:42PM (#28934440)
Welcome to enterprise IT world.
Re:Vscode.dev by tppiotrowski on Wednesday October 20, 2021 @12:49PM (#28932931)
Downloading and installing is a big ask if you don’t have the required system permissions (computer labs, work issued laptops, Chromebooks).

Another data point: I used to compile VSCode for ARM to run it on a RaspberryPi and had to do it anytime there was an update.

Re:Vscode.dev by peakaboo on Wednesday October 20, 2021 @01:40PM (#28933528)
So you as a developer are not allowed to install a code editor... To edit code... Which is... Your profession...

So you need to use a Web browser as a code editor because... Installing a binary to the disk is not allowed?

It's crazy!

Re:Vscode.dev by IggleSniggle on Wednesday October 20, 2021 @03:44PM (#28935272)
I think the craziness of it is highly context dependent. If you're expected to be running everything in "the cloud" anyway, then as long as you have execute permissions on the cloud computer you are authorized to...ok no now wait a minute, you're right. This is crazy no matter how you slice it.

M: "Ok, here's your company issued computer. You're not allowed to do anything with it, because security and IP."

D: "Ok, but I need a computer to compile unique code, and I need to be able to execute that code..."

M: "Good news! We bought lots of cloud compute, so you can do whatever you need or want with your compute!"

D: "...how is this different."

M: "Well you see, we didn't issue those computers. So if something bad happens, it isn't because of us. It's because of the cloud."

D: "...but if something 'bad' only happens because of the code that I wrote, isn't it still bad whether its running here or there?"

M: "Fine! If something bad happens, it's your fault, not the cloud, because we didn't do it, and of course the cloud is infallible."

D: "I'm not working here."

M: "..."

D: "..."

Re:Vscode.dev by afiori on Thursday October 21, 2021 @03:24AM (#28941409)
Or the steelmanned version

M: "Here is your company laptop for policy reasons it is the same as every other laptop in the company"

D: "But I need to install and compile more stuff..."

M: "We know so we have provided a developer environment tailored to your needs, we understand it might be inconvenient but it might also allow for :generic inspirational stuff:

D: "oh, ok"

Re:Vscode.dev by oriki on Wednesday October 20, 2021 @02:24PM (#28934136)
You've never wanted to edit text/code on a computer that isn't yours before? There are a lot of cases where I can see this coming in handy for making quick edits as an IT professional, especially in cases where I need to mess with a slightly complex file on an end user's machine but don't have the time or desire to copy it back to my own.

It's a tool, you don't have to use it.

Re:Vscode.dev by conductr on Thursday October 21, 2021 @01:01AM (#28940493)
I work in finance and as you’d guess my main app is Excel. 9/10 big companies I worked for are on a >5 year old license at any given point. Since it’s so heavily tied in with outlook, exchange, etc. and they typically tie a office version to a windows version these days, it’s so frustrating constantly having to use outdated software for no good reason. As you said, it’s crazy!
Re:Vscode.dev by dolmen on Thursday October 21, 2021 @12:41PM (#28947140)
There are good reasons: some of your finance colleagues have done crazy spreadsheets with that old Excel version and everybody fears of breaking business if those critical spreadsheets break.
Re:Vscode.dev by conductr on Thursday October 21, 2021 @03:04PM (#28949404)
That’s not usually the case. That’s what IT department thinks is the reason, but finance can and does deal with broken files all the time for a variety of reasons.

I think what you’re referencing is when the IT department asks me and my team, do any processes break if we change version’s? And the answer is always, please we’ve been asking for years. Occasionally there is an add on we use that becomes a dependency. I feel like that was more of an issue in the past. Now that basically everything is 64 bit compatible, we do some testing and tell IT no risk here.

Excel has good support for rolling forward. Not always backwards compatible, but going forward breaking is quite rare. Things like XLS to XLSX happen rarely and they still largely work moving forward.

When I talk to the IT guys it’s more about reliance on exchange servers, outlook/calendar, and of course the corporate licensing that makes upgrading just for us finance guys difficult

Re:Vscode.dev by joe5150 on Thursday October 21, 2021 @12:37PM (#28947076)
If you're an employee with a work computer you don't have an admin account on, there's a reasonable chance you can convince someone to install something you need. If you're a student in a computer lab, that's likely out of the question.
Re:Vscode.dev by pjmlp on Wednesday October 20, 2021 @02:44PM (#28934461)
Yes, quite common on Fortune 500.
Re:Vscode.dev by tex0 on Thursday October 21, 2021 @01:03AM (#28940502)
Well, works for us.
Re:Vscode.dev by joe5150 on Thursday October 21, 2021 @12:34PM (#28947031)
VSCode will happily (and automatically) install under the user directory with no admin privileges on Windows, FWIW.
Re:Vscode.dev by windowsrookie on Wednesday October 20, 2021 @12:47PM (#28932899)
Tablets for sure. There are no good coding apps on Tablets. Say you're going on a trip somewhere and don't feel comfortable bringing your $3,000 laptop. Pickup a $150 android tablet + keyboard. Or low income individuals, you could start coding right from your phone without having to buy anything new.
Re:Vscode.dev by pjmlp on Thursday October 21, 2021 @02:36AM (#28941111)
There a couple of nice coding apps in Android and iOS, naturally they are mostly for coding on the train/plane, or tying out ideas at the local coffee shop, but that is good enough for me.
Re:Vscode.dev by jpindar on Wednesday October 20, 2021 @02:34PM (#28934301)
I just tried it and it mostly works in Chrome on Android, except that I can't right-click because Chrome uses that to go back.

Anyone know how to disable that in Chrome?

Re:Vscode.dev by matthewhammond on Wednesday October 20, 2021 @01:01PM (#28933087)
For me the point is more around generally pushing things towards the cloud and away from snowflake local environments. One click app generation from templates, one click deploys of your app to ephemeral environments for testing and sharing... all without requiring any setup, and integrated into GitHub for collaboration. Want to onboard someone to working on your app, just send them a hyperlink to the repo.
Re:Vscode.dev by WorldMaker on Wednesday October 20, 2021 @02:19PM (#28934058)
I've used the github.dev "." shortcut (on any repo in Github press dot to jump to github.dev) a few times to browse the code "more comfortably" with many of my VS Code extensions (via Settings Sync) without needing the time to clone locally. (There is a way to get one of the Github extensions locally to give you a Remote Repository experience in a local VS Code window, but that dot shortcut is much more convenient.) I've even forked and made small (mostly Markdown) PRs that way now.

I'm excited that VSCode.dev now supports the same thing with my company's current Azure Repos. Maybe they can give us a dot shortcut there now too. (If anyone is still active enough work on it to make such a change.)

Though I think the big new use case (that a lot of people are overlooking) is the new Theme Preview Playground use case in the article towards the bottom is a pretty great one. For instance, here's the VSCode theme I currently use because it shiny and rad and totally tubular:

https://vscode.dev/theme/jaredkent.laserwave

You don't have to download the theme to try it. It opens a fake workspace with several examples of code highlighting to get a feel for the theme. If you've got Settings Sync turned on you'll see how it interacts with your other settings (like which side you keep the "explorer bar" on) and if you decide to Keep the theme by clicking the button in the notification it pops up, your other devices will install the extension automatically and start to use it as soon as they next sync.

It's pretty neat and the article implies it's the first "playground" of this sort and probably not the last as they get other ideas of extension types people might prefer to test before they download.

Re:Vscode.dev by n8cpdx on Wednesday October 20, 2021 @12:42PM (#28932831)
Students and kids with chrome books - a huge amount of middle and high school students in the US. Students who Microsoft would like to grow up thinking software development = Visual Studio.
Re:Vscode.dev by Godel_unicode on Wednesday October 20, 2021 @03:29PM (#28935067)
> ...the type of people who use VSCode

This type of gatekeeping helps no one. We should be optimizing for lowering barriers to entry, not justifying making an already hard problem (learning to code) harder.

> ...except in desperate circumstances...

Some 15% of American adults are smartphone only. That percentage rises very quickly once you look outside of the G20. Those are also some of the people most likely to have their lives drastically improved by having access to the ability to code.

The fact that you don't have a usecase for a tool absolutely does not mean that such a usecase does not exist, nor does it make that usecase less valuable.

Re:Vscode.dev by maybeOneDay on Wednesday October 20, 2021 @12:45PM (#28932881)
Some non western countries have student/junior freelance developer populations comprised almost entirely of people using mobile devices for development. I imagine this will be a god send for them
Re:Vscode.dev by jackson1442 on Wednesday October 20, 2021 @05:09PM (#28936663)
> The post gave some use cases involving hardware that can't easily run Desktop VSCode (e.g. iPads and Chromebooks). I just don't see that being much of a use case though, except in desperate circumstances where a more capable dev machine isn't available.

This is _huge_ for education. Many school districts are distributing managed chromebooks to each student because of their low cost of ownership and really all you could code on with those was replit.com. VS Code in the browser allows you to expose students to a programming environment just like what they'd use professionally.

This isn't meant for the developer with the latest 16" MacBook Pro, it's meant for people who can't necessarily install vscode on their machine. Maybe it's on a shared machine at a library and they can't install software, or maybe it's a Chromebook.

Re:Vscode.dev by Marciplan on Wednesday October 20, 2021 @05:12PM (#28936696)
I’m excited for it being able to, I believe, do a bit of coding on my iPad :)
Re:Vscode.dev by pfisherman on Wednesday October 20, 2021 @03:49PM (#28935362)
I dunno. It would be pretty sweet to not have to bring a laptop with me when I travel / go places. Just whip out the iPad, open a browser, connect to remote host, and get to work.

The caveat of course is that this supports connecting to a remote host.

Re:Vscode.dev by newsbinator on Wednesday October 20, 2021 @01:13PM (#28933215)
In Safari:

> Your current browser doesn't support local file system access.

> You can either upload single files or open a remote repository.

Re:Vscode.dev by patrickserrano on Wednesday October 20, 2021 @06:52PM (#28937865)
Honestly, this looks amazing for times when I'm in a meeting and want to look a piece of more complex code but don't have a local copy of the repo. The Azure DevOps repo UI leaves a lot to be desired, especially if you know where a piece of code is called from but don't know where it's defined off the top of your head.
Re:Vscode.dev by makeitdouble on Wednesday October 20, 2021 @09:20PM (#28939118)
> iPads and Chromebooks). I just don't see that being much of a use case though, except in desperate circumstances where a more capable dev machine isn't available.

A number of schools dispatch iPads and Chromebooks to their students. They can hook a keyboard and a mouse, and with vscode.dev they now have a decent dev machine.

Sure parents could buy a windows/linux/macos laptop, but outside of the cost, maintenance is not trivial (parents wishing to restrict access to whatever resource will have a harder time)

To push a bit farther, there are pretty powerful and usable Chromebooks, and iPads are now on par with most laptop when it comes to processing power, especially JS. Extending their role to be able to code a bunch is nothing to sneeze at.

Re:Vscode.dev by brundolf on Wednesday October 20, 2021 @03:31PM (#28935081)
I suspect those "inherent limitations" will continue disappearing over time. It wasn't that long ago that file-system access was one of the biggest ones. WASM and/or Workers could bridge the gap on language servers, building/running code, etc. Not much would be left at that point

And I think there are definitely cases where installing is a barrier to entry; think about people in locked-down enterprise environments, or students coding for the first time (on their own computers or otherwise). We're talking about an IDE becoming as readily available as Notepad (or even more so, since it's available on all platforms)

Re:Vscode.dev by rattlesnakedave on Wednesday October 20, 2021 @03:42PM (#28935239)
>However, I'm not sure who this is for. Downloading and installing an application is not a particularly big ask for the type of people who use VSCode.

True, but IMO doing anything we possibly can to get from individuals who want to code -> actually coding faster and easier with minimal setup is a huge win. I remember starting out using codeblocks for C++. My biggest hurdle was figuring out how to get a compiler integrated with the IDE. https://repl.it is doing first class work in this space. I highly recommend you check them out as well.

Re:Vscode.dev by jasonkester on Thursday October 21, 2021 @02:26AM (#28941050)
I'm not sure who this is for.

I guess it’s for me, 15 years ago, backpacking across Southeast Asia without a laptop and stopping at Internet cafes to work on a side project. Back then, I had built a little ghetto web ide out of a textarea and chosen php for the project in question because it didn’t need a compile step. Today, this would let me do my thing in c# as nature intended.

But then also, today has crazy fast two pound laptops that would fit in that tiny bag I had back then. And no Internet cafes anymore.

So maybe not for me today, I guess.

Re:Vscode.dev by paxys on Wednesday October 20, 2021 @03:34PM (#28935117)
Being able to run VS Code with only browser APIs and no Electron/Node.js is still a big win for PWA proponents even if it doesn't offer anything new.
Re:Vscode.dev by aquova on Wednesday October 20, 2021 @01:52PM (#28933691)
I'm not sure what the use of the standalone site is, however Microsoft has already integrated VSCode-in-a-browser into Github. If you go to a Github file and press . then that repository will open up in a VSCode instance in browser. It's quite useful to have it's search features rather than needing to clone down a project first.
Re:Vscode.dev by WorldMaker on Wednesday October 20, 2021 @02:34PM (#28934308)
This VSCode.dev standalone site adds Azure Repos support in addition to Github.dev's existing GitHub support, and they say it will be extendable by extensions so maybe hope for Gitlab/Bitbucket/Gitea/Sourcehut/who knows who else to add this sort of remote dev experience that the Github dot shortcut does.

Also, there's a new "Theme Preview Playground" which lets you write URLs to try theme extensions before you download them.

Re:Vscode.dev by outside1234 on Wednesday October 20, 2021 @03:44PM (#28935267)
The use case is Codespaces.

Codespaces is magic because it allows you to go from zero to fully configured dev environment, even for the most complicated environments, in five minutes via a preconfigured dev container

VSCode in the browser allows you to do this, but is only part of the story, and without the dev container, you miss the really valuable part of that story.

Re:Vscode.dev by pjmlp on Wednesday October 20, 2021 @02:39PM (#28934397)
Taking Electron to the death row.
Re:Vscode.dev by canada_dry on Wednesday October 20, 2021 @08:46PM (#28938845)
> I'm not sure who this is for.

Especially since many extensions are incompatible.