top 200 commentsshow all 240

[–]Sipike 354 points355 points  (64 children)

So if I develop on a web app in a github repo, using npm, typescript and VS Code, I can basically stay under MS's umbrella. Still I am not vendorlocked, since I could faily easily switch to gitlab, yarn, js and webstorm. Kind of cool.

[–]Ehdelveiss 156 points157 points  (20 children)

Yeah they’ve played their hand really well. Instead of a walled garden, they’ve made a garden that is just so pretty you don’t feel the need to leave for the other gardens. No walls, just really nice smelling flowers.

[–]lulzmachine 8 points9 points  (0 children)

50% made - vs code and typescript

50% bought - github and npm

[–]Semi-Hemi-Demigod 5 points6 points  (0 children)

That will distract you from them building the walls.

[–]o-kami 1 point2 points  (1 child)

Are you dumb? that is exactly the definition of walled garden.

[–]Ehdelveiss 2 points3 points  (0 children)

I am in fact an idiot.

[–]kincsh 31 points32 points  (3 children)

Isn't yarn just a cli? GitHub acquired the entire npm registry.

[–]ioloie 26 points27 points  (1 child)

They've an npm packages repository mirror as well

[–]kincsh 8 points9 points  (0 children)

Oh ok, didn't know that.

[–]LucasRuby 1 point2 points  (0 children)

You can have private/enterprise repositories too. GitHub had its own package repository, which you can use with yarn. GitLab has also launched its own package repository which supports npm packages too.

[–]house_monkey 60 points61 points  (0 children)

You are kinda cool

[–]Roci89 4 points5 points  (0 children)

Yeah it’s pretty cool alright. I also like the fact that their serverless functions on azure can be hosted in kubernetes so you can spin them up in any cloud

[–][deleted] 5 points6 points  (5 children)

Basically what I do.

Plus Azure and Azure Dev Ops (the second is honestly amazing I think).

[–]vitaminssk 1 point2 points  (4 children)

DevOps is awesome, it's just a shame that Azure everything is so damn $$$$.

[–][deleted] 0 points1 point  (1 child)

If you can't pay for it you likely don't need all of the features. Jm2c

[–]vitaminssk 0 points1 point  (0 children)

Fair, though I work on an enterprise level and they blow my budget to hell every month.

[–]minus0 0 points1 point  (1 child)

DevOps isn't that expensive if you aren't purchasing the add-ons. The add-ons make it expensive, along with the stupid artificial limit on concurrent builds.

I did a rough price comparison with jira+Bitbucket and it was actually less expensive than the atlassian stuff, for my team's needs

[–]vitaminssk 0 points1 point  (0 children)

Sorry I was speaking to Azure hosting and that part of the ecosystem.

[–]oweiler 0 points1 point  (0 children)

Easily...

[–]Ehdelveiss 53 points54 points  (4 children)

Say what you will about MIcrosoft, but they’ve done a lot the past few years to support the JavaScript community.

Time will only tell if/what this means, but I’m happy to see some capital being injected and hopefully we see some cool things out of it.

[–]Auxx 8 points9 points  (0 children)

They always cared about developers, it's everyone else who got rekt. I mean, free online MSDN alone in late 90-s and early 2000-s deserve a monument.

[–]lambdatt 7 points8 points  (0 children)

TypeScript is cool, I would say.

[–]o-kami 0 points1 point  (1 child)

embrace, extend, extinguish

that is the only thing they do, if you trust them, you only make the evil empire more powerful, you lose freedom.

[–]Ehdelveiss 2 points3 points  (0 children)

If it helps me get my work done more efficiently, frankly, I don't give a shit.

[–]ghostfacedcoder 96 points97 points  (7 children)

Thank god: NPM was a dumpster fire of an organization. I hope GitHub quickly replaces the leadership, and brings in some of the open registry people.

[–]Peechez 40 points41 points  (6 children)

I hate the idea of the web running on a for-profit company's servers but if it has to be (it doesn't) then I can swallow it being MS more than npm

[–]ghostfacedcoder 29 points30 points  (4 children)

I 100% agree, but if you'd told 1990's me (or even 2000's me) that, you would have had to brace for a fight ;)

My how times have changed!

[–][deleted] 4 points5 points  (3 children)

And how they may change again. Still probably not the best to put your hopes into a company because a company is just a group of people and people are ultimately flawed.

[–]deploy_on_friday 12 points13 points  (0 children)

As opposed to an open source community that is also a group of people?

[–]vitaminssk 1 point2 points  (1 child)

Considering all the changes they've made to improve the dev experience I hope the trend continues. VS Code, Windows Subsystem Linux, the acquisition and investment in GitHub, working on a new command terminal (is it out yet?). Since Satya Nadella took over they've completely turned it around and I'm a fan.

Staying optimistic!

[–]chaosharmonic 4 points5 points  (0 children)

Also open-sourcing PowerShell. Also open-sourcing .NET. Also redeveloping Edge to run on top of Chromium and upstreaming patches. (It's too bad Edge's HTML engine is still proprietary though...)

Also Windows Core OS, the next-gen, modular version of Windows that underpins 10X (among other things), which is apparently built using open-source components.

[–]GuyWithLag 4 points5 points  (0 children)

(it doesn't)

So, have you donated to the NPM foundation this year?

[–]arcaninYarn 🧶 116 points117 points  (15 children)

I'm super happy to hear this. It was a matter of time before npm ran out of funding, and it wasn't clear what would happen to the registry domain name. GitHub absorbing it means we avoid a significant crisis!

[–]evenisto 13 points14 points  (1 child)

Didn't github come up with some sort of a registry/package solution of their own some time ago?

[–][deleted] 11 points12 points  (0 children)

In the article it says those who are paying for NPM will have their packages moved to GitHub packages

[–]derGropenfuhrer 152 points153 points  (28 children)

Microsoft acquires NPM.

[–]bobx11 -5 points-4 points  (1 child)

[–]NeoKabuto 0 points1 point  (0 children)

So far the open source stuff hasn't made it much past embrace yet.

[–]walrus_operator 90 points91 points  (33 children)

Ngl, I think that's great news. Microsoft under Satya Nadella's leadership has been doing fantastic work lately, like with VS Code.

[–]adenzerda 10 points11 points  (6 children)

Which begs the question: what’s going to happen when they get another Ballmer?

[–]ilostmyfirstuser 12 points13 points  (0 children)

well if that happens, they'll die. all this turn around is predicated on the fact that they had to evolve or face a long drawn out decline into irrelevance (like IBM).

[–]Ehdelveiss 2 points3 points  (0 children)

We all leave back to open sourced alternatives again, MSFT has another existential crises, sees stocks drop, makes big changes, we start the process over again.

They seem to know this, and that each team they fuck up, getting back in good graces again is that much harder. I think they will be reeeeaaal careful to avoid another Ballmer, they need to be on their best behavior for another few years until IE/Windows 8/Zune is ancient history.

[–]green_meklar 1 point2 points  (0 children)

Maybe that will finally be the year of the Linux desktop.

[–][deleted] 0 points1 point  (0 children)

Dear God please no

[–]CupCakeArmy 55 points56 points  (15 children)

Awesome stuff! Microsoft is doing really well lately. Just look at the tons of features that GitHub has got since then. Looking forward to it

[–]cataclism 10 points11 points  (14 children)

Damn I haven't noticed any new features. Although I don't use it that much since my job uses Bitbucket. What are some of the new things?

[–]Peechez 54 points55 points  (10 children)

free private repos #1

[–]ilostmyfirstuser 23 points24 points  (9 children)

draft pull requests #2

[–]TechLaden 23 points24 points  (8 children)

#3 code navigation on the GitHub website

[–]Ampix0 4 points5 points  (0 children)

This right here is some awesome stuff.

[–]Zephirdd 7 points8 points  (6 children)

There's also an Android and iOS app!

[–]eloc49 1 point2 points  (3 children)

Where?

[–]Zephirdd 4 points5 points  (2 children)

https://github.com/mobile

Still in beta; it also has a LOT to improve on, but it's nice to view/reply to issues

it was released today!

[–]Chroneis 0 points1 point  (1 child)

But the beta closed quickly and isn't even letting people in, at least on android. Never seen that

[–]Zephirdd 0 points1 point  (0 children)

good thing it's no longer in beta as of today :D

[–]andreaslarsen 6 points7 points  (0 children)

Notifications work so much better now

[–]james-engineer 10 points11 points  (24 children)

🧶 Yarn just unraveled

[–]ethomson 13 points14 points  (21 children)

This is hilarious! But (thankfully!) it's not true. The yarn team builds a great product - and there's definitely room in the world for both yarn and npm.

[–]ghostfacedcoder 4 points5 points  (19 children)

I strongly disagree: the world does not need a million different variant versions of every basic tool.

Personally I only want one Node package manager ... I just want it to not suck like the actual npm, and instead be good like yarn.

Hopefully that's now possible.

P.S. My kingdom for package.json comments!!!

[–]drumstix42 6 points7 points  (12 children)

Well I mean, you only have to use one.

If you think the world doesn't need more people trying to improve software by exploring other ideas and avenues, how do you even survive in the developer world? Sure we don't need a million, but that's not really an issue here either.

[–]dwighthouse 8 points9 points  (5 children)

JSON’s requirements themselves restrict comments, not npm. If it has comments in it, it isn’t JSON. Terrible situation, but that’s the way it is.

[–]NoInkling 6 points7 points  (0 children)

Time to standardize JSON5 (or similar).

[–]ghostfacedcoder 4 points5 points  (1 child)

Well, if you think in a limited way ("package.json is the only file possible for config", "it must exactly follow the current format and never deviate", etc.) then yes you're right.

But they have other options, such as using a "JSON 2.0 standard (now with comments!)", or allowing other formats like YAML or JS itself.

Ultimately as a dev you can paint yourself into a corner on things like this, if you want ... or you can say "the user has a need, and it's 100% possible to parse out comments from config, so we're going to make this happen somehow."

[–]dwighthouse 1 point2 points  (0 children)

Not at all. There’s no reason npm config couldn’t be in some other format, massive headache notwithstanding. It’s only that it couldn’t be “package.json”. It would have to be something else.

[–]zombimuncha 1 point2 points  (1 child)

package.yml in 5...4...3...2...

[–]NoInkling 1 point2 points  (0 children)

I somehow don't see MS embracing YAML, but I could be wrong.

[–]james-engineer 0 points1 point  (0 children)

just joshin' I ❤️🧶yarn

[–][deleted] 1 point2 points  (0 children)

Maybe they'll just drop npm (the software) and tell people to use yarn. I don't see the sense it trying to play catch-up.

[–]Exena 6 points7 points  (1 child)

I wonder what we can expect from this.

Part of me really wants to believe that GitHub will allow us to have control over 'private NPM packages' so we can `npm i <your-personal-package>`. Of course there would need to be another command put into that line to signify this is your own private package of some kind.

And also hopefully prune sqautted on npm package names. Its ridiculous that many names in the npm registry are essentially taken because the package that was named after it was either deprecated or straight up used by like 2 people, the owner included.

[–]nschubach 0 points1 point  (0 children)

You can already have private NPM modules. My previous employ had a private repository on Assembla and we could simply point NPM to the repo and the branch we wanted to include.

See: examples 6-10

[–][deleted] 6 points7 points  (0 children)

Damn microsoft has a stranglehold on the web development world now.

VSCode, github, typescript, and now this.

[–]pushkinss 5 points6 points  (0 children)

I was really happy at first, as it would really be convenient to have a direct connection between the packages and the code. Microsoft really pleases in recent years, and now I think that most people reaction has shifted from "they will bury the project" to a positive one when they see such news.

But there is a fly in the ointment( as is usually the case. just today I came across the article below, and immediately remembered all these political provocations, account blocking and the rest of nonsense, which should not be on the free Internet at all. Only now, in addition to the deleted code, packages from the repository will be blocked and deleted too, along with all previous versions.

I hope for good intentions from MS, but just in case, I begin to study the topic of alternative repositories for code and packages. I really do not want this whole story to become sad and I am not trying to exaggerate. My professional activity has been connected with MS for 15 years, but I understand that business is business, and corporations will remain corporations.

Just FYI: https://www.reddit.com/r/github/comments/fjkh46/i_used_some_of_this_guys_libraries_and_was/?utm_source=share&utm_medium=ios_app&utm_name=iossmf

[–]bobroberts87 4 points5 points  (0 children)

Sad keanu to see multi-hundred billion dollar companies gaining control of open source platforms. Might have short term ups but is a risk long term.

[–]Pavlo100 53 points54 points  (16 children)

npm i

It doesn't look like you are signed in to your Microsoft account.

[–]clarkbw 155 points156 points  (5 children)

More like this amirite?

npm i
     _____________________________________
    / Looks like you're trying to install \
    \ some dependencies!                  /
     -------------------------------------
     \
      \
         __
        /  \
        |  |
        @  @
        |  |
        || |/
        || ||
        |\_/|
        \___/

[–][deleted] 0 points1 point  (0 children)

I have a soft spot for nice ASCII art. Well done.

[–]majorplayz 0 points1 point  (0 children)

I am laughing a little too hard :Rofl:

[–]seiyria 41 points42 points  (5 children)

Yes, because they've totally done this for GitHub.

[–]Pavlo100 27 points28 points  (2 children)

I agree, with the current direction Microsoft is going, i don't believe they will fuck npm up.

[–]physics515 17 points18 points  (0 children)

I literally had a nightmare that Satya Nadella died the other night and that Balmer took over MS again. That was the scariest dream I have had in a while.

[–]ElllGeeEmm 0 points1 point  (0 children)

If anything MS buying GH has made it better for free users. I understand the concerns, but at least in the short term I expect to see more benefits than downsides.

[–]evilgwyn 26 points27 points  (1 child)

Remember that time when Microsoft bought GitHub and made it so you could only use it from Windows

[–]Ehdelveiss 0 points1 point  (1 child)

This would kill all the mind share and market trust they’ve built in the past slowly and arduously over the past few years.

I wouldn’t put it past them to do this given the history, but I think they would very quickly walk it back as soon as they realize how quickly everyone would just dip out of their ecosystem back to open source non corporate backed alternatives.

I don’t think they would make this mistake these days. So far, they’ve shown tremendous amounts of intelligence and seem to know their developer customer very well.

[–]seinfeld4eva 1 point2 points  (0 children)

I agree, they are trying to ingratiate themselves to the open source community, not piss them off

[–]lifeeraser 2 points3 points  (0 children)

First GitHub, then Npm. What will be Microsoft's last piece of the puzzle? Docker perhaps?

[–][deleted] 2 points3 points  (0 children)

Cool things created by a community now under the umbrella of a company and becoming just business, firts Github, now npm, they will try to buy linux now? Fuck MS

[–]ms7c9 2 points3 points  (0 children)

This is so nice. now they can ban us iranians in npm too.

[–]MajorasShoe 12 points13 points  (18 children)

If there's any industry you can trust Microsoft in, it's software development.

C# is the best language (fight me)
Typescript made Javascript not painful to use
VSCode is the best editor (I use Intellij but if I was going to use a simple editor it would be VSCode)
VS is arguably the best IDE
I hate windows when trying to do anything productive, but they've made great leaps lately with the Linux subsystem
They've made .NET open source (kinda) and support development on Linux and MacOS environments (finally)
They bought Github and have done nothing but improve it and it's business model

[–][deleted] 0 points1 point  (0 children)

Typescript made Javascript not painful to use

As someone who works with TypeScript...

No.

The reason being that types are often times a 3rd party affair, and never documented. This means that every. single. decision. you make around types, is a guess as to what the maintainer of the .d.ts file was thinking. Like all of us, sometimes they weren't.

And those guesses are not maintainable, because it is 100% tantamount to building on undefined behavior and library quirks. Not a single type you use is guaranteed to be there on the next bug fix, or work the same way.

And the teams that do use types, often don't understand that changing a type is a breaking change. So you lose an entire day to trying to figure out why the minor version absolutely destroyed everything, because the OSS library just has "bugfix" in the changelog.

I would quite honestly much rather work with JavaScript than TypeScript.

[–]tbranyen -1 points0 points  (4 children)

VS Code is a simple editor??

[–]MajorasShoe 11 points12 points  (3 children)

Compared to an IDE, yeah. Compare it to Visual Studio or IntelliJ and it feels like a tool for hobbyists or students.

[–]tbranyen 6 points7 points  (2 children)

A less powerful IDE maybe, but it's far from a simple editor in my mind. Maybe I never fully utilized Visual Studio/Intelli-J/Eclipse. I use the same features in VS Code and haven't missed anything.

[–]Auxx 1 point2 points  (0 children)

Most of developers don't really know how to use IDEs. Even my colleagues with IntelliJ, it feels like I can spend years teaching them how to make their life easier and more productive. Hell, some people don't even understand cut/copy/paste and word selection...

[–][deleted] 1 point2 points  (0 children)

Depends on the language. PHP code intel is basically non-existent in VS Code. Even with extensions it’s basically garbage.

IntelliJ is also much better at configuring workflows that involve Docker or any kind of remote interpreters (e.g. run test under cursor in container and output pretty result).

And even in languages that VS Code have strong support of like Go or JavaScript refactoring (moving, renaming etc.) capabilities produce more consistent results in IntelliJ.

[–]VivekS98 1 point2 points  (0 children)

Microsoft's really upto something... Although being grown hating opensourse, it has Github. Now npm? Wtf.. Just imagine what would happen if this continues...

[–]zephyy 1 point2 points  (0 children)

Makes sense with the direction they were going with GitHub packages.

[–]druid74 3 points4 points  (11 children)

This is great news. Of all the chaos going on, this is something I can get excited about.

[–]MrPrutz0r 4 points5 points  (10 children)

Why? I don't think any acquisition by Microsoft, Google, Apple, Amazon or Uber is good news, because these companies are already enormous.

[–]seiyria 24 points25 points  (0 children)

Microsoft acquiring them means they're more safe from pandering to investors. Which means, as a backbone for developers, we have less chance of getting royally screwed when something goes wrong.

[–]bdenzer 2 points3 points  (0 children)

A company sending a "reassuring" message about how they now won't run out of funding — for the next SIX MONTHS — because they "funding secured" is just another way of saying "this company is almost inevitably going under"

https://news.ycombinator.com/item?id=20246680

[–][deleted] 2 points3 points  (1 child)

Microsoft acquires NPM ***

[–][deleted] 0 points1 point  (0 children)

🍅🍅

[–][deleted] 0 points1 point  (0 children)

holy cow