Hacker News new | past | comments | ask | show | jobs | submit login
Coder (Visual Studio Code in browser) goes open source (coder.com)
60 points by darrinm on March 5, 2019 | hide | past | favorite | 34 comments



I used to work at a place where we all used the enterprise server version of RStudio, which also runs in a browser.

There was a lot of good thing about that setup. Nobody could walk home with code, and no code was lost on somebody laptop.

Execution happened on a server, much more powerful than any dev machine.


>no code was lost on somebody laptop.

Doesn't full disk encryption solve that as well as putting it in the cloud (and you'd need encryption anyway)


Not necessarily lost to a 3rd party. Just if somebody was working on fixing a blocker and doesn’t push progress before going home and then losing the laptop on the train or something.

The real scenario would be “we need to finish this blocker that Jim is working on, but he is sick and hasn’t pushed progress to git.”

As to syncing with cloud. Why not just have it on cloud and let people ssh into the server. And then do one better better, and give them a full IDE instead of teaching them emacs or vim.


How often do you think, somebody walk home with code, happened ?


When you code on your laptop computer and push to git; every day.

The problem wouldn’t actually be people taking code home, it would be taking the data they are working on, as this could be highly sensitive data (think medical history) and regulation wouldn’t allow for it to leave the company location.


Your medical data goes straight to people's all day every phones through Epic's web interface.


Maybe in the states. Where I live the only Epic around makes fortnight.


Has anyone tried this and compared it to https://www.theia-ide.org/?

First thing off the bat I notice is that Coder looks harder to deploy or try out, Theia was super easy, on the landing page they had a docker one liner:

docker run -it -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia:next


The biggest difference vs dockerized theia and coder is I have access to the actual server instead of just the docker container.

This means I have the full power of the underlying server, access to my docker on the host and any other features.

This also means though that it is direct shell access over the web and should be locked down like Fort Knox.

I've put this behind Traefik with httpauth for testing and it works well so far.


Which one gives you access to the actual server?


theia looks pretty cool, but didn't look like intellisense was built in to that docker image. Is there an easy set of language plugins, and a way to get them to pop into that docker image?


Which language are you looking for? There are more images: https://github.com/theia-ide/theia-apps and you can build custom with own set of Theia/VS Code extensions.


Dockerfile is being worked on.


Why does an open source browser code editor ask for my phone number to sign up?


This got me too. It looks like a neat project, but the phone number requirement seems a little off. There doesn't appear to be a real need for it and running through their privacy page isn't helpful.


Its to prevent abuse as you get a real VM to run code server in.


Visual Studio Code in browser sounds a lot like Visual Studio Code itself.



Neat!


Does it work well on iPad with an external keyboard? I've been surprisingly frustrated with the lack of support for iPad by in-browser IDEs.


Monaco doesn't support mobile browsers, so no, probably not well.


Seems that (at least one) related bug got fixed in WebKit (https://bugs.webkit.org/show_bug.cgi?id=149054#c17), but I haven't tested with the latest iOS betas


The last time I asked about that on here someone suggested codesandbox.io. It has an option in the settings to use VSCode as the editor.


Did you end up trying? Coda has been tough for me to adjust to.


Requires a login to try. Should have non-login trial, or youtube video.


Github login also requires a phone number, which is definitely something I'm not willing to enter.


Whaaa? Is that a new thing? I've never needed to supply my phone# to GitHub, and there's no # associated with my profile. Also, I agree with you in being a little hesitant to give it out and is precisely why I didn't go further than the sign-up page for coder.com.


Is it true? I don't recall github ever asking for a phone number when logging in


Maybe they mean Coder asks for the phone number when one logs in with Github.


This blog post at least has a few useful animations: https://coder.com/blog/coder-v0-2-providing-all-of-vs-code-i...


It looks super easy to host your own server. The instructions consist of:

> 1) Download a binary (Linux and OSX supported. Windows coming soon)

> 2) Start the binary with the project directory as the first argument

> code-server <inital directory to open>

From: https://github.com/codercom/code-server

Disclaimer: I haven't actually tried it.


x86/x64 only, by the way. I couldn't get it to build VS Code on a Raspberry Pi and the binary releases are only for x86/x64.


Is this based on the same JS code editor as VS Code?


It is VS Code. The build script grabs a copy of VSC, patches it, and builds it.




The deadline for YC's W25 batch is 8pm PT tonight. Go for it!

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

Search: