- Podcasts
- Programming Throwdown
- Open Source Communities
About this episodeOn this episode we invite Mikeal Rogers, Community Manager at the Node.JS Foundation, to talk about open source communities and organizing…
On this episode we invite Mikeal Rogers, Community Manager at the Node.JS Foundation, to talk about open source communities and organizing large open source projects.
★ Support this podcast on Patreon ★Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Open Source Communities
So my role is—my title is Community Manager. But I do quite a bit. So part of it is community work still and working with—we have a new governance structure and a TSC and a really big flourishing project that I'm sure that I'll get more into in a little bit. So I work with that on the community side and just kind of try to make sure that any roadblocks are pushed out of the way and that, you know, people are being connected when they need to get connected. And then I also actually do a lot of the internal Foundation stuff. So we have a lot of resources from the Linux Foundation around marketing and PR and events that we use—so coordinating a lot of that, putting together, you know, board meetings and working with the Board of Directors and all that kind of stuff too.
that sounds almost like a real company. Yeah. So I say that sarcastically. Well, it's—it's yes and no. I mean, I think like at a real company, right? Like you might have a boss, and everybody's my boss. It turns out the Board of Directors are my boss. The whole community is my boss. And then I also have a boss at the Linux Foundation. So yeah, cool.
Well, the Foundation is there to basically make sure that Node is stable and that it, you know, meets its potential. You know, it actually reaches its potential. You know, Node has the possibility to be, you know, the largest programming language in the world and do a lot to change computing and to make sure that it actually, you know, facilitate like that actually happens. We have to facilitate, you know, a healthy project with a lot of contributors, with a lot of stability and security considerations. We have to, you know, support a growing ecosystem and we also have to, you know, support kind of more traditional marketing, PR, analyst relationships the same way that proprietary alternatives do, right? So if we're really going to change computing, we're actually going to need to compute with some of the proprietary technologies
out there. Cool. So oh, real quick. So we covered Node.js in Episode 41. So if you're here to, you know, learn how to start your own server out of Node.js or something like that, go to that episode first and then—and then come back to this one and learn about sort of the community that helps make that possible. Yeah, that's a good point. I don't know how much we'll get into Node.js technical details as opposed to using this resource this time with Michael to learn about open source projects. A lot of people—and we recommend people get involved with open source projects, but I'm curious like, you know, I start something on GitHub. It's Patrick's best new compiler for some new language. Patrick, see? I'm very and and, you know, it's just me working obviously. Like that's not a foundation. There's no like structure around that. What's kind of path of growth from like the language Patrick starts getting adoption and then like could you kind of take us maybe through about a little bit of how something grows from me working in my basement and like by myself to a whole organization? Sure, sure.
I mean, I think that you know most projects that we put out there don't go anywhere. You know, like even if you have a bunch of Twitter followers and you know most of the code that you put out nobody else uses. And part of, you know, modern open source is just kind of publishing everything and seeing where it goes. So, you know, I have a lot of modules that are really heavily dependent on that. A lot of people use, but I also have hundreds of modules that nobody cares about. And so, you know, putting stuff out the door and just like engaging in the open source community is kind of the first step, right? So you just get it out there; you see what happens. If you start to get users if people actually start to depend on this thing, you're going to end up getting contributions back, right? And by contribution, I really mean any kind of engagement from another person. So they could comment on an issue, they could even people that ask for help are engaging with the project in some way. And they may send you little fixes, big fixes, documentation fixes—that kind of stuff. And it's really important that as your project grows in users and as you start to see some of these new participants coming in, do you actually turn those people at least some of them into longer-term contributors to the project? People that may actually help, you know, review different contributions that come in or potentially in the future help you kind of run the project or do builds and things like that. And this is the thing that I think most open source struggles with right now is that when projects start to grow, we get stuck in this single maintainer phase where it's just one person trying to handle all of the onslaught of contributions that are coming in. And that creates a lot of tension with your community because you have people that really just want to help and you're just getting frustrated by the amount of help that they're trying to bring. And so we're—we're really trying to develop a culture and a skill set and a set of guidelines for developing, you know, contributors that come in into longer-term assets at least some percentage of them and also making it making sure that projects are in a state. where people can easily contribute to them and it's not very hard, so you get a lot of these smaller contributions coming in. Yeah.
That makes sense. I think one thing you mentioned that kind of really resonated in the beginning is that, and this is true for anyone if you do work in open source or you publish anything. Most of it is going to be kind of thrown away, and I think actually someone Ira Glass did you see his talk on the creative process?
Yeah, yeah, and there are some really choice quotes in it too just about how it's really hard for people when they first start putting out creative stuff as well because you're putting it out because you're kind of a fan first, and then you decide to make something. And the first stuff that you put out is just terrible, right? Like it's not up to your standards as a consumer, and you have to get over that and just keep making things and keep publishing things. Yeah.
Definitely so. Like going back to Patrick's—I mean if you'd love doing open source, just create a lot of different products and keep iterating. And but I guess it sounds like it's really just when the mindshare grows to a certain point. Like how at what point do the people making Node.js say, 'Okay, now we need a foundation?' Like actually, where does—I mean, at some point companies have to be involved, I suppose, like to get funding and things like that? Well, I
I think it really depends on the needs of the project, and every project's a little different. I think that jumping to money is probably a mistake for most projects. Money and adding kind of new incentive structures can do a lot of harm to a project, to be honest. Like, for instance, if your project is really hard to contribute to and you decide to go out and raise money to pay people to work on it, you're not actually going to end up making the project any easier to contribute to. You're not going to end up getting a bunch of new contributors; it's going to retain all of those barriers to entry that it always had before. And in fact, a lot of potential contributors may look at that and go, 'Well, you know what? This is maintained by people that are paid. I'm not going to even spend my time trying to engage in it.' So there's a lot of kind of counter-incentives that can happen too. Yeah, yeah, that's kind of what
Yeah, and—I mean, you know, Apache has some rules about trying to forcibly make the contributorship diverse, but there's not a lot that you can really say at the kind of process level about keeping it easy to contribute. In the Node project, we've done a lot to make it easy to contribute and to reduce all these barriers to entry. Right? So I mean, for one thing, the project is split into a lot of different kinds of repositories so that if you have a skill set for working on websites, you can contribute to the project; you don't have to be a core low-level C hacker to get involved in the project and to really make a difference. And we see a lot of people kind of level up through that process too. They'll work on the evangelism repo making blog posts, and then that'll get them into the website, and then from there they'll go, 'Oh, well what does core look like?' and they'll do some documentation or some test fixes, and then all of a sudden they're sticking around and really getting deep into the code. And at—you know, we have a record number of contributors to Node. Now I mean, we have, I think over 70 committers. So about a year ago it was five, so or like a year and a half ago now, I guess. But yeah, and you know just the CTC, like the governing body around core, I think is like 18 people now. There's just a ton of contributors, I think. In the latest release, we updated the authors file from about three months ago, and I think like 120 people were at to it that are just outside contributors. Yeah, and a lot of it is just making it really easy to contribute. I think that you know if you look at the GitHub data on this, like the majority of work happening pushes and commits that are going into the GitHub ecosystem are coming from people that commit like less than 20 times a month, right? People that are not super highly engaged. The people that are highly engaged account for like a shrinking percentage of the total workload. And so it's—and I think that this is really hard for projects to kind of wrap their head around because the people that show up every day are the people that have a voice and that tend to have power and that tend to create the process in those projects. And it's very hard for those people to create a process that's not for them. It's actually for people that are less engaged because the people that show up every day are going to show up every day no matter what. So you've got to actually make it easier on other people. And obviously, I mean, you know, I don't really think that there's a one-size-fits-all process for this. You know, if you look across the Node.js project, we have different policies around contribution in different repositories because the Node core project just has different constraints than the website, right? And so we can make the website incredibly easy to contribute to and not worry about things like comment metadata, but in the core project, we really need to make sure that stuff is really clean because we have to do all these branch merges and all this other complicated stuff.
I see. So what if you have to do? Something kind of atomic? Like I'm trying to give a good example. Like HTTP/3 comes out and you have to update to HTTP/3. It's a massive change, and kind of everyone has to be on board because it changes everything. How do you sort of coordinate that when you have so many people all across the globe?
Right, right. So yeah, that touches on a lot of things that we have in the Node core project. So I'll touch on a couple of them. One is that when a new contribution comes in from anybody, the default assumption is that it will land. So we don't say, 'You know, convince us that this should make it in.' It's actually up to all of the committers, and now we have over 70 committers, right? It's up to them to say reasons why something should not go in and basically have corrections. So the review process is the series of corrections to make this thing land. And there's sort of like a benefit of the doubt thing, right? We also bend towards things happening so we don't escalate. We don't ask for votes on anything where somebody's not objecting to it, right? So until somebody says, 'You know, this probably shouldn't go in,' or I have a problem with this, that's when things get escalated and we actually bring them to a vote in the CTC, which is basically a bunch of committers that are a little bit more trusted with the technical parts of the project. So this is like called a consensus-seeking process where you try to reach a consensus. If nobody objects, things just land. And that's over 90 percent of the contributions that come to core just land that way; they don't have to get escalated, they don't need to vote. We don't have a lot of like burdensome process in the way of getting things in. Also part of that whole review process is that changes need to sit for between two and three days depending on if it's a weekend or not, and that's because we have people all over the world in every time zone that need to have a chance to review code that's coming in.
Totally, and this is really important for us. I mean, like we have a lot of skill sets around the Node core project. I mean, most people don't know have a Crypto expert, and we're lucky enough to have two people that are really know the OpenSSL codebase really well, and they're in Moscow and Japan. So, so we need to make sure that especially when security stuff is going in that they have a chance to weigh in. And you know, I mean the TSC lead is in Australia. One of the longest contributors is outside of Amsterdam. You know, obviously there's a bunch of people from the US and other countries. So, we just have people all over the world, and we need to make sure that everybody can participate in the reviews. So that's been really critical. And I think you know one of the things too is that if you look at the Node project, we don't have a really stringent roadmap of like this feature is going to land on this date and then this feature is going to land on that date. Our roadmap just says, you know, this is when we're doing our next major release that will probably be a breaking release, and this is how long our long-term support cycle is. And this actually allows anybody to get anything in because we're not saying, you know, this stuff is more important than stuff. It's if you care about something, you want to get it in, it can probably land. If you want to get something into Node, like send us a pull request, get things moving, and we'll work on getting that code in. And this has led actually just to a lot more people getting stuff in and a lot more even really big changes just because people know that they're not going to be pushed in the back burner just because it's not part of some roadmap.
Right. So I mean for one thing, Node doesn't do a lot of that because we tend to take an ecosystem approach to the project where we want a diverse and flourishing ecosystem on top of Node. We don't want Node to become everything to everyone. And those are always kind of count like you know those are conflicting forces. Right? Like I think that one of the reasons why Python doesn't have a huge module community is because Python core continues to grow this giant standard library. And one of the reasons why we have the largest module ecosystem in the world is because we've kept core very small, so we don't do a ton of you know giant shifts in one direction or another. We do have certain large-scale high-impact features. One would be this feature called AsyncWrap, which is about really low-level instrumentation and debuggability that could completely destroy performance if we're done wrong. We also are talking about how we might add support for ES6 modules, and that's a big discussion. And for those things where we really need to get alignment about this before we sit down to write code, the way that they're done is with this thing called an EPS and an Improvement Proposal or Enhancement Proposal—sorry—and it's just a spec. It's a Markdown spec where we do it as a pull request in a separate repository. And then once the pull request kind of we use the same kind of process that you would for reviewing code, it's just a spec instead. And then you know that eventually goes up for the CTC so that you know the project can say, 'Yes, this is the direction we go. Yes, we want to add this.' Before anybody goes and sits down to write thousands or hundreds of thousands of lines of.
Something. Well, we have a few too many people to claim that all will be at anything; they're just a little bit too big. But yeah, so the foundation runs two major events this year: NodeConf Interactive or sorry, Node.js Interactive in Amsterdam and in Austin. And part of that is a Collaborator Summit, which is like more of an unconference where people who are active in committing and working on the project just get together and try to hash some stuff out. And we're also doing this thing called CodeAndLearn, which is that if you want to work on Node core and you want to get deeply embedded in something but you want just like a day's worth of mentorship to kind of dive in, we have all the contributors there that can help you do that. And then of course, right? Right, and then of course we have all the regular kind of talks by core people and stuff like that at the regular conference that happens as well.
Very cool. So we get one of our most common questions email questions in are people who want to work on an open-source project but you know they've literally just picked the book on C++ 101 and so then they try and jump into Node.js for example, and they don't really know where to start. Is there I mean what would be your advice to somebody who maybe you've just graduated from college, knows nothing about Node but they want to sort of donate their time? Like or maybe they're a Node user but they know they use Express or something, but they know nothing about the Node codebase, but they want to help. Like what's what's something even maybe something small that they can do to get
Started? Right. Right. So I tend to look at this in terms of barriers to entry. Right? So there's two categories of barriers to entry: one is technical and one is cultural. So if you want to work on a new project, you may have to learn technical things in order to get over a hump, but then you also have to acclimate to like how this project works and how things happen. And it's a little daunting to go after both of those at the same time. So I tend to encourage people to look at the project and look at their skill set and do something that they already know how to do, right? So you can adjust documentation, you can adjust a test pretty easily. Basically anywhere you can work on the website, you can help write a blog post. There are all these different areas in the core project that you can contribute to where most people that will listen to this podcast will have some kind of skill set around web development or documentation that could do that. And you know that's like a good way to dip your toe in the water, and that's a good way to only acclimate to the cultural part and really just kind of figure out how things work. And you know make sure that this is like a nice welcoming community that's not that you actually want to be a part of. So I would encourage people to do that first. And we have a couple tags across the project like 'good first contribution' and things like that that are kind of low-hanging fruit. But yeah, that's what I encourage people to do for.
Sure. So if you want to acquaint yourself with the community, with the cadence, with the direction, with that kind of stuff, is there like is it typically that the open-source projects are using mailing lists for that? IRC chats? Like what is it? You know, you want to be an observer. Like I want to get interested, but like you said before, I invest all this time. I want to kind of get up to speed because there's this embarrassment thing that you're worried about, right? Like I'm going to send an email and this person is going to think I'm really stupid. Now there's various issues with that, but you know that's kind of how people feel, and so you want to kind of sit on the sidelines and just watch what's going by before kind of stepping in and helping. And what is the best way to kind of figure out where the quote-unquote community lives?
So for us everything is on GitHub. We actually we don't have mailing lists. We basically treat the GitHub issue tracker almost like a mailing list. And inside of the Node.js GitHub org, which is just github/node.js, there's like a hundred repositories, right? And you know each one kind of covers a different area. The best way to figure out where your thing is that you might want to be interested in is that there's a repository just called 'help.' So just github/node.js/help, and in there you can ask any question that you want. So it could be about I don't know how to do this thing in Node, or it could be you know what like I have this kind of skill set, what are the what are the things that I should like the repositories that I should watch, or how should I kind of get involved in this particular area? And people there will tell you how to get involved. So you know the answer to that question really depends on the individual person's skill set and what and what they want to work on, but we do have a place where you can figure that out.
Nice. So you brought up something else, which is you know I'm using Node.js and I have a question, and what is kind of the Node.js foundation of the project do? Because obviously for it to continue to be important, people need to be using it. Like just developing Node.js is awesome, but if no one uses it, kind of what's the point? Like I mean there is a point, but like past a certain level, right? And so how do you kind of help try to make sure that the people using it are facilitated, have the help they need, have a healthy blog posts about how do you write projects in Node.js as well as you know contributing to Node.js?
So I think this is actually one of Node's strengths. And I mean we have 100 year-over-year growth right now. It's tremendous how fast we're growing in terms of users, and a big part of that is that we have a wealth of like almost anarchistic resources about learning Node and doing things in Node. And that actually turns out to be a big asset because different types of developers just look for different types of information when they're working through things. There are certain developers that will just bang at something until it doesn't work, and then they'll Google something, and then hopefully that lands them on like a Stack Overflow article or a blog post that's related to what they're doing. And we have a ton of those kinds of resources up. We have, you know, we have API documentation. We have Node School, which is like this tremendous community of people putting together self-guided workshops and also just around the world doing little meetup workshops and getting people into Node and learning Node. So we have all these different types of resources for different types of learners that people tend to find. And if you're looking for—if you don't know what type of resource to find, I would go to that node.js/help repo and just ask there, and you'll definitely get a good answer. But yeah, I think that I think that, you know, a lot of projects tend to focus on one true answer for this kind of stuff. Like, you know, we have perfect documentation, and it's all right here. And you know, we have API documentation, but we also have just a million things that you find on Google—from traditional published books to self-guided workshops to just Stack Overflow articles. Nice.
And then what about establishing like standards? So you talked about Python. So Python kind of has their like here's the way to write Python. No, you can write it however you want, but you know they kind of have—right? Yeah. So they kind of have I don't know exactly their relationship of PEP 8 to them, but there exists a standard. Let's pretend they did for now so I don't have to Google it. But you know like that's kind of one attitude. One attitude is to say, 'Look, I don't care how you write it; do what you want.' But obviously, people who know what they're doing are a good resource to say what's the right way to structure a program, to have module decomposition, that kind of stuff. How do you help shepherd the community from that standpoint?
So I think Node stays out of this more than probably any other language. We don't—there's a lot of creativity in the JavaScript community, and we don't want to tell people, you know, what our opinion on semicolons is and try to say that that's the one true way or anything like that. I think that there are though a few core patterns that Node defines and a lot of compatibility with Node itself and with modules in the ecosystem depend on those patterns. So if you're doing iterative processing of data, you would use streams, and that's really important. There's sort of a standard callback API that all the Node APIs use, and that most—that most modules in the ecosystem use. And that's a really important kind of core pattern so that people can use that—that's just the error-first callback pattern. It's very simple. And I think you know for publishing modules to NPM, there's something of a best practice there, which is that a module should be a single function and should do something very well. And so most modules that you see published to NPM are a single function that does a single thing, and they're usually composed of like a hundred other modules to get that thing done. But those are really the only patterns that we kind of push and advocate in the community. We don't push a particular style guide. We don't really even have an opinion about higher-level constructs like Promises. We're really kind of trying to stay out of that and let the ecosystem decide what they want to do. The only other thing that we do a little bit more proactively is that as new language features land in V8, and then we take the versions of V8—we do a fair amount of work to figure out what is optimized and what isn't and what is fast and what isn't, mostly just so that in Node itself we can know which features to use and not to use. And then we let the community kind of know which of those features are already optimized and which are not.
That's actually interesting. So you talked about V8. Maybe could you talk briefly about kind of Node's relationship to V8? And then also like V8 isn't Node, you know, at least in my understanding. And so depending on another project right has its own good parts and bad parts, and talk about how kind of Node
manages that. So I think so V8 is the JavaScript engine that Google made for Chrome, and Node has always bounded this VM and has used it for a very long time. Every major release of Node usually comes with a new V8, and that up until this last one that meant that the C++ API would break. The Chrome team like the because Google manages Chrome and V8 kind of together, they don't mind breaking their binding layer because they can just update the Chrome code. But in the Node ecosystem, if you have any native modules, you know anything that's written in C++, this causes a big problem, and it takes a while for the ecosystem upgrade. So that's one of the reasons why Node has like a longer major release cycle than V8 does. V8 has a major release every six weeks, and we only have one every six months. But there for a while there was really not a lot of communication between V8 and Node to be honest. It really kind of broke down a couple years ago where it got pretty close to zero communication between the V8 team and Node. But since IOJS and since IOJS merged into the Foundation, and there's really a foundation in place, the V8 team is getting more and more integrated into the Node process. And in fact, certain resources from the Google Cloud Platform, which is heavily investing in Node, are also working on Node for Google that aren't specific to the V8 team. So that's really created a better relationship with us. And I think that you know they care a lot more about that kind of API stability, and we're working with them to maybe bring an end to these breaking changes to the C++ API, so that's actually going really well. And in addition to that at the same time is that you have the Chakra team from Microsoft binding Node to Chakra, getting Node on to the Xbox and to Windows 10 IoT by binding it to Chakra. And you also have the Spider Node project which is it actually started like I think back in 2010, but it's now actually updated and working again for the first time in like five years. And that's binding Node to SpiderMonkey, and so I think in the future we'll probably see a slightly more VM-neutral Node.js than we have in the past, although I don't see anytime soon where the default won't be V8.
That sure. So there was a disagreement with the owner steward of Node.js Joint and some of the contributors that were in the community contributing to Node. And the disagreement wasn't about technical direction really. Like there were clearly a lot of problems that Node needed to solve, but the real disagreement was just about how the project was run, right? Like is this a governance structure? Is this a BDFL model? Like how do we have more of a voice in this thing that we're dedicating?
Linux. Yeah, yeah. It's Linux. Linux is the BDFL of Linux. Okay, okay. Yeah, yeah. But yeah, and so Node had a BDFL, but it like it would turn over like every two or three years. So it was benevolent dictator for two or three years. That acronym is way harder, right? Right. And I think like you know as the community around Node grew, right, the user base grew, the amount of kind of outside contributions kind of coming in grew, the number of committers and maintainers was not growing. It was not keeping up. So that the model of managing the project was just not scaling with what was happening to Node. And so the people who behind IOJS thought that they had a lot of good ideas about scaling out the project really learning from Node's own ecosystem. There were a lot of great kind of governance experiments in the NodeJS ecosystem, and so they created this fork under this other governance model. Most of the committers to Node went over to IOJS, and and that model worked incredibly well. I mean it you know I think in three or four months it became sorry it hit a record high in the number of people contributing to NodeJS. So back like you know it was like 2012 since it had been that high. And then they eventually kind of broke that record. So it was a tremendous success in terms of bringing in new people to the project. You know, it wasn't super stable, right? Because doing really fast iteration taking V8 all the time, doing all these major breaks. But because it's not NodeJS and it you know people were kind of opting into the fork didn't really have to deal with the stability, the long-term stability issues that Node had to deal with because it didn't have any history yet, right? But at the end of the day like there was no technical disagreement. There was no like 'Oh, we want Node to have more features,' or 'We want Node to go in this direction or that.' It was just about how to manage the project. And so Joint decided to start the Node Foundation and put Node into a foundation. Once Node was into a foundation, the IOJS group decided to merge in, and essentially the foundation for NodeJS adopted more or less that the governance model from IOJS. So all those contributors came in, all that process came in. But now like a lot of new things needed to happen in terms of release scheduling and long-term support to bring all of these new contributors in this community to support something that needs to remain stable for years and years, right? So And it I mean it's been a huge success. Like it took a lot of work from me and James Snell and Rod Veg to make all this stuff happen, but at the end of the day we have both like the stability of Node.js with the competencies of open governance and a huge amount of growing contribution base from IOJS. So we really got to take both of the core competencies and merge them together. So
Gotcha. Cool. Yeah, very cool. So what is, you know, you're a Community Manager, and someone who's community manager of an open-source foundation? What's sort of your day-to-day like? What are the things that you typically have on your plate or just in general, like at the Node.js Foundation? What are kind of the day-to-day activities there?
I mean, with a community that's growing, you know, it's doubling every year. That kind of always changes, right? I think really early on, I was much more involved in the day-to-day of the project because we were doing this huge merge to bring these communities together, and we were still coming up with the practices and processes by which we could continue to scale the project to more and more contributors. Once a lot of that was in place and there were like a lot of new leaders established, I've been able to pull away from that quite a bit more. And so a lot of what I've been doing lately is working with the team internally and externally to come up with a really consistent message and understanding of what Node is and why it's really successful. I think that the traditional view of Node.js is that it's this thing to write servers in, but if you look at our actual usage and our actual growth, we're so much more than that. I mean, the way that people develop front-end applications is now totally different, right? Like nobody used compiler chains unless you worked on Dojo like seven years ago, and now everybody doing modern open-source development is using a build chain written in Node.js. I mean, now like the new front-end framework is not a thing that you stick in a script tag; it's a thing that you use in a build chain written in Node. js, like React, right? And so, right, so front-end development has totally changed. You also have Electron being used by a huge amount of desktop applications now. I cannot believe that a desktop framework took off this quickly and is now, you know, like Node is now the easiest way to build cross-platform desktop applications. Yeah, it's used by
It's for people who don't know. We covered Electron in our tool of the show, but actually we covered Native of Fire in our tool of the show, which uses Electron, and that was the tool where you could just say, you know, google.com, and it makes like an app, like an OS 10 app for Google. Like you could have the Google app and it has an icon on your desktop and things like that. And so Electron is a way to wrap a website into an application, and I didn't even know that was written in Node.js, but it makes sense when you think about it. Yep.
It's, I mean, it's Node in WebKit, but I think a lot of the power there is coming from using web technologies to create the whole front-end experience, but then having Node to handle networking and file system and a lot of other stuff. So I mean, a lot of people don't realize, but you know, the Slack desktop application is written in Electron. The Microsoft's Visual Studio Code editor is written in Electron, really using Node.js. Yeah, yeah. Like it—it is—I mean, it feels native, and so people aren't really recognizing when this kind of stuff happens, kind of the way that a lot of apps that you use on your phone, you think of as iOS apps, are actually written in Cordova using web technologies also using Node. js actually now as well. Yeah, yeah. And so that's a big part of Node. Cordova is a big part of Node doing, you know, mobile and tablet applications. Also IoT is really taking off, so last year all of the new IoT embedded platforms now run Node on device, right? So even low power. So that's just been like a tremendous shift. And then also all the new cloud technologies, the serverless technologies like Lambda and Google Cloud Functions and Azure Functions—they're all on Node as well, and sometimes Node is the only platform that they're supporting, right now. Yeah, yeah. And then you know, Node is huge in enterprise now as well, like on the microservice stacks. 90% of what people are running on top of all the stack is just Node. So when we started looking and really breaking down like why is Node so successful in all these areas where's the growth coming from? It's really kind of self-reinforcing. You know, we talk a lot about polyglot and a lot about the best tool for the job, and I think that if you're a really experienced developer, that's an amazing luxury to just be able to run anything and be able to select a language. But the vast majority of developers just want to get a thing done, like learning a language is another thing in the way of them getting something done. And Node being this much more transferable universal skill set across IoT and back-end and front-end, it really kind of lowers the barrier to entry to building these like bigger complex applications, and this really big new full stack that you have to contend with. And having a unified debugging environment and a unified tool chain for when you're working on an IoT device or on a front-end application is really huge. That.
Makes sense. What about like so a couple of things? One is these are kind of more kinds of nits, I guess, about Node that I'm curious. One is I know ES6 has its own type of, I guess, require, and so will Node kind of adopt that? Because one kind of issue that I think Browserify was able to do pretty well there's also RequireJS and some of these other ones was that you know when you wrote something in Node, that code didn't just also work on the browser. Like if you had something like a combinatorics library where it was you had to do it in Node, but then you also needed something on the browser, but you had to do all this crazy stuff to wrap the code so that it could run on both. And is there sort of are you working with the Browser JavaScript community to try to make cross-client server development easier?
Well, I think you know the ecosystem is really figuring this out for us. I mean, I think that when Node started, a lot of the problem was that the majority of JavaScript that anybody had ever seen was written for the browser and relied on some DOM APIs that we didn't have in Node, right? So Node was like this new kind of virgin platform and didn't have any modules on it. Now Node has more reusable modules than anywhere else, right? And so there's this huge amount of incentive for people to come up with tool chains that make all that work in the browser in a variety of contexts. As far as these ES6 modules go, that's sort of like a much more complicated question than I wish it was. I think that today a lot of people are already using ES6 modules just through a compiler chain, especially if you're doing front-end stuff, but even some people doing back-end stuff are just using a compiler chain because they like ES6 modules. And there's not a huge amount of value that gets added to that experience by having it work natively. And I think also a lot of people are still going to rely on those compiler chains if they've opted into them today because there's going to be new features that still aren't in V8 yet, that are like the next feature that people want to play with, right? I think a lot of people that you know want to see a lot of this stuff come in natively, they're also using Webpack. So they're not going to dump that compiler chain anytime soon, right? Or they're using async await and other features that aren't in V8 yet, and we don't even know when they will land in V8. Can you
Context? Right. A compiler chain is just something that takes your code and then turns it into other code that will run and execute in different environments, right? So if you wanted to run in the browser environment, you would run it through the compiler chain that makes it work with the browser and not relying on a bunch of Node APIs and adding intermediate modules or polyfills or whatever needs to happen to make those work. Gotcha. Yep. Right, right. And so like there is a discussion right now about how to get ES6 modules into Node, and it's a much more complicated discussion than anybody had ever thought because there were some assumptions made about detection of what module type that you're in that's handled by the browser by a difference in the script tag that we don't have. And so the way that we detect that and turn it on is up for a very contentious debate right now.
So I unfortunately don't have a great answer. Gotcha. So one other sort of—oh, go before we start spiraling down this, I want to go back to something you were saying before, which was so you know people start a new project, there's this right tool for the right job. And you know that's part of what the podcast kind of sets out to do is talk about all these different tools so people know all the options out there. But in most big companies, you don't really get that luxury. I mean, it would be nice, but you know you kind of are limited to C++, Java, maybe Python. If you're doing web stuff, you know there's JavaScript and stuff. But as somebody who is starting out or trying to transition into programming, Node.js has enabled people to, as you said, do more than just front-end website scripting in JavaScript. Do you think that Node.js JavaScript combined has the ability to kind of be one of those core things that if you learn this as a first language, it has the legs to take you—you know—far into your career? Do you think it's there already? It will be there? Like what are your kind of views on that aspect of Node?
And I do think that it's there. Today, I mean especially over the last year with the changes that have happened in IoT. I mean, we're Node is now supported on device probably more than any other language on IoT platforms, and that was kind of the last space that we were worried about being a good like a fit for. Right? It's hard to run on embedded hardware, but it's happened, and a lot of the work that we've done being very, very efficient has really paid off there. I think you know to come back to some of the points that you made earlier, I think that Node being a more universal language and people doing more kind of full-stack stuff with Node is actually at odds with this notion of polyglot because they're not entirely right. So if you look at what's happening in enterprises, they're adopting more or less like these microservice stacks, right? So they have Cloud Foundry, Kubernetes, Docker, or whatever. But they basically have a way to build out infrastructure and then run anything on top of it so they're not going to get vendor locked in the way that they did the last time that they did a big technology run 10 years ago, right? Like they want to—they want to be on top of all these standards so that they can move providers and so that they can run anything. So the barriers to running a Go process in production, even though you've never run a Go process in production, is getting lower even in enterprises, right? And that's a really good thing because if somebody writes a really good analytics tool or a really good database in Go, they should be able to run that in their infrastructure without a huge barrier in the way. But the other—the flip side of this, right, is that deadlines are getting shorter. People have to do more with less. The communication overhead between having a team that only works on back-end stuff and only works on front-end stuff is a really big barrier to getting things done. And so what we're seeing kind of across the industry even in enterprises is that Node allows people to reduce the number of people that are on these teams, have the back-end people and the front-end people working much more together. You know, even when you have a person that only works on front-end, only works on back-end having them in the same team and speaking the same language is really, really useful. And you have a lot more mobility and agency between people because they can do more inside of the organization and aren't limited by, you know, the language of the platform that they're used to. So tearing down these barriers is just like a really good thing. And one of the reasons why we're seeing such tremendous adoption is because we do such a great job at tearing down those barriers. I don't think that means that we'll stop seeing other languages and seeing people use other languages that are great at particular things, but when I look at what those companies might look like in the future, I really do think that Node is going to be the majority of what they run, but that last slice of what else they're doing is going to be a ton of different languages that are amazing at very particular things. Interesting.
So if you could give—is there like a couple things you could say if you're looking at Node, or do this, you should look elsewhere? Since you just said it runs in most—I won't force you to say the things that mean you should use it. But let's ask the more interesting question of, hey, if my project involves like you said before, you know I spent a long portion of my life doing embedded hardware, so you know I would never have turned to JavaScript before. I do agree—I see it coming out more. I don't know what I would still turn to yet. But you know that's my personal opinion. But you know kind of what are the things that are kind of still out of bounds or not probably a good choice for implementing in Node?
Okay, well yeah, I do want to respond a little bit to what you said though about using it, right? Like one of the great things about Node running on these devices isn't that—you know it makes things a little bit different for people that were already able to write for those devices is that it opens it up like those devices up to so many more people that can now develop on it because it's using Node.js and it's making things so simpler, so much simpler, right? So it's really just reducing the barrier to entry to getting into those devices. In terms of what is Node bad at—I you know I get this question all the time, and it's really hard to answer because in the early days of Node, the things that we said you shouldn't do with Node ended up being the largest growth areas for Node. So yeah. So what do you want your next big growth area to be? Like there was actually—there was a panel of like you know all of the kind of early Node core people at NodeConf. My first NodeConf, actually, that I ran in 2010, and sort of asked them like, 'Hey, what should you not do with Node?' And they said, you know, anything that's like, you know, like a Bash script and writing compiler and tools like that—like don't use Node.' Right? So that's one of the biggest growth areas that we have is in front-end tools like that people used to do, and things like Bash. And the other was databases, and we actually have a huge amazing thriving spoke database community built on top of the LevelDB. So those are both like amazing areas of work for Node. So yeah, I think like the one—the one thing that if I look at other languages and I'm going to get jealous about, and every language does something amazing, right? Like they all have something you haven't seen.
Right, right. Well, most I will say if I'm looking around though and I go like and I actually get jealous of something—the fact that Go doesn't bind to libc, and that they went so far in the direction of everything just comes into this platform, it's given them some like really interesting portability. You do have like the actual final compilation, which is really cool. And also libc is kind of garbage, so that's nice. But and also I think that they also have a custom crypto implementation which is like in Go, and this is one of the things that people don't get about building out ecosystems and languages is that in the early days people will show up to build anything that you don't have. And so it's actually, you know, like bootstrapping, like every every JVM language does this thing, right? Where they go like, 'No, no, it's great, you can use all of the Java stuff,' and you don't have to switch over. And that's actually like not a great way to build an ecosystem because people don't show up to build like that thing in that language. Yeah. And when Node started out, we were so incompatible with the whole world. So like you couldn't bind to any of the C libraries that everybody binds to because they all use blocking I/O, right? So we had—we had to write our own MySQL driver, our own Postgres driver, and we also weren't compatible with any of the JavaScript on the web because we didn't have a DOM. And that actually ended up being, you know, one of the secrets to our success was that so many people showed up and wrote these native implementations of everything. And Go—Go has done that even a little bit more with their crypto stuff. You know, they also pay a guy at Google to write that. But right, right. But yeah, I think that that's that's really cool. That's something really cool that they were able to do. And I and I don't think anytime in the future we're going to have a pure JavaScript crypto implementation. So so if
I think about like um like If I was thinking of like strengths and drawbacks, I'll tell—I'll tell everyone the first thing you should learn is JavaScript. You can build a cool website, you can do the back end in Node, so you know. But I would say the biggest drawback for me for Node would be the weak typing. And we constantly get feedback about what is strong typing, what is weak typing. We look this up and it turns out weak—weak and strong typing is whatever you want it to be. So basically the fact that you just say A equals three now A is a string versus, you know, Scala with type inferencing, Swift with type inferencing, Java with strong typing, right? And so I know there's something from Microsoft like TypeScript, right, that might work with Node, but other than that, like what are sort of ways to get good type inferencing or strong typing? There's no looking into that.
So so this is a an area of deep thought. So a lot of the performance benefits that you get out of typing—we actually have in JavaScript, right? Like if you really look at how the VM optimizations work, is that they figure out the types and they create like, you know, these inline. They do this inlining or they do some tracing or something. So JavaScript VMs have a lot of ways of making things as fast as if you were using the typing. So there's not really like a big in my mind a huge performance like thing to be said about this. I think that if you want—there are a bunch of people though that really like the early errors and and the early type errors, and a lot of the changes that it makes to the way in which you program, I don't actually agree. Me personally, like I mean I started out with Assembly and C, and I come from a background of lower-level languages, and at no time when I went from, you know, statically typed languages to dynamic languages that I go, 'Oh man, I really wish I had type errors again.' That's just not like something that I've ever said. And actually I do find that there's something of a correlation between people that get really into type—to type safety tend to be people that started with dynamic languages and then looked at typed languages, and it's like kind of the opposite as you might expect. Oh, really? Yeah, yeah, yeah. It's it's really fun to watch. So yeah, I'm not personally like a huge fan about that. I will say though, I heard—I was talking to I think Tom Dale about this a while back, and he was looking at moving some of the Ember codebase over to TypeScript, and one of the reasons that he cited, which I think is actually pretty smart, is that because all the JavaScript optimizations are based on typing, and if you end up switching the types too much, you end up getting out of optimizations. Moving a code base that you even expect people to just use in JavaScript over to TypeScript means that you're always going to use the same types and you're always going to hit the fast paths, and so it's a nice way to make sure that you know without sitting down and by hand going through all your code and figuring out where the JS VM is deoptimizing, you just get all that for free. And so that was a really good argument I think for TypeScript.
I see. Okay. And that runs on Node. It's just that—that's very cool. Yeah. Yeah, so we talked about how people can get started in open-source projects, but also people new to programming are looking for a first project. You said there were some cool Internet of Things things that will run on Node. You've talked about building—you talked about projects that can allow you to build Electron to build desktop applications, you know. Could you kind of give some recommendations as like people who want to get a taste of Node or are new to programming in general and want to say, what is this? Something cool I could build? Like some examples at various pieces of the stack maybe where Node is used and what people could do or look at there to kind of get inspiration? So,
I think that if you're—if you're just sitting down to try to learn—the best resource is Node School. So you can go to nodeschool.io. There's a bunch of workshops there that are like choose-your-own-adventure workshops where you know learn by doing, and it tests your code and all that kind of stuff. And you know, you can learn anything from, you know, learning basic JavaScript, basic Node, to Johnny-5 IoT stuff, to—there's even one for WebGL if you want to, you know, use the Three.js components that runs in the browser and does like 3D model diffing and stuff. It's crazy. Yeah. No, it's an incredible resource for learning stuff. And there's also a community on GitHub that will, you know, help you get through anything. So if you get stuck, you can ask a question, and people will help you get through it. So that's a tremendous resource that I point everybody to. In terms of, you know, it really depends on what you want to build. I think that there are sub-communities around different parts of Node that you can get involved in. So if you're interested in robotics, there's an amazing community called NodeBots that does a lot of amazing, you know, robot stuff in IoT. There's a library called Johnny-5 for doing IoT and hardware stuff that has a great community around it. It's actually built by one of the core contributors to jQuery, and so it has that kind of jQuery ease of use baked into it. So that's a really good resource. Obviously, the desktop application stuff you should really look at Electron. I think the Cordova project is great if you're looking at mobile stuff. Um, let me think here who else has a great community that I'm forgetting. Oh, if you're interested in WebGL stuff, there's a community called Stack GL which is a small modules that implement all of the kind of fundamental math stuff around doing WebGL. They're great. And yeah, that's all that I can think of off the top of my head.
Well, that was pretty impressive actually. I don't know. You should be ashamed that you could only name 30 or 35. So I know you mentioned that—obviously like money doesn't solve open-source community problems; it creates more of them. But let's say my—I start a company and my whole company runs on Node.js, and how do you sort of what can enterprise customers or users of Node.js do to sort of help the community? I guess go to one of these events is one of the
ways. Yeah. For certain—I mean, that's also just a really good first step as well as to go to one of the Node interactive events. These are like the bigger kind of industry events as well, so they'll be very comfortable there. I think it really depends on your level of investment and the level of dependence that you have as a business on Node, right? So I mean, the Node.js Foundation has corporate members, and we have an open door to any other corporate members that want to show up and get involved at any level. And that's how we fund—how we fund the foundation and kind of keep the lights on, but it also gets you embedded into the sort of background marketing and messaging and just the sustainability side of the project. So if you're if you're heavily dependent on Node, that's a good place to invest. I think also if you have the resources and if you're highly dependent having your people start working on Node core and potentially, you know, giving them more and more time, possibly even full-time to be able to continue to work on Core is an investment that pays huge dividends, to be honest. A lot of, you know, a lot of the really big kind of Node users have these people that, you know, dedicate a lot of their time to Node core, and they have an insight into how Node works and where things are going that have really helped those businesses. So yeah, that's another really great way to get involved, and you know, there's a—you can really get involved at every level. I mean even the build infrastructure for building and testing Node. It's, you know, donated hardware and a bunch of open-source contributors that manage, you know, this huge cluster and keep everything running. So I mean, we're really, you know, we're there and have an open door for a lot of different types of skill sets, so you don't have to have a low-level C programmer to get involved in the Node project.
To pitch, I think that we've covered pretty much all of our bases. I think that one of the things that we're doing as a foundation, and we're also working with the Linux Foundation on this, and I'm also putting in a lot of my kind of personal time is trying to bring the public consciousness of open source up to where open source actually is now. So we talked a little bit about how contributions are coming from people that are engaged a lot less, right? We have this—it's not a long tail anymore; it's really like tail-driven, and the tail is the majority of the work. And the conversation around open source is always about kind of like these full-time open source people, a lot of ideas and argumentation about licensing and all these things that really don't matter to modern open source developers. So we're really trying to push the consciousness of what an open source developer looks like—to just the reality, not even trying to push it in any particular direction. Yeah, that.
Totally makes sense. I know that. I've contributed to various projects, and one of them I contributed to recently was Gradle, and they made me sign this whole thing and fax it to them—like I didn't even have a fax machine. I had to go hunting around for a fax machine. It was just on their side; they're worried about me coming and saying, 'You know, look, I wrote this 30-line file in Gradle, and now I own the project,' or something. And so I think yeah, the legal area is one that has kind of fallen behind the way the ecosystem is now, right? Right.
And I mean, I've—you know, I've heard those lawyers say things to me as well. But the reality is that one of the reasons why we have a foundation is because we have real lawyers that can tell us like the real risk profile here. And we also have IBM and Microsoft and these huge companies that remember that also have lawyers that are interested in this, and so we end up with policies that everybody can agree to. But you know, the opportunity cost of not getting a contribution because you have something like that is hard to quantify when the view of open source is that it's people that will jump through all these hoops that are highly motivated, right? And the reality is that actually we need to start changing open source processes and policies and barriers to entry to accommodate a much more casual contribution base. So yeah.
You. Yeah, thank you so much. This interview is amazing. I think it really resonates with people. I mean, personally, up until recently, I thought open source—you know, various open source projects like Node.js—I would imagine it's five people in their basements around the world, and just kind of hacking away at stuff. And it seemed kind of very distant; the users and the contributors seem to be just two completely different communities. And what you see especially now is all of that kind of coming together, and community managers like you helping to sort of organize that and sort of push that philosophical shift. So it's very cool. And thank you for coming on the show. No problem. Anytime Programming Throwdown is distributed under Creative Commons Attribution-ShareAlike 2.0 License. You're free to share, copy, distribute, transmit the work, to remix, adapt the work, but you must provide attribution to Patrick and I, and ShareAlike, and kind.
