35 ms·
GitHub’s engineering team has moved to Codespaces
- whoomp12342 5y agowow, give up control of what tools i can integrate into my development life? sign me up!
- gedy 5y agoUnpopular opinion with a lot of my peers, but "fragile local dev environment" is usually a sign of an unwieldy, tightly coupled codebase with a lot of parts, scripts, etc. Trying to hide that complexity with docker or codespaces, etc is just a bandaid in many cases vs dealing with the root issues.
- jshen 5y agoThis has not been my experience. First, I work on lots of code bases and this is where a lot of the brittleness comes from. They don’t use the same versions of the same things. Second, C dependencies are a giant pain in the ass when you add the first problem above.
- cat199 5y agoMeanwhile, on BSD UNIX derivatives, I can 'make world' since the dawn of time...
- jshen 5y agoAh yes, then there is the third big complexity. Some devs are on Mac, some windows, some Linux, and a few rare people on BSD.
- remram 5y agoYou still have to grab the dependencies before running make, some of which you'll grab from apt/yum/chocolatey/macports, some you'll need to compile manually and put in a platform-dependent location, ... Then you can run `make world`. Of course, BSD make is not completely compatible with GNU make...
- umanwizard 5y agoOpenBSD and FreeBSD at least can compile themselves from /usr/src on a default install, fresh out of the box with zero additional packages.
- remram 5y ago"It can compile on a single platform from curated sources" is a very easy requirement to meet.
- jtsiskin 5y agoFor an org the size of GitHub, it’s not unreasonable that a local dev environment is difficult to accomplish
- annowiki 5y agoIn my experience, even with simple flask projects, I've found just the difference between Ubuntu and Arch to be irritating: 1. Ubuntu seems to have trouble with psycopg2 while Arch does not, so I often use psycopg2-bin just so Ubuntu developers can easily install the requirements (learned the hard way). 2. Some older (supported) editions of Ubuntu create extra lines in `pip freeze`, including `pkg-resource=0.0.0` which throws an error when installing on nearly any machine (including cloud versions of Ubuntu in Github Actions. I have an application that uses docker-compose and has Elasticsearch as an image. In order to run it, I have to expand the vm_max_map (or something, I forget). But there are different ways of doing this in Windows vs Linux. Differences between environments are legion. Unless a company wants to just send standardized laptops to every developer, it seems way better to just spin up a cloud vm that is already set. Plus, there's easier reproducibility in a cloud vm vs a physical machine (unless you want to reach for something like nixos, but hell, what company is equipped for that yet?
- l-p 5y ago> difference between Ubuntu and Arch The difference between Debian and Ubuntu is enough to be a nuisance. The Dell XPS laptop my employer provided cannot boot Debian and I'm stuck with Ubuntu. Same packages, maybe a version or two are more recent right? Nope. Aside from the egregious transparent snap installs when using apt (which can't uninstall snaps, thanks Canonical), there's a lot of minute details that amount to quite a time loss (that and having a laptop with no USB/RJ45/HDMI ports). Simple scripts that work on one OS and not the other, font scaling and rendering making my standard 1080p screen unreadable, absurd default configuration that makes WiFi unusable, etc. Glad I don't have to manage the same oddities for the actual work I do. Everything is simple once it's all Dockerized. But that's not true either. I had a different problem setting up the repository with every developer and they were all using the same OS. No repo in sources.list (how?), no docker group created when re/installing the docker package (why?), all kind of weird stuff happening. So you tell me there's a way to have all devs working and testing on the same environment? That's great! But it is _not_ worth handing over everything to Microsoft or any other third party. I'll never trust GitHub, GitLab, or any other forge with business-critial stuff. Host your own code, commit your dependencies, have your build script work locally. I've deployed through Git{Hub,Lab} outages and the leftpad fiasco, and the cost was insignificant. Host a mirror there for cheap if you want, that's what I do for my public projects (but after the copilot debacle how can I trust GitHub with anything?). And what if you're a remote team? You can't rely on the internet. My ISP was kind enough to remind me of this when I got my very first outage with them one hour before starting at my current company. As valuable a product GitHub is and Coderspace may be, it is a step closer to the Minitel 2.0 where everything is centralized and controlled by a single entity. It's not the internet, it's MSN at best.
- michaelpb 5y agoI'm totally with you here. Like, ideally you should be able to clone, install packages, and then do ``npm run start'' or ``python manage.py runserver'' or whatever, and the result should be a mostly functioning web app running locally. If it needs certain attached services, they should be 1) as standard/boring as possible (eg SQL, so you can have mocked versions of them for tests), 2) and added sparingly in only well-motivated situations (eg do you really need to have that caching DB, before you even have profiled real traffic?) IMO investing time to keep applications "normal" like this pays off in the long run. It keeps development closer to "greenfield", which causes a general multiplying effect. Tutorials are slightly more likely to work, 3rd party packages will be quicker to integrate, etc etc. (Note that this is separate from dev/prod parity, which is also good.)
- decebalus1 5y agoIt depends on how exactly the tools are used. If you're using docker for reproducible builds with locked-in/platform specific versions of dependencies that need to work seamlessly across platforms then that's pretty good. If you NEED docker/codespaces/etc.. because in order to do basic development and run tests you need N servers running with some specific state, duct taped with non-idempotent bash scripts then this type of stuff is just piling on tech debt.
- adrianmonk 5y agoI think a lot of times the reason local dev environments are fragile isn't because they're local, it's because they are an afterthought and not a lot of effort goes into making them good and stable: (1) On a team of developers, there usually isn't someone who is designated to be responsible for designing and maintaining a good dev environment. (2) Many devs don't have the expertise to do it. Build tools, operating systems, dependencies, and configuration management are a related but different skillset than coding. (3) Many devs don't want to work on it because they enjoy coding more. Just because you enjoy one type of work doesn't mean you enjoy the related work. (This also applies to writing documentation.) (4) Fixing / improving the dev environment is not rewarded. You need to get X feature done by Y date, and fixing the dev environment may slow you down. It provides a long-term benefit, but not one that is easily measurable, plus that benefit is off the radar when evaluating the contributions of someone whose primary role is coding. With this cloud environment, they've separated those responsibilities out and given them to a specialized team dedicated to it. IMHO, some of the success is probably due to the organizational structure, not just the technical differences.
- blueplanet200 5y agoI would quit so fast if my company forced me to use a web IDE.
- fridif 5y agoI write all my code on my personal laptop and then retype it into my company's IDE
- eru 5y agoI wonder if that's against your employment contract.
- fridif 5y agoProbably, but I am more likely to be fired for not doing work
- eru 5y agoYou might get fired plus sued.
- fridif 5y agoThis is a sentiment that is very typical among Singaporeans. I suspect it has something to do with the political/business climate over there. While the USA is also litigation happy, it actually takes an incredibly high amount of deliberate destruction for an employer to succeed in suing an employee.
- eru 5y agoI'm just an immigrant here. I don't think it's very likely you'd get sued, but I wouldn't want to risk it against well funded adversaries with expensive lawyers.
- stuff4ben 5y ago
- zanethomas 5y agolocked-in to visual studio code? no thanks
- pegler 5y agoThe article mentions supporting vim and emac, which probably means any editor can be supported. Visual Studio Code is great. It’s the primary tool GitHub.com engineers use to interface with codespaces. But asking our Vim and Emacs users to commit to a graphical editor is less great. If Codespaces was our future, we had to bring everyone along. Happily, we could support our shell-based colleagues through a simple update to our prebuilt image which initializes sshd with our GitHub public keys, opens port 22, and forwards the port out of the codespace.
- dharmab 5y agoSounds like terminal editors can be supported but not alternative graphical editors like Sublime or IntelliJ.
- Klathmon 5y agoI think terminal editors are supported by allowing an SSH tunnel, and both Sublime and the IntelliJ suite have plugins to allow you to use them against remote systems over ssh
- theblazehen 5y agoCould just use sshfs with any of those editors
- listless 5y agoThat does appear to be the case https://twitter.com/DynamicWebPaige/status/1397367944502468613?s=20 https://twitter.com/DynamicWebPaige/status/13973679445024686...
- msbarnett 5y ago> The article mentions supporting vim and emac, which probably means any editor can be supported. I read that as you can ssh in and run a terminal-based editor, but that doesn't seem to offer much support for people looking to edit in NEdit or Intellij or Atom or Sublime or whatever else. Maybe some of those could be supported by forwarding an XSession out of the image, but that's going to suck hard for people on macOS whose editor is now the Linux/X version, with all of the attendant mismatch.
- andyp-kw 5y agoI'm currently working on a huge codebase that takes forever to compile. I'd love to use Codespaces or a self hosted alternative so that I don't need to carry around a heavy i7 laptop. Being able to develop in the cloud from a browser opens up the possibility to develop from a thin Chromebook.
- encryptluks2 5y agoIsn't this option already available with CI/CD or Vim?
- ejdyksen 5y agoYou can do this right now with the Remote SSH extension for VS Code: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh https://marketplace.visualstudio.com/items?itemName=ms-vscod...
- soylentgraham 5y agoI use this for developing on linux/pi/jetsons, (need to test linking against real libs, and cross compiling for some reason still isnt a thing), but the compile times are terrible... I wish this was even more modular so we could have a dumb compile farm, +local ide +run&debug on-device (I've recently got 90% closer by remote sshing with vs code to a pi vm)
- int_19h 5y ago
- cat199 5y agointeresting read and lots to glean - but seems to draw a false distinction between local and cloud in many areas - env portability/consistency/using prebuilds as an example could have been done with in house CD/vagrant/packer ~10y ago. This post doesn't focus specifically on that, and there are additional benefits to the approach taken, but the notion that local dev is incompatible with these types of technologies is a consistent background theme in the writing also, referring to emacs as non graphical and 'shell based' is a bit off to say the least.
- thibran 5y agoMaybe they should have used Nix to get a dev environment that is identical for everyone... but that would be too easy. The future is long term probably in the web, I'm just not sure we are there yet.
- WC3w6pXxgGd 5y agoHow would Nix solve that?
- toastal 5y agoBuy a Cachix subscription and now the org can build once on the local dev's machine, push to the service, then other users and machines can download & run anywhere the reproducible 'apps' on local dev machines, CI, and even production. CI can even build and push the architectures that aren't specific to your local machine to cover just about everything.
- yakshaving_jgt 5y agoThis is what we do at work, and it's working great for us. GitHub's approach seems utterly ridiculous, especially given that I've seen colleagues prevented from working because their Internet connection at some point ran through a part of the world that was sanctioned by Western governments. Developer, it appears you are somewhere near Crimea! NO EDITOR FOR YOU!
- pxc 5y agoApparently you can set up Codespaces with any Docker image you want, so there's no reason you couldn't use Nix to generate one for use with Codespaces. The Visual Studio Code server isn't in Nixpkgs/NixOS yet, but there's an out-of-tree effort being maintained here for now: https://github.com/msteen/nixos-vscode-server https://github.com/msteen/nixos-vscode-server
- handrous 5y agoThere are lots of options for making your dev environments reasonably quick & easy to set up if you're mostly doing web stuff, or developing for a very small count of platforms, and mostly or entirely with open-source tools. Change any of that and things start to get harder in a hurry.
- lucideer 5y ago> My friends, I’m here to tell you I was a Codespaces skeptic before this started and now I am not. This is the way. ~@iolsen I don't actually doubt that this (and the 4 other glowing employee quotes) are real, but even assuming they are, I can understand people remaining skeptical about the sample size of 5 being broadly representative of the 100s (1000s?) of engineers at the company. Also slightly hilarious that "This is the way" is a Star Wars callback referring to a character blindly following dogma before eventually realising the error of their ways... On the other hand, there's quite a few "hints" littered throughout the article that their current setup is a bit of a beast, so I can definitely imagine some engineers being relieved to be able to get such a behemoth off their physical laps/desks: I guess if the local development experience is sufficiently brittle & frustrating, any alternative may seem welcome.
- swiley 5y agoI think people like not having their physical machine tied to their dev environment. IMO "the way" to do this is with ssh and tmux, not a web app. As long as people have choices I guess it doesn't matter.
- io 5y agoQuotee here. I agree! I use tmux and vim via ssh for github.com development in Codespaces.
- Emigre_ 5y agoInteresting… Can you use Neovim? Can you persist you custom vimrc config and plugins between sessions?
- dcreager 5y agoYes, I use neovim myself! Codespaces looks for a dotfiles repo under your user account, which you can use to install any personal customizations. Mine, which installs a bunch of neovim plugins and configs, is here: https://github.com/dcreager/dotfiles https://github.com/dcreager/dotfiles
- jstx1 5y agoIs the direction in which all software development is heading?
- exabrial 5y agoFor the next 5 years until the fashion trend wears off. We used to write COBOL using thin client on mainframes. Then we moved to development locally.
- spfzero 5y agoThe team here is part of the company that markets Codespaces. They're not actually representative of other companies, so I wouldn't take this as a direction all software development would be taking.
- sundbry 5y agoNo. You can achieve the same benefits of local reproducibility with Nix/Guix. Guix is more composable IMO because you can program multi-service development environments entirely in scheme.
- kook_throwaway 5y agoNix seems to have that ability via Disnix[1], though I haven't used it. Looking through the manual[2] it still looks like its in nix. [1] https://github.com/svanderburg/disnix https://github.com/svanderburg/disnix [2] http://hydra.nixos.org/job/disnix/disnix-trunk/tarball/latest/download-by-type/doc/manual http://hydra.nixos.org/job/disnix/disnix-trunk/tarball/lates...
- systemvoltage 5y agoIs it just me or VSCode is dauntingly complex? There are so many configuration options and I often get lost in it. I've been using Sublime Text for a decade and it has kept the scope creep to a minimum. I've also used JetBrains IDEs and while there is a massive amount of complexity, it is well organized I think. I just get anxiety from launching VSCode, may be it is because of not being familiar with it, I don't know.
- aaomidi 5y agoThe configuration is complex, but in reality you don't need to touch any of the configuration for most development workflows. The configuration also syncs itself if you login with GitHub, so you're not going to keep having to do this or juggle files around. In reality it's not that different from juggling around dotfiles and the various configurations that go into other software.
- stuff4ben 5y agoI don't use any of the features of VSCode. I just use it as a simple text editor. I'm mainly doing yaml files, bash scripts, and Jenkins pipelines, so I don't need any fancy features. I just "alias vs='code .'" and then "vs" in any directory I have code. It's just a fancy text editor to me that also shows git statuses as well which is nice.
- matkoniecz 5y agoIn Sublime Text I needed to config things very often. In VSCode (VSCodium to be more specific) I very rarely need to configure things. From my doffiles git log - two config changes this year so far.
- hackthememes 5y agoSo you're telling me that the next GitHub outage could take out my dev environment and give me an afternoon off? Time to convince management that we need to switch to Codespaces!
- Ashanmaril 5y agoIt's funny timing to announce this the day after a major outage that took down practically the entire platform
- ramraj07 5y agoIt’s very likely them doing pre rollout operations for this feature is actually what caused that outage though.
- boardwaalk 5y agoYou say “though” as if it absolves them. If they break basic requirements of a Git host like fetch and push while working on this extra feature that’s on them.
- NoahKAndrews 5y agoThey're not announcing a new feature with this blog post, are they?
- ramraj07 5y agoThey released codespaces to enterprise customers
- wolverine876 5y agoThere are different risks, but there is not necessarily more risk. Does Codespaces have lower or higher than the availability risks of your current environment?
- 5y ago
- rubyist5eva 5y agoJetbrains Project support for this would be fantastic.
- lostintangent 5y agoIf you create a Codespace, then install Projector, you can securely forward its server port and then access it from your browser: https://docs.github.com/en/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace https://docs.github.com/en/codespaces/developing-in-codespac....
- rubyist5eva 5y agoAwesome, might give this a try then. Never did use codespaces before - this would be killer.
- flurie 5y agoI was curious about the cost. The pricing and compute resources just about correspond to an Azure A series instances, but the ram corresponds better to the v2 series, which is cheaper than v1. I wonder if they're upcharging for v2 machines.
- minimaxir 5y agoThese are also the costs for Teams/Enterprise (who would be willing to pay more); I wonder if they'll release a cheaper/free SKU for individual users.
- drchiu 5y agoWould love for them to have a free tier. Example: 25 hours free per month, just to play around. This might be very resource intensive though.
- ionwake 5y agoJust a couple of years ago some kid gained access to every repo on github. Now githubs code is going to be developed on an online platform, which works by sharing code others have uploaded. I have a feeling that this is not a good recipe.
- tempfs 5y agoMicrosoft owns Github now. There is only really one way things will go from that point.
- codezero 5y agoAre you suggesting this will be available on Xbox?
- kaeruct 5y ago>Just a couple of years ago some kid gained access to every repo on github. Very curious to know more about this. What exactly are you talking about? Closest thing I could find is this[0], but you said "couple of years ago". [0] https://www.zdnet.com/article/hacker-gains-access-to-a-small-number-of-microsofts-private-github-repos/ https://www.zdnet.com/article/hacker-gains-access-to-a-small...
- ionwake 5y agoNo, not that. Another kid, got access to every single private github repo. It was on hackernews, he declared it, made a write up about it and got given a pretty small bounty from github. Google it, otherwise I guess the net was scrubbed of it. I follow him on twitter but yeah just google more and you should find out all about it. I was always surprised it wasn't a much bigger deal. Basically since then I think any company ( most that I work for ) are clinically insane to upload their proprietary code to the site. On a related note - was it not just a couple of weeks ago people were concerned the codespaces system is using other peoples proprietary code? ( I havent kept up to that on that one so not sure if its still an issue)
- sharms 5y ago
- knoebber 5y agoI see the advantages with this, but this would be pretty annoying on a slow or choppy internet connection. I highly value being able to develop software with little or no internet.
- pjmlp 5y agoGood luck using it for anything GUI related that isn't a Web browser.
- mrvenkman 5y agoFor development, what's the main advantage of this over sshfs-ing into an instance and using PHPStorm for example?
- viseztrance 5y agoSomehow I can see some companies using this to spy on their employees and "measure" how productive they are, and how their timesheets reports match.
- handrous 5y agoThis is 100% where the tools-in-the-cloud thing is going. It's going to be a major selling point for a lot of buyers (companies).
- snek_case 5y agoI'm really surprised (and discouraged) to see how many people here are so enthusiastic about this. There is so much room for misuse. You're increasing your dependency on an external corporation, giving them more control over your development environment, giving up much of your autonomy, and somehow this is a good thing? Development environments being overly complex to setup, long compile times, those are symptoms of software bloat and bad design, but instead of addressing these fundamental problems, people want compilation to happen externally on a 32-core machine so they can sweep those problems under the rug. Okay, let's see how that turns out.
- tiffanyh 5y ago> "So we moved to 32 core, 64 GB RAM VMs. By changing a single line of configuration, we upgraded every engineer’s machine." On GitHub, that instance type is $2.88/hour or $2,073 monthly per developer for a single instance. (Granted, that's running 24/7 but still - wow, that's expensive for a single instance)
- sharms 5y agoWhile that does sound quite expensive, companies typically have a limited budget for employee laptops, but appear to have almost unlimited budget for cloud hosted testing environments, which usually have many instances (and services like RDS / Redis etc)
- koyote 5y agoOur company is the opposite, I have a max-specced laptop and we are actively trying to reduce the massive cost of cloud computing. A powerful laptop is a drop in the ocean compared to how much cloud VMs cost per developer.
- switch007 5y agoSomething tells me that a Microsoft company isn’t paying Azure RRP prices
- yurishimo 5y agoThis was the thing that jumped out at me! I'm not sure how the VSCode application interacts with these to potentially put them to sleep, but dang that is $$$ for a dev machine at the scale github is operating at. I guess lucky for them to be owned by Microsoft now and so that's just a cost of doing business. I have a hard time believing they could have even considered an approach like this if they were still paying for hardware out of pocket. Kudos to the team for figuring it out though.
- iruoy 5y agoI assume they're getting quite a sizable discount being owned by Microsoft. I do wonder how many VM's they have running though at different points of the day and how many spares they have prepared.
- gosukiwi 5y agoUgh, now not only you don't own your code (ahem copilot cough) you also don't own the tools to develop code. The direction the web is taking is worrisome. The issue is not so much senior devs, but new devs. If they start off with things like that, there' so much magic under the hood, they won't understand how anything works. They don't understand they don't own shit until it's too late. I remember when I first saw the JAM stack, basically they use external services for *EVERYTHING*, claiming it's "The future™". They don't even own the data/database. I'd rather make things better for users, rather than companies. Stallman's essay [The Right to Read](https://www.gnu.org/philosophy/right-to-read.html https://www.gnu.org/philosophy/right-to-read.html) gets more and more scary.
- patrickserrano 5y ago> If they start off with things like that, there' so much magic under the hood, they won't understand how anything works. I feel like there's an ever growing tension in software development where magic like this makes us more productive but also more vulnerable. Maybe we need to develop better benchmarks for "knowing enough" so when the magic fails, we're not starting at zero trying to figure out what went wrong.
- vbezhenar 5y agoHire wizard consultant to fix magic and let the rest to rely on magic.
- swypych 5y agoownership issues aside, the "magic" under the hood is not a problem assuming it actually works. Its when the magic breaks, or works in unexpected ways, then it becomes a problem. Magic is also progress, and progress is usually good.
- zerox7felf 5y agoI think you could look at it in terms of sustainability: "magic" progress has the potential of "magically" vanishing if it's inner workings are not sound, reliant on an unreliable other, etc.
- aantix 5y agoHas anyone built a product that can beat Rubymine's code navigation capabilities? I can navigate to any internal or dependency definition, out of the box.
- TheRealDunkirk 5y agoI find RubyMine to be sluggish, and I stick with SublimeText and a set of terminals. However, I was trying to debug a plugin of a plugin of a gem, and installed it again to see if it would help. I found the problem in about 5 minutes because of this navigation. Credit where due; it was pretty awesome.
- aantix 5y agoAgree - I find other editors much more responsive. But when I need to learn or explore a really large code base in Ruby, I haven't found anything better.
- zorr 5y agoJetBrains IDEs can require some tweaking of the jvm startup params. Mostly initial and maximum heap size. The defaults are rather low and for projects with lots of dependencies it needs a lot of memory to keep indices and cache warm. I usually run mine with at least 8GB max heap space (on a 32GB machine) and have a good experience with large Gradle projects.
- Zababa 5y agoThis validates my theory that Microsoft is trying to build something big in dev tooling using Github, VSCode, NPM and Azure. This is probably the second "E" in EEE.
- codezero 5y agoDidn’t know EEE as an acronym, in case others are looking and not interested in reading about Eastern Equine Encephalitis, I think here they are referring to Embrace, Extend, Extinguish: https://en.m.wikipedia.org/wiki/Embrace,_extend_and_extinguish https://en.m.wikipedia.org/wiki/Embrace,_extend_and_extingui...
- aaaaaaaaaaab 5y agoNow it will be pretty easy to bring back those pesky remote workers to the offices. They will just tweak some code on the backend and poof, the latency of your home connection skyrockets to the point of typing becoming impossible. Luckily there won’t be such an issue with the office internet! I guess we’ll have to come back to the office to keep being productive in this web-based IDE :^)
- lostintangent 5y agoI have some of the worst home wifi possible, and have been comfortably developing from Codespaces for over 6 months :) Editing happens locally in the client (and is synced to the service in parallel), and so you shouldn’t notice any latency when typing.
- gnufied 5y agoIs this true even when you are using Emacs/Vim? I know vscode has server mode and emacs has `emacs --daemon`.
- uluyol 5y agoSeems like the next step is to avoid downloading the full repository on every machine. If you had it stored on a few machines in the same DC (keep hot files in memory), you could just fetch things on demand with little latency penalty. Though a lot of people seem to have issues with FUSE filesystems.
- jordemort 5y agoI wonder why they're not telling the security & compliance side of the story here. Getting rid of local development means they have to worry a lot less about what's going on on their engineers' workstations. They've reduced them to dumb clients; any code going in or out of the repository has to be created, or at least pass through, a VM that GitHub controls. That lets them move the security boundary; I wouldn't be surprised if the next step is to cut off the ability to clone or push to certain sensitive repositories from outside of Codespaces. That being said, while it has a lot of advantages from an enterprise perspective, I wouldn't want to live that way :)
- marcosdumay 5y ago> Getting rid of local development means they have to worry a lot less about what's going on on their engineers' workstations. Wait, what?!? No, it doesn't. Their engineers' workstation software can read or edit their code just as easily as their engineers can. Going into the cloud just adds another liability, it doesn't take any one away.
- blueplanet200 5y agoI don't think so. Software running on your computer has wholesale access to your filesystem. If those files are accessible only via the web (or if you bother setting up ssh + pubkey, via ssh) that significantly reduces the surface area of possible attacks. Don't hate on "not being impossible" for "being less likely."
- marcosdumay 5y ago"Less likely" applies to random events. Sabotaging or stealing code has nothing of random in it. You can claim it becomes "harder", what it does, a very small bit that doesn't warrant anything like the claims on the GP. All it changes is that the attacker will have to launch the browser or rewrite some part of it (what he can do, because the browser auto-updates with your access level), instead of simply taking the files. Oh, and by the way, not all software running on your machine has complete access to the filesystem. Reading your code and changing your browser requires basically the same level of access.
- didibus 5y agoReminder to self: don't apply at GitHub
- aaaaaaaaaaab 5y agoImagine the amount of telemetry they will collect from their engineers! And of course the Big Data team will start working on identifying the “slackers” ;)
- simonw 5y agoThe amount of time I've seen lost to engineers spinning up (or fixing) development environments is staggering. This kind of thing is going to save SO much money. (I've run a team responsible for the tooling for a company's development environments in the past so this hits really close to home.)
- kansface 5y agoAlternatively, they could have spent this money on fixing the dev stack. Maybe this was more politically viable.
- simonw 5y agoWhat do you mean by fixing the dev stack?
- pm90 5y agoI believe the OP is referring to "local stack" i.e. being able to run a single command e.g. `make up` (if you're using makefiles) to spawn a local environment and run a "local" version of the site i.e. serving on localhost. Having such scripts enables one to quickly setup a local environment to make changes and test them before submitting a Pull Request.
- simonw 5y agoI've tried fixing the local dev stack - all of the scripts and Docker containers in the world still can't predict the ways in which something might break when it's running on 100+ different laptops with different developers with different unique preferences for how they like to get things done. My expectation is that if you roll out something like Codespaces a small minority of your engineers will resist because it doesn't fit exactly how they want to work. Meanwhile everyone else will get back several hours of productivity per week.
- noptd 5y ago
- bndw 5y agoDoes Codespaces support offline development? Is an Internet connection now required 100% of the time to write code?
- int_19h 5y agoIt's still a git repo in the end, so you can use all the usual tools to work with it locally. You can also use https://code.visualstudio.com/docs/remote/containers https://code.visualstudio.com/docs/remote/containers to run an identical container locally to reproduce the environment, and then connect to it.
- alberth 5y agoDoes Codespaces only work if you plan to deploy your production workload to Azure?
- EugeneOZ 5y agoFor 16Gb: 8 hours * 20 days = $115 per month. Well, if a company pays - then, maybe it's attractive for some. But not for those who love the real power of the real IDE :)
- angryasian 5y agoI'm not a developer but I thought consistent development environments was something that containers was supposed to solve ?
- hu3 5y agoI see a bright future for this on some types of teams. How does the billing work when I'm not using Codespaces? Does the VM stop automatically after some time idling or do I have to manually pause it to stop billing?
- f6v 5y ago> CPU up to 32 cores > Memory up to 64 Gb Great, barely enough to develop my new Electron app.
- speedgoose 5y agoIf your new app needs so much resources, I'm sorry to tell you, but it's not Electron. It's your app.
- jimmyvalmer 5y agoI can tell hyperbole, memes, and sarcasm have no effect on you.
- alanwreath 5y agoso at what point are we? Embrace? Extend? or Extinguish? https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguish https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguis...
- Fordec 5y agoSeems like we're coming out of Embrace and entering Extend.
- rvz 5y agoExtend. [0] Microsoft already has accepted Linux into the Windows Developer Ecosystem (Embrace) and has integrated it in WSL. They added NVIDIA GPU drivers that only works on WSL. (Extend) GitHub Copilot also only works on VSCode and not on other editors. Soon they will probably move Copilot to only work on Codespaces. All of this is in the 'Extend' side. Guess what 'Extinguish' looks like? They will make it all free, starving the competitors out, when everyone runs to the new Microsoft platform. [0] https://developer.nvidia.com/cuda/wsl https://developer.nvidia.com/cuda/wsl
- phendrenad2 5y agoMicrosoft does anything: "It's EEE" Google does anything: "Whatever happened to Don't be Evil!"
- quangv 5y agoAssuming it auto detects idle time? Could be a good alternative to buying new MacBook
- speedgoose 5y agoYes it does detect. My environment is usually stopped after a break or a boring meeting.
- vvoyer 5y agoAs much as I’d like to try this, the blog post reads as « our dev environment was so heavy, our git repository so old that we put everything in the cloud even your dev env ». If you’re building a new startup, you don’t need this. Use docker-compose. The current latest full stack project I built requires a single command: npm run dev. Launches docker-compose (PostgreSQL), Next.js and ngrok (expose/webhooks). And it takes 10 minutes to setup. Not everybody has the requirements of GitHub! Still, I’m sure I’ll use this in a year :)
- toastal 5y agoOr Nix or Guix
- boramalper 5y ago> How far we have come from the hand oiling of early motorcycles is indicated by the fact that some of the current Mercedes models do not even have a dipstick. This serves nicely as an index of the shift in our relationship to machines. If the oil level should get low, there is a very general exhortation that appears on a screen: “Service Required.” Lubrication has been recast, for the user, in the frictionless terms of the electronic device. In those terms, lubrication has no rationale, and ceases to be an object of active concern for anyone but the service technician. In a sense, this increases the freedom of the Mercedes user. He has gained a kind of independence by not having to futz around with dipsticks and dirty rags. > But in another sense, it makes him more dependent. The burden of paying attention to his oil level he has outsourced to another, and the price he pays for this disburdenment is that he is entangled in a more minute, all-embracing, one might almost say maternal relationship with . . . what? Not with the service technician at the dealership, at least not directly, as there are layers of bureaucracy that intervene. Between driver and service tech lie corporate entities to which we attribute personhood only in the legal sense, as an abstraction: the dealership that employs the technician; Daimler AG, Stuttgart, Germany, who hold the service plan and warranty on their balance sheet; and finally Mercedes shareholders, unknown to one another, who collectively dissipate the financial risk of your engine running low on oil. There are now layers of collectivized, absentee interest in your motor’s oil level, and no single person is responsible for it. If we understand this under the rubric of “globalization,” we see that the tentacles of that wondrous animal reach down into things that were once unambiguously our own: the amount of oil in a man’s crankcase. > It used to be that, in addition to a dipstick, you had also a very crude interface, simpler but no different conceptually from the sophisticated interface of the new Mercedes. It was called an “idiot light.” One can be sure that the current system is not referred to in the Mercedes owner’s manual as the “idiot system,” as the harsh “judgment carried by that term no longer makes any sense to us. By some inscrutable cultural logic, idiocy gets recast as something desirable. > It is important to understand that there has been no “high-tech” development such that it is no longer important to stay on top of oil consumption and leakage. With enough miles, oil is still consumed and will still leak; running low on oil will still trash the motor. There is nothing magical about the Mercedes, though such a superstition is encouraged by the absence of a dipstick. The facts of physics have not changed; what has changed is the place of those facts in our consciousness, and therewith the basic character of material culture. Shop Class as Soulcraft: An Inquiry Into the Value of Work by Matthew B. Crawford
- u385639 5y agoThe pushback is confusing. If this approach continues to catch adoption a self deployable OS clone is inevitable.
- BiteCode_dev 5y agoThe wifi is down is going to be a new level of craziness now
- datavirtue 5y agoWhat is codespaces?
- blueplanet200 5y agoThe article describes what it is and links to more info about it.
- datavirtue 5y agoIt described it if you already know what it is. One sentence at the top of the post would have been enough. It's called "writing."
- blueplanet200 5y agoDid we read the same article? > Today, GitHub is making Codespaces available to Team and Enterprise Cloud plans on github.com. Codespaces provides software teams a faster, more collaborative development environment in the cloud. Read more on our Codespaces page. Links to https://github.com/features/codespaces https://github.com/features/codespaces It's called "reading"
- jimmyvalmer 5y agoI can tell you don't read scientific papers.
- bogwog 5y agoSerious question: if I were to use this, would Microsoft collect analytics on me (code written, keystrokes, mouse movements, sleep/work schedule, productivity metrics, etc) and monetize that data by using it to build some AI product like Copilot, or build a productivity dashboard so managers can fire people for not being productive enough (like Xsolla did), use it to serve me ads, or do some stupid/irresponsible/unethical thing with it that will ultimately end up hurting me in the long run? Because I feel like the answer to that is yes, and I can already see myself in the future writing something angry in the comments section of an article on HN that exposes some evil/stupid shit Microsoft did with this, or happened as a result of this. I'm not against the concept of using a thin client for development, but it just doesn't seem smart to me do it in such a way where you have to place trust in a company that, throughout their entire existence, has consistently proven that you should not trust them, because they have no incentive to (and thus never will) act in your best interests. It's like if Facebook released their own web browser and "promised" to respect your privacy; you'd be an idiot to believe them.
- vxNsr 5y ago> It's like if Facebook released their own web browser and "promised" to respect your privacy; you'd be an idiot to believe them. Is this satire? A little too on the nose, you know cause Google…
- q-rews 5y agoI’m surprised Facebook hasn’t yet. I kinda assume that Facebook isn’t a browser on iOS simply because that’d make it a 18+ app.
- donny2018 5y agoI don’t know if this is a good indicator or not, but Codespaces costs money. So there is a non-zero probability that you are not the product.
- sneak 5y agoWindows also costs money and is chock full of spyware.
- SpaceManNabs 5y agoThis article does an excellent job motivating the problem! not sure if it is the solution but very curious
- q-rews 5y agoHonestly I see no drawbacks in using someone else’s free power and network if your workflow allows it. It’s amazing to run npm installs on a 2Gbps connection without so much as a % increase of your CPU. What kills it for many people though is the ability to access the files from the build. Does anyone know how I could mount the “dist” folder locally or somehow sync it? If I can do that I’m set.
- Dowwie 5y agoCan any of the github engineers using Rust comment on their experiences thus far? How has Codespaces affected compile times?
- dqpb 5y agoOne of the things I like about my local install of vscode is that it doesn’t burn cash. If I have to hop into a meeting, or take a lunch break, or take a shower, I don’t have to ask myself “Oh, did I forget to turn off my IDE?”.
- umanwizard 5y agoI wish most people cared as much as you about not leaving random EC2 instances running.
- throwaway_fjmr 5y agoBit of a tangent; I used to work for a fintech company that had a good few ex-Googlers. Their setup was similar to using Codespaces: cheap, locked-down Chromebooks for devs to type on, remotely accessible machines or cloud VMs in a well-separated network to host the monorepo, run builds etc. It was an extremely miserable experience. While I love the marketing materials of Codespaces and I want to believe in the superiority of remote development, I'm not yet convinced.
- FlyingSnake 5y agoWe currently have best developer machines ever in the history of development, and we squandered it all with bloat so much that we need to use a thin client to do development? That too on a platform where they can easily snoop on your code, collect whatever metrics they like and use it against you (one way or another)? No thank you. Call me a luddite if you will, but I feel that the developers should be wary about protecting their craft. This will end up with BigCos turning this into another Social Dilemma type scenario.
- yewenjie 5y agoDoes this mean all the engineers are forced to VS Code now?
- linux2647 5y agoNo, the article pointed out that vim and Emacs users can ssh into the hosts and edit code there. No VS Code use required
- yellowbanana 5y agoNew developers will get in using vscode web ide, and have no easy way to switch.
- notdang 5y agoThere are lot more IDEs other than VsCode, vim and Emacs
- linux2647 5y agoNo doubt. I use JetBrains' suite of tools and I wonder how this squares up with Codespaces
- Boxxed 5y agoI feel like all of the problems in the blogpost are solvable without moving everyone to this crazy web development environment. To quote one of the proponents: > I do solemnly swear that never again will my CPU have to compile ruby from source. ...yeah, why was that even happening? Why not distribute pre-built artifacts? I feel like the whole docker ecosystem only exists because people forgot how to distribute software and/or python/ruby and friends make deployment so hard.
- rightbyte 5y agoFighting configuration complexity with another abstraction layer ... enabling the devs to pivot to pushing even more brittle code then ever before.
- mbreese 5y ago> Why not distribute pre-built artifacts? Back in the day (ahem), I’d have solved the problem by building new .deb or .rpm packages and letting the OS manage the updates for us. This is a lot harder for languages like node/js, ruby, python, etc… Dealing with a system level packages vs local packages is hard, so almost all management happens out-of-band. Older versions of packages was/is still an issue for many distro-managed libraries. And different projects have different requirements. In the end, I’m largely okay with this… I’d rather have my choice in local OS and be able to work on my client of choice. I see the rise of containers was more of a response to heavyweight VMs as a dev environment. But it’s good to remember — these are not unique problems and we’ve solved them all before.
- turminal 5y agoThey say in the post that everyone runs OS X, so incompatible local environments should not be a problem.
- deleted 5y ago[deleted]
- Terretta 5y ago
- JoeQuery 5y agoI've developed on a remote server for about 8 years now. It started when I was a contractor and my machine was simply too slow to run the project I was assigned. I did not have the money for a new laptop, but I could afford the ~55/month for a dedicated server with 32GB and 4cores. I have worked that way ever since. I've been fortunate enough to work at companies that run their own VM infrastructure which allow me to work this way. And as someone who likes to work in different places, like the park, being able to download docker images while on a Hotspot and it not go through my data plan is amazing.
- soheil 5y agoIf you work from a park how do you manage your latency/connectivity to a remote server? It must get annoying fast when a pigeon flies over causing your hotspot to cut out.
- brian_herman 5y agoHe could use something like GNU screen, or tmux, or his server could use something like XRDP or even RDP to continue when his connection goes out.
- deleted 5y ago[deleted]
- mbreese 5y agoI think the point is that a small random drop in latency affects the local connection, but not the remote server. So, if your SSH connection is a little flakey for a minute, that’s fine. The remote server is itself stable. It is also likely connected to a much bigger pipe, so pulling in a remote container is much faster than if you were doing the same thing from your laptop in the park. If you’re worried about your SSH connection being stable, mosh is another option.
- JoeQuery 5y agoExactly this. I used a combination of mosh, byobu, gnu screen, and vim. These days I use vscodes remote development setup more often.
- mssdvd 5y agoMany of those problems could be solved with a smarter git clone just like they did in this case. Is there any work on something like that that could be upstreamed to git itself?
- petethepig 5y agoI’m using a homebrew version of this — I built a powerful linux machine that i keep at home and I connect to via VS Code remote thing. It is very stable at this point, I’m very happy with this setup. I have a light laptop that is basically a thin client and I do coding on a 16 core computer that i can access from anywhere where there’s internet. Port forwarding works great too in VS Code. I use tailscale for networking so that’s also been nice, no need to mess with vpns or anything like that.
- coryw 5y agoHello! Blog post author here. Wanted to quickly comment on how we support offline folks or those working on an unstable connection! The short version: we publish a container image into the GitHub Container Registry that closely tracks github/github’s devcontainer image. Folks can pull and use locally with VSCode remote containers or run directly in Docker. The github/github checkout is local in this case and mounted into the container.
- JustinGarrison 5y agoSo I can use the same workflow with codespaces connected to a local container? Is that documented somewhere?
- sir_charles804 5y agohttps://code.visualstudio.com/docs/remote/containers https://code.visualstudio.com/docs/remote/containers
- JustinGarrison 5y agoThanks but I was looking to see if codespaces could somehow be used with a locally running container.
- superkuh 5y agoIt sounds like this use case is for developer's who buy laptops expecting them to act like desktops and then realize their mistake. Maybe the cheaper, simpler, option is just to buy a performant desktop for less $$$ than has wall current and the space for RAM and heat dissipation.
- secondcoming 5y agoI forked out a silly amount of money on a laptop last year as I assumed I'd be working abroad for a while. I knew developing on a laptop would suck and I was proven right. I don't know why some people prefer it. (The M1s may change that today)
- herval 5y agoYou’ll still have a different network (this is big at Facebook, where downloading repos from home takes a ridiculous amount of time), and you’re still locked down to a single machine’s resources, when working on your PC. This remote-first architecture also enables you to further break apart your workflow as needed. Need a dozen GPUs to test something real quick? Spin it up! Need to collaborate with someone on a PR? Invite them to your session (eg with vscode liveshare). Work on 10 branches in parallel (eg during code reviews)? Lease more instances!
- k__ 5y agoI used AWS Cloud9 for years now and for half a year I'm using Codespaces. I don't like the one IDE per repo model, but I like VSCode more than Cloud9. It would just be cooler if it would still work when I go offline. Working in a train is simply no fun.
- pimterry 5y agoInterestingly, the intro docs specifically recommend using Chromium for Codespaces: > For the best experience with Codespaces, we recommend using a Chromium-based browser, like Google Chrome or Microsoft Edge. (from https://docs.github.com/en/codespaces/developing-in-codespaces/developing-in-a-codespace#about-development-with-codespaces https://docs.github.com/en/codespaces/developing-in-codespac...) Makes sense coming from Microsoft, but it'll be fun to see if/how that affects the ongoing Chromium/Safari battles (and Firefox, to a lesser degree) if Codespaces seriously takes off. "Our company development environment requires every developer to use Chromium" is going to be quite a shock.
- q-rews 5y agoThis is because it’s based around VS Code, which is an Electron app, which uses Chromium. In short they never tested it outside it because they never had to. Only now it’s become available as a “web app” with a URL.
- easton 5y agoThey’ve put a ton of work into making VSCode browser independent because of Codespaces. It now works in Mobile Safari pretty well, as well as Firefox.
- _pythonlover_ 5y agoWorks fine with firefox afaik
- hit8run 5y agoNuke with style lol: --nuke-from-orbit
- rhacker 5y ago> and have a local instance of GitHub.com running in a half-day’s time. This is totally separate from the gist of this post, but I personally think companies should optimize this number into the ground. It would be awesome to join a microservices company that has an install/running time of 15 minutes. If some company had that level of speed, it would mean developing new features is probably pretty fast too. Not necessarily, but one of the biggest obstacles I think most developers face is not running the entire stack locally. Instead in a lot of companies they commit/push things to a branch and tell their CI/CD to build it out. While that might be useful in some companies, I think the ultimate awesome sauce for a development team is entire product running and editable locally.
- cabirum 5y agoIt's all fun and games until big corps start adopting cloud-everything approach. There will be no devices left, only thin clients connecting to someones cloud and logging everything you see and do. Imagine your employer watching your every keystroke and getting instant performance metrics. Then some OverseerAI reporting that you didn't type for 10 minutes already, sending a notification to your boss.
- arduinomancer 5y agoHow is that different from now? If you work for a big company you already have your laptop controlled by MDM software which can do whatever it wants.
- pydry 5y agoWhatever cloud dev environment you use will shove productivity metrics up your manager's ass. E.g. Employee A ran the tests 4 times an hour whereas employee B ran the tests twice an hour.
- phendrenad2 5y agoJust run the tests more times per hour. It's literally what you're getting paid to do!
- ghthor 5y agoWe need new types of AI bots in this battle that can mimic us executing mundane tasks on our cloud developer machines so we can sit back and work on more interesting projects.
- anyonecancode 5y agoI feel I'm swimming against the current of contemporary dev practices, but I actually believe trying to run as much of your apps and development locally is important. Not exclusively, but at least from time to time I think shutting off your network connection and seeing what happens is important. It flushes out all sorts of assumptions, especially around dependencies, you may not have realized you had. If you at least occasionally code in a local, non-networked environment, I think you end up with more robust code.
- TimTheTinker 5y agoI think the main use case for this style of development is web apps.
- bern4444 5y agoMy job now has no ability to run our code locally and its terrible. I work on APIs which at the end of the day is an HTTP server making and responding to requests. When I make a change its impossible to test locally which is terrible. The same issue applies to serverless technologies (at least last when I used them). It was extremely difficult to run serverless services locally, debug issues etc. Having the cloud is great, but nothing will beat being able to run things locally. It just gives you so much more control. You're not locked into a specific editor or tool chain, you can integrate with whatever other local tools might be specific to you, etc This is a great feature, something to complement existing development approaches, but I'm always going to prefer my own setup where I have everything configured exactly how I like it.
- rurp 5y agoI can strongly second this. I currently work on a serverless project and running/debugging code locally is one of the biggest pain points. Over time I've gotten better at mocking out a bunch of stuff to try and get the code I care about running, but it's a really rough process. There are of course risks that the local setup process will differ from the prod environment in a serious way. Even with good automated test coverage I feel less confident about the code I commit here than most other places I've worked.
- yepthatsreality 5y agoThe feature page for Codespaces reads less like an IDE enhancement and more like “docker doesn’t work well on MacOS so just code in a browser so we can spin up a local environment quicker”. Or I don’t know, maybe try using a Linux laptop instead.
- TimTheTinker 5y ago> Or I don’t know, maybe try using a Linux laptop instead. This is an underrated, excellent option, especially for solo devs and small shops. Or run a Linux VM in Parallels Pro with startup-on-login, shared networking, and port forwarding. In my opinion, Apple should build a virtualized Linux dev environment into macOS (a sort of Linux Subsystem for Mac). That would be so helpful... or Microsoft could build a Linux distro with a next-gen window manager and full support for Windows apps. Either way and I'd be all-in.
- reggieband 5y agoI've had this vision for over a decade and it is awesome to see we are finally making measurable progress towards it. What I'd really like to see is a WebRTC type interface that overlays this to provide some kind of collaborative environment on top of it. I'm thinking of a built in voice chat as well as multi-author editing within the same codespace. Imagine it like pair programming. I'm in FileA.ts and I can see a little avatar icon of another dev in FileB.ts (maybe surfaced through the Explorer and/or the file tab bar). The voice chat could even be location aware so if we are in the same file/package then we are able to chat. I'd go so far as to allow multiple editors to affect the same file within the codespace so I could see the other dev edit the file in realtime (like coderpad or other interview tools). I imagine a workflow where a feature/ticket is mapped to a codespace. One or more devs are assigned the codespace and they work together until the feature is completed. Incremental changes are stored up until a "build" action is submitted, resulting in the current contents of the codespace being built and deployed to an internally/publicly accessible endpoint. This might also result in a "snapshot" which could represent a commit to a sandboxed repo. The codespace goes away once the feature is completed resulting in a single check in to a master branch which would go through regular code review type processes (probably a squashed version of their local snapshot's changes).
- et1337 5y agoVSCode has this: https://code.visualstudio.com/learn/collaboration/live-share https://code.visualstudio.com/learn/collaboration/live-share
- twobitshifter 5y agoSee Englebart’s mother of all demos. I think he had everything in your first couple paragraphs working in 1968! https://www.youtube.com/watch?v=B6rKUf9DWRI https://www.youtube.com/watch?v=B6rKUf9DWRI
- jimsimmons 5y agoDid he really? Classic example of demo driven development
- 5y ago
- aeyes 5y agoThe did the following optimizations to reduce the time it takes to spin up a new dev environment: - creating a Docker base image with all the dev dependencies - have a prebuilt environment with a full git clone of the 13GB repo before a developer needs it But why does this only work for the remote development environment? You could easily make the same optimization for the local development environment, the only downside is dealing with Docker on Mac.
- ghthor 5y agoDocker on Mac is a no go for even a modest monorepo size. I took at look at it at my previous company where we have a 4.5GB full checkout and the IO just tanked building. It's sad really because I think could configure a VM to operate with better IO but it's not as straightforward to get that configured with the Docker for Mac system and I didn't think it was worth the complexity add for our whole engineering org.
- nirvdrum 5y ago> Yet for all our efforts, local development remained brittle. Any number of seemingly innocuous changes could render a local environment useless and, worse still, require hours of valuable development time to recover. Mysterious breakage was so common and catastrophic that we’d codified an option for our bootstrap script: --nuke-from-orbit. I know not everyone wants to run Linux or FreeBSD, but this is one area where ZFS shines for me. I take regular snapshots on a cron schedule and also whenever making system changes. If I manage to get the system into an unexpected state, I just rollback a snapshot and optionally reboot. Save for the potential reboot, it's an instantaneous operation. I don't need to spend hours restoring from backup. Using the built-in ZFS support in Ubuntu, you get a nice split between system and user data. You can roll one back without the other. Snapshots are created on every mutating apt operation.
- dang 5y agoSome past related threads: Developing Online with GitHub Codespace - https://news.ycombinator.com/item?id=24565606 https://news.ycombinator.com/item?id=24565606 - Sept 2020 (54 comments) First Impressions of GitHub Codespaces - https://news.ycombinator.com/item?id=24339118 https://news.ycombinator.com/item?id=24339118 - Sept 2020 (93 comments) GitHub Codespaces - https://news.ycombinator.com/item?id=23092904 https://news.ycombinator.com/item?id=23092904 - May 2020 (601 comments)
- baby 5y agoIIUC, facebook has being doing this for a long time with devservers
- comeonseriously 5y ago> Blazing fast cloud developer environments I have a blazing fast development computer already. Also, it only takes a few seconds to push changes to a repo. Maybe if I were highly mobile, but otherwise, this is a nope. Also, IP much?
- z3t4 5y agoCould use ssh -X to run any program/editor on the Codespaces VM.
- jfmc 5y agoI'd really appreciate if github provides a way to opt-out "deep" analytics (e.g., train copilot on my open source code), even if this reduces the amount of features that they provide for free.
- jokethrowaway 5y agoI literally never had this problem. Sure, I broke my system in order to install something new (Eg. I switched to Wayland + sway recently) but that's constrained to when I'm consciously installing something. I can understand the use case of having to run 200 micro services or something too powerful for my machine. I don't understand my local environment automagically becoming "brittle". I assume things may break after pdate on trash operative systems without an official package manager like Windows or Mac, but other than that...
- z3t4 5y ago> The GitHub.com repository is almost 13 GB on disk; simply cloning the repository takes 20 minutes. Is it possible to get a 10Gbe link to Github ? That would bring down the clone time to 10 seconds.
- upbeatlinux 5y agoIsn't Codespaces essentially what Koding was doing ~10 years ago albeit w/less freedom?
- ClassAndBurn 5y agoCodespaces seems like magic. I've been using it for personal projects, and it is fantastic to do simple edits in a browser on the go. That's not the intended use case, though. The actual value is where you get to scale up and automate what used to be only on local workstations. The nightly builds with up-to-date dependencies and pre-pulled code get to going faster. Having a shared image encourages people to share all those local scripts that make things work where they may have just left them in a local `bin/` before. Onboarding scripts diverge and fragment workstations because employees that have been there longer ran old versions and never got the new updates. This lets everyone use the same update to date tools together. I'm excited to see where Github takes this. Tons of possibilities in now using Codespaces to create "local" environments composed of multiple machines.
- thallavajhula 5y agoImagine being dev at GitHub, coming on, on the first day, setting up your dev env in a couple minutes and rolling out a simple fix to millions of users on the very first day, maybe even the first few hours. That would be extremely gratifying.
- AJRF 5y agoHasn't Github gone down a lot this year? What do devs do when that happens?
- arnvald 5y agoHuh, so there we are again: * you write code in VSCode (developed by Microsoft) * using Codespaces (created by Microsoft) * in TypeScript (developed by Microsoft) * downloading libraries from NPM (owned by Microsoft) * pushing your code to Github (owned by Microsoft) * to run it on Azure (by Microsoft) and on top of that you read email about the launch of a new feature in Outlook and celebrate it with your colleagues on Microsoft Teams...
- JohnL4 5y agoBut Google is the problem.
- theshrike79 5y ago* VSCode doesn't spy on me (metrics can be disabled) * Codespaces don't spy on me (much) * Typescript doesn't spy on me * NPM doesn't spy on me * Github doesn't spy on me * Azure doesn't spy on me Google does. It's literally their main revenue stream.
- arnvald 5y agoBoth are problems - Microsoft monopolizes development experience, Google monopolizes other areas like private info (they know what you search for, what videos you watch, what restaurants you go to, probably even where you fly)
- blt 5y agoIf I understand correctly, this is similar to Google's CitC (clients in the cloud) [1]. According to the article, Codespaces supports non-IDE users by allowing ssh. CitC supports non-IDE users with a network file system. This seems preferable - the editor runs on your local machine with low latency, but you still run tests on the cloud machine. I wonder if Github supports this workflow, e.g. by configuring sshd to allow sshfs/sftp access. [1] https://cacm.acm.org/magazines/2016/7/204032-why-google-stores-billions-of-lines-of-code-in-a-single-repository/fulltext https://cacm.acm.org/magazines/2016/7/204032-why-google-stor...
- ezfe 5y agoYou already can: curl -sSL https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/sshd-debian.sh https://raw.githubusercontent.com/microsoft/vscode-dev-conta... | sudo bash -s -- 2222 $(whoami) true random https://i.imgur.com/HiVj0ht.png https://i.imgur.com/HiVj0ht.png https://i.imgur.com/LLROf3P.png https://i.imgur.com/LLROf3P.png
- hamandcheese 5y agoThe problem I see with a remote filesystem is that you’ll still need tools for editor integrations - language servers, formatters, linters, etc. Sure, you can install those locally too, but by then you are losing many of the benefits of a cloud environment.
- TechBro8615 5y agoGo try VSCode remote. These are all solved problems. The extensions run headlessly on the server, and the client does little more than render the interface. Switching between machines is seamless with settings sync, workspace recommended extensions, etc. You won’t find many people who started using VSC remote dev and then abandoned it to go back to local. Once you’ve got it working, which is a pretty easy feat, it’s a no brainer, obvious win.
- hamandcheese 5y agoYes, I am aware. I was responding to this bit: > This seems preferable - the editor runs on your local machine with low latency, but you still run tests on the cloud machine.
- evtothedev 5y agoI wonder if this could create circular downtime: if Codespaces goes down, how can Github engineers work to restore service to Codespaces? The tool to fix the broken tool is the broken tool.
- smilingsun 5y agoFrom the article: > The GitHub.com repository is almost 13 GB on disk; simply cloning the repository takes 20 minutes. Their problem seems to be mainly this. Which I'm surprised that they don't fix, but invent a workaround for. Deleting/rewriting a git repo's history is not impossible and often necessary for these kinds of cases.
- ghthor 5y agoI previously worked at a company on the team that managed the monorepo and the build system for the code within it. Our checkouts were 4.5GBS full. We had discussed performing yearly rollups, likely around Christmas for the current version. This would essentially be take a full checkout and `rm -rf .git && git init && git add --all` starting out with a new genesis commit. We'd keep the old "branches" in a separate archive only repository on our github and force push this new main copy to the working repository. And then provide guides and support for engineers to utilize the new rolled up repo and port any of their existing WIP. The concerns were long lived branches that had WIP and I think also just misunderstandings about what was going to happen. We never did it.
- koyote 5y agoHow often do you clone a repo? Our monorepo is multiples of that and the last time I cloned it was 2 years ago. When we first moved to git we simply had a 'clean' clone sitting on a network drive that all users could just copy to their machines to get started.
- PostThisTooFast 5y agoWho else finds Visual Studio Code to be overrated and clunky?
- ilovecaching 5y agoThere's more to choosing an editor than convenience. I learned a great deal about embracing free/libre software, learning new tools, and becoming comfortable at the command line by having my CS professor push us towards emacs/vim in school. Nowadays with LSP there's even less of a reason to lock yourself into a editor as a service or paid editor. If you really love VSCode or Codespaces then more power to you, but I highly recommend giving something with a steeper learning curve a try for at least a few weeks to see what its all about.
- _peeley 5y agoI'm impressed at how much IDE-as-a-Service has advanced in the past few years, a lot of other students at my university do all their programming assignments exclusively via repl.it. I wonder if they'll become the norm and basically everyone will just be writing code in browsers, save for a few lone greybeards still running their ancient bespoke Emacs setups locally[0]. [0]: https://xkcd.com/1782/ https://xkcd.com/1782/
- chmaynard 5y ago> Over the past months, we’ve left our macOS model behind and moved to Codespaces for the majority of GitHub.com development. The article never explains what "macOS model" actually means. Could someone enlighten me?
- euske 5y agoJust very minor nitpick: their first link to Codespaces is https, while the second one is http for the same page. (Was wondering why FF shows the first and second url differently.) Hope there be an automated checker to catch these things.
- synergy20 5y agowell I use vi for development, this seems visual studio code only
- Aperocky 5y agoWhy not let employees use what the tool they believe to be most productive? Are microsoft sliding to become what we knew it was?
- ljm 5y agoNo serious engineering team would use this and if github have decided to do it, then count me out.
- ljm 5y agoNo serious engineering team would use this and if github have decided to do it, then count me out. Github has the best part of 10 critical outages every month. It's a surprise when it doesn't go down.
- lkrubner 5y agoI realize my reaction is, in a sense, completely off-topic, but what I notice most is that they didn’t think Docker solves this problem for them. In fact, I believe this is the first time in 4 years where I’ve seen a company try to solve this problem without making Docker the center of their effort (though they bundle the nightly build in Docker, it seems a minor part of their strategy, and could have easily been a traditional VM instead). They are being creative. The crucial thing is they didn’t feel this problem was solved by Docker, so they did something original and, in some sense, this amounts to a vote-of-no-confidence on the question “Does Docker solve our development problems?” A question that, back in 2016, most people thought Docker would solve. It is possible that 5 years from now, when we look back, we will remember this as the moment when the momentum and focus and energy of the tech industry began to shift in new directions. Because, certainly, for the last 5 years most of the tech industry has been asking “How will Docker solve all the problems of development environments.”
- turtlebits 5y agoThis use case is a development machine on a VM. Docker driven development is generally code on your host and run the app in a container. Considering their git pull takes 20 minutes, it makes sense to go the VM route.
- switch007 5y agoWe will rue any excitement for and advocation of this product.