DHH discusses SQLite (and Stoicism)
DHH and Aaron discuss modern SQLite, the one-person framework, conceptual compression, stoicism, and ONCE.com's newest product: Workbook.
Everything we said
Aaron Francis
What you're about to hear is an interview that I had with legendary software developer, race car driver, business owner, David Heinemeier Hansson. We talk about SQLite in the beginning, and then we talk about stoicism, and conceptual compression, and the one person framework. We talk, we talk about it all. If you want to learn more about SQLite, I am creating a course, highperformancesqlite.com, and you can find everything you need to know about SQLite there.
Enough about me, let's roll the interview. I tweeted at you, like, an hour ago, and here, and here, and here we are. Um, so I, I tweeted at you because I saw Daniel Vassallo talking about their instance of Campfire, and I'm, I'm a member of his community, and so, um, and I saw that he was running stuff in the SQL, SQLite command line, and I was like, "Yeah, I should do this now.
It's been on my list. I'm just gonna tweet at him." And I said, "Hey, DHH, do you wanna talk about this?" And you're like, "Yeah, let's do it today." So here we are. Thank you so much.
David Heinemeier Hansson
Yeah, my pleasure. This is one of the advantages of having a mostly empty calendar. You can do things when they pop up, so-
Aaron Francis
Yeah
David Heinemeier Hansson
... I'm really excited about SQLite, so I love talking about, uh, things that I'm excited about, so let's talk about it.
Aaron Francis
Uh, so speaking of, before we dive in, your video looks amazing. Your audio sounds amazing. Is this your new Linux pieced together machine that is just working perfectly?
David Heinemeier Hansson
This is my Linux machine. I will credit, though, my, uh, Shure microphone and my Sony camera.
Aaron Francis
Okay.
David Heinemeier Hansson
Those two things just pluck right in, especially that Sony camera. No drivers, no nothing, just USB-C straight in, and it pops up as a, as a webcam in any, oh, as I run it on. But this is running on Linux, and it is kind of amazing. It just works.
Aaron Francis
It just works. Well, that's, that's wonderful. So speaking of just works, SQLite, it's good now. It's been good maybe forever, but now we're all discovering it again. Uh, you know, the guy wrote it in, in the year 2000, and we're finally discovering it. So the reason I wanted to talk to you is because y'all did this big, you know, Once.com, like, "Hey, we're changing everything again," and the first product that came out was Campfire, and Campfire ships with SQLite.
And so I kinda wanna hear about a little bit of the behind the scenes of how you ended up making that decision and kinda what some of the ramifications have been from there.
David Heinemeier Hansson
Sure. So I think it... What's really interesting about SQLite is, as you say, it's been around forever, and it's had its niche. This was a kind of database you would insert into a, um, standalone application that would just run for one user, and that was sort of the niche it's owned for a long time. People have used it for a bunch of other things, but I think a lot of developers had that in mind.
Unless I'm developing a client application that's just for one user, SQLite is not for me, because you can't use it on multiple machines at the same time, yada, yada. And then what happens is computers get really fast, and they get really wide in the sense that they now have a lot of cores-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... and the SSD drives are fantastically fast, and all of a sudden, the preconditions for using SQLite for more than just one user are there. Again, I'm sure people were able to do this in the past, but now it feels more accessible in a way that just kind of intersected exactly at the right moment for us with Once.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
So Once is run SaaS, essentially, run web software, but on your own machine, and that sets it up in a environment where it's not single user, it's multi-user. That's the whole point here. You're not gonna chat with yourself. You're gonna chat with other people. But it's single tenant.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And I think that's really the switching point that as I observed it with SQLite, is that there's a bunch of web software that now makes more sense, could make sense, as single tenant software that you run on your own machine. That's obviously what we're trying to explore with Once. Then there's another path of this that I think is also interesting, which is to use SQLite in the beginning of even a multi-tenancy-
Aaron Francis
Mm
David Heinemeier Hansson
... setup, just to get rid of a bunch of complexity, maybe get rid of a bunch of cost. We can talk about those two things. But when we set out to do Once, we had a bunch of things that were unknowns. Mm, first of all, how, how are we gonna get this on people's machines? My God, do they need a special machine? And then we dug into Docker, and we're like, "Oh, actually this fits really nicely if we just build a bit of tooling around it.
If we build an auto updater, that's sort of like if you're auto updating your operating system or a, a single user, uh, application on your machine. Okay, that kinda works, but what do we do about the database? Oh, shit, do we have to now run a second Docker image that then runs MySQL or Postgres? What if it gets wedged?" Um, there's just a bunch more moving parts, and what we were really trying hard to do with Once was to make this so simple that it kinda couldn't break.
Because if it was gonna break, people were gonna write us in, and the business model of Once just wasn't designed to support that.
Aaron Francis
Yeah.
David Heinemeier Hansson
We sell Campfire for $399, a one-time cost. There's not a lot of, um-
Aaron Francis
There's not a lot of room in there
David Heinemeier Hansson
... margin or room in that.
Aaron Francis
Yeah.
David Heinemeier Hansson
Exactly, for someone to go like, "Can you help me debug my-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... Postgres instance?" Mm, no, I c- I can't help you with that. So I was really gung ho about the idea that we were gonna just take out moving parts. How can we take out more moving parts, more moving parts? How can we simplify this so much that it's a single Docker image? And if it somehow gets wedged, you just restart it.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And there's no dependencies. There's no Docker Compose. There's no any of these other things, and SQLite, of course, just fits beautifully with that. So we started exploring it early on, and we almost abandoned it .
Aaron Francis
Really?
David Heinemeier Hansson
Because we dug in, and especially at the time, I think we weren't versed in SQLite.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
There's some defaults in the SQLite database-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... suited for its historical purpose-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... that isn't so well-suited for web applications.
Aaron Francis
One of, one of its great strengths is its great weakness. It's extremely backwards compatible, and the defaults are kind of bad now, so yeah.
David Heinemeier Hansson
Yes. At least they're not suited for multi-user web software.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Um, that, uh, Wall is not turned on by default-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... and there's a handful of other things you gotta turn on by default. So first we had to find what those things were, and that's what's so interesting about what's going on with SQLite. The general awareness of what's required to use that database for the kind of stuff we're using it for is just spreading like wildfire.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Like, literally one year ago, I was trying to figure things out, like, how do we do this? There wasn't that much information about that specific use case, and now there's so much more information.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And it's, it's expanding, and we're trying to change, um, and not just trying, we have changed Rails already to make it such that the SQLite you get out of the box is configured in the right way-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... in the way that works very well for, for website op. So anyway, we had to go through that, and then we ran a bunch of, uh, performance tests on it, and we found that there were a handful of things that we had to tweak. These were things around, um, long-running transactions.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And a few other things were the standard, to be honest, inefficient way of doing things sometimes in Rails. Um, bit in a way with, uh, SQLite that wouldn't have bit with MySQL.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Because especially on the transaction thing, you really don't wanna do... You really never should, but, um, you don't wanna do a lot of computation inside of your transactions.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
You don't wanna do a lot of callbacks. You don't wanna do anything that really takes a lot of time because as soon as someone goes, like, "I wanna have a transaction," and it's for write, there's contention, right?
Aaron Francis
Yeah.
David Heinemeier Hansson
There's one file, and, and we gotta do all this, uh, stuff. That's where SQLite's limitations come in.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
But they really aren't that big of limitations if you just flip your thinking a little bit. And to give you a specific example, in Rails, um, we have something called callbacks-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... where when a new, uh, model is being saved, it can call back, and then it can do a bunch of work, and that callback happens inside the transaction you're being creating in. So if you go back and you do a bunch of stuff in that transaction where you're pulling things, um, from the database and maybe you're working on it a little bit and then you go back, that's a long-running transaction-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... in the SQLite sense of it. It doesn't, it doesn't usually matter with, with MySQL or Postgres. You don't notice those things. But we switched a handful of invocations that were written in that naive style to use Insert All-
Aaron Francis
Hmm
David Heinemeier Hansson
... which is a, not new, but relatively recently, certainly recently refined API for doing bulk operations with active record, the, um-
Aaron Francis
Okay
David Heinemeier Hansson
... object-relational mapper we have in Rails.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Where everything just happens in one execution, right? Like, we're not fetching a bunch of, um, objects, and we're not asking them to fetch data and then write the data. It's just very efficient.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And so we, we had to find what those points were, and we found them basically by stress testing the whole thing. We set up this whole rig to simulate what's gonna happen if you have 10,000 users on one box, and they're all trying to chat at the same time. Where is the contention? Um, and it took, I don't know how long it took. It didn't take that long to figure out, okay, here are the hotspots.
Here's what we gotta do with those hotspots. Now that we know those hotspots are and we've, um, identified them, SQLite is no longer actually the, uh, bottleneck. It ended up being other things that were the bottleneck, like WebSocket connections, stampedes, those kind of things.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
But we ended up in a situation which was kind of the dream situation, where we could imagine a very active chat instance with 10,000 users on single box. So now we had a envelope where we could go from, I think our minimum requirements is, like, one vCPU, two gigabytes of RAM.
That'll support, I think, 500 chatters simultaneously or something like that. These are quite, um, aggressively low, uh, benchmark numbers because we were s- like, each chatter is someone who says something in a room every second, which that's not how it is for most chatters, right?
Aaron Francis
Yeah.
David Heinemeier Hansson
But anyway, so we can go from that on, on, like, a Cloud VM droplet style thing and then all the way up till you can run the same piece of software for 10,000 users on a single box because that is the constraint, right? SQLite enforces the constraint on you. This is gonna run on a single box.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
You're not gonna have-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... five application servers that are all trying to access this one file. That doesn't work. But where we've gone from with SQLite is 10 years ago, h- how many users could we get on one box at an affordable, not exotic hardware kind of level? I don't know what the number was, but it was a lot less than 10,000, I'll tell you that. I mean, just the number of cores you have access to and, and all these other hardware advancements weren't present.
So some of the rediscovery of SQLite is that the future has caught up with what it's capable of doing. It's allowed its envelope to be so much larger because computers are so much faster, and that's one of those things I find so fascinating. We've explored this domain with other things. We've done, uh, Solid Queue and Solid Cache, which now instead of using RAM for, uh, uh, job management and for caching, it uses SSDs because some of the fundamentals have changed.
Like-
Aaron Francis
Hmm
David Heinemeier Hansson
... what was the speed of storage 10 years ago versus what is the speed of storage now? A lot of technologies, I think, are not keeping up with some of these things that actually do change, but they change sort of gradually and then suddenly there's a new capability drop-
Aaron Francis
Hmm
David Heinemeier Hansson
... where you can go, "Oh, SQLite works in production, works on a real system where people chatting on with thousands of concurrent, uh, chatters." Um, that's kind of amazing. It's amazing that we can use the progress of technology to simplify the stack. Now-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... I like MySQL a lot. I've been using MySQL for literally 25 years. It's a great database. It works very well for Head. Works very well, Basecamp. These are very large systems where we have, uh, massive amounts of application servers and so on. That's fine. That's, that's still there, no one's taking that away, but we're now being gifted this opportunity that Once style software, single-tenant software, early-stage software can run on SQLite and have essentially no apologies about it.
Aaron Francis
I feel like a lot of your, a lot of your career has been really focused on, like, eliminating complexity, especially needless complexity. Um, I don't wanna talk about TypeScript, but we could talk about TypeScript. But eliminating complexity, you've got this concept of like, um, conceptual compression, and I feel like SQLite has kind of fit into the DHH world and the, and the, the narratives that you have throughout
your whole career, but especially right now with the cloud exit as well. 'Cause you can imagine, "Hey, you buy this software, but make sure you sign up with some cloud-hosted database provider," and it's like, oh, well, shoot, that's kind of against the point.
David Heinemeier Hansson
Yeah.
Aaron Francis
And so I feel like this all kind of happened in stream with your current and historic, like, thought processes, and it just removes this entire piece of complexity from the stack. Did that like... Did that light you up inside to, to... be like, "It's just a file. There's no... There's... It's just a file"?
David Heinemeier Hansson
Yeah, no, it's amazing, and it's amazing for exactly the reason you say. It's the compe- uh, conceptual compression of what even is a database?
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
How much do I need to think about this thing? I mean, if you're setting up and you're running a daemon, a long-running process that has to be fed and tended to and cared for, that is the... That's just gotta fit inside your brain. Like, that's-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... a bubble in here, right? And that bubble, whether it's large or small, it takes up room. SQLite does not take up room in the same way. Again, there's a couple things you gotta know, and you gotta set some things up, and there... Da-da-da. But on an operational ba- uh, data, uh, uh, basis, there's just a lot less to think about because it is just this file. A lot of things that are, um, complicated or require more learning or skill to operate these...
I was about to call them historic databases. That sounds like... That's not what it is. But these, um, traditional-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... SQL databases, let's just call them that, it's just, um... It's wonderful to be able to pop that balloon. And then, of course, on top of that, there are just use cases like we have with Once where it's just like a perfect fit.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Like, we're giving software to, for, to other people to run. They have to run it on their own machines. They... It just can't have the moving parts because if one of the parts breaks, as we've talked about, that's gonna be a support burden, and then the model doesn't work. So I'd actually say SQLite is one of the supporting pillars of why we're even able to do something like Once.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Another supporting pillar is Docker, that we've been able to take whole systems and put them into a single-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... uh, container, and now you can run those. There's a bunch of factors where I would not have attempted Once like 10, 15 years ago. I remember talking to the GitHub crew when they were doing GitHub Enterprise in the early days, and I took one look at what that required back in the day, before Docker, before SQLite, before all these other things, and I just thought like, "Wow, that's a lot of work to be able to have a piece of soft- web software that you install on u- on customers' own computers."
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
"I wish it wasn't so hard, but, mm, we're not gonna touch that." And we... It's actually something we've been asked for s- countless times, um, over the years. In fact, even the White House at one point. I think when Obama just got elected, uh, someone from the White House reached out, "Oh, we've u- been using Basecamp for this, that, and the other thing. Can we run it inside the White House?" And it was one of those things where like that's a very patriotic thing to do.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Let's, um, support our government and let them run our software. And we just had to say, "No, I'm s- I'm sorry." "We can't do that because we're just not set up to do that." So-
Aaron Francis
Yeah
David Heinemeier Hansson
... it really came at a great time for Once, and I also think it comes at a great time for the industry.
Aaron Francis
Mm.
David Heinemeier Hansson
I think we, we... We're sort of being pulled in both these directions, where on the one hand, the web, in terms of its complexu- or, um, conceptual complexity, is getting worse. Like, it's getting more complicated. There are ever more things you could know about, dive into, become an expert at. It's daunting. Yet at the same time, we also have these fundamental improvements in the underlying technology where you have to know nothing to reap the benefits.
Aaron Francis
Mm.
David Heinemeier Hansson
SQLite as sort of chaperoned by faster hardware, more cores, SSDs, is one example of that.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Another example, of course, I've been, um, hugely a fan of, is no-build.
Aaron Francis
Mm.
David Heinemeier Hansson
This idea that browsers themselves have gotten incredibly good. Just in the last three years, browsers have just taken huge bites out of the complexity that's involved with front-end development, and we're still sort of, I don't know, catching up to that.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Um, some faster than others, or, or some more willingly than others perhaps-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... you could say. I'm very willing to let, for example, a browser engine, uh, eat some of the complexity that I've been used to dealing with on the front end, and I'm very happy to see that faster SSDs and more cores is eating up the complexity that is involved with running a database. And all of these things are coming together at the same time, and they must. They literally must.
Because if these things are not enabling us to compress the complexity, heads are just gonna explode.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Or building for the web will no longer be feasible for the individual developer, and that to me is... I will stand on that barricade until the last straw, the last-
Aaron Francis
Yep
David Heinemeier Hansson
... fight, the last boss battle of complexity here. We cannot give up on the internet being something that individual developers can build for and be competitive on. I built literally the entire business we have at 37signals from Basecamp forward on that premise that I, as a single developer, could know enough about enough things to be competitive with the biggest companies in the world.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And I think that is more than ever just crucial that we don't hand over the internet to a handful of super conglomerates who can have these super-sized teams and can have these very thinly sliced- ... specialties where like, oh, I am a front end, uh, framework engineer something, something, and I will be one of 19 other slices to create this one product-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... um, inside a big company. And I think unfortunately, and this is what's so interesting, SQLite is obviously open source. Um, a lot of these other tools that we're using are open source, but even within open source, there's a bit of a battle where a lot of open source software is coming from large companies.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And that's great in some sense, right? Like, we want large companies to give back, and we want them to contribute to the ecosystem. But what can also happen is that their frame of mind, their viewpoint is contributed with it.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And we end up in a place where we actually don't really wanna be on closer reflection.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And that's what I love about SQLite too. I think the team behind it is something like three or four people, and they don't even-
Aaron Francis
Three guys, yeah
David Heinemeier Hansson
... take outside contributions.
Aaron Francis
No, they don't.
David Heinemeier Hansson
And they've been working on it for, like, 20 years.
Aaron Francis
Yeah.
David Heinemeier Hansson
And I'm like, amazing.
Aaron Francis
Uh-
David Heinemeier Hansson
Amazing that something like that not only is, is feasible, but to me is sort of a high watermark bar for, like-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... one kind of development. I mean, Rails is, of course, is not that. I mean, we have 6,000 contributors-
Aaron Francis
Yeah
David Heinemeier Hansson
... or 7,000 maybe at this point. Some very different kind of things. But I love the fact that something like SQLite can be so good, so universally recognized, and is literally the work of, like, three or four people.
Aaron Francis
Hey, I hope you're enjoying this. Just as a reminder, you can learn more about SQLite at highperformancesqlite.com. I'll get out of your way. Back to the interview. It, it is wild, and if you read, if you read through the documentation, the doc- the docs are written by, I assume, the one guy, D. Richard Hipp. Uh, he goes by initials as well, so y'all have that in common.
You also have in common that he writes his docs with, like, a point of view. Like, they're, they're funny, and they're conversational, and they're engaging, and especially when you get to the, um, when you get to the section about, uh, types and how, how SQLite is just like, "Nah, whatever you wanna put in here, we'll take. We'll, we'll take, we'll take anything you wanna put in here." And at the very bottom, he's like, "We have introduced strict tables," basically, like, if you're into that kind of thing.
It's kind of like the, the tone that he, he puts in there. And so I do, I do really appreciate, um, I think it's, I think it is three guys, so I appreciate their, like, dedication to it. It's the, it's the archival format of the Library of Congress, for goodness sakes. So-
David Heinemeier Hansson
Mm-hmm
Aaron Francis
... and they're like, they have committed to supporting it through 2050, and I imagine they'll reach 2050 and be like-
David Heinemeier Hansson
Yeah
Aaron Francis
... "Oh, we're not actually gonna give up. We just, you know, we just thought that was far away-" "... so we said that." Um.
David Heinemeier Hansson
What's so amazing about that story to me is it's such a beautiful counterpoint to this hysteria that open source is in a great crisis, and that the whole internet rests on, like, three dudes, and that's somehow terrible. No! It's amazing.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
We should be so lucky to have such dedication that literally three guys can form the basis of something that's used by billions of devices around the world.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Like, th- that's not a flaw.
Aaron Francis
No.
David Heinemeier Hansson
That is a celebration of human creativity, ingenuity, um, carrying the meaningful burden, all of these other things. And I, I love that, at least in my head, as the counterpoint to this hysteria. They're like, "Oh, open source is in such a crisis. What open source needs is just, like, more and more money, bigger, bigger teams."
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
No, they don't. They need... We need less. We need less, and SQLite is, to me, sort of on the pedestal of that, of, of that example of, like, would SQLite be better if somehow Microsoft gave them 20 developers to add to that team to add a bunch more features and do it? No-
Aaron Francis
No
David Heinemeier Hansson
... it wouldn't. It would be worse. It would be worse, and not because of Microsoft, but just because of the dynamics of that. Some pieces of software, and I'm thinking about another piece of software right now, Redis-
Aaron Francis
Mm
David Heinemeier Hansson
... who for a very long time was also run by one dude.
Aaron Francis
Yep.
David Heinemeier Hansson
Um, who stood the line.
Aaron Francis
Until it wasn't, and then what happened?
David Heinemeier Hansson
And then what happened? He stood the line, and then he went off the barricades, and other folks took over.
Aaron Francis
Yep.
David Heinemeier Hansson
And then that went in some other direction that I'm not particularly fond of, right?
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
I go, like, I hope the SQLite crew never does that.
Aaron Francis
They seem extremely principled, so I, I doubt at this point, you know, 24 years after, I, I doubt they're gonna, you know, sell it off to Microsoft at this point. And one of the, like, you talk about the single-person framework. I think you, you know, you had a keynote recently, and a big slide that was like, "The one-person framework." Um, there's something pure about that, and I find that in, in SQLite too.
One of the quotes from the creator is, "If I had known that you're not supposed to write your own database, I wouldn't have. I, I wouldn't have written it. But I, I didn't know that. Like, I didn't, I didn't ask any experts. I didn't know you weren't supposed to do this thing. I just had a need and a curiosity-"
David Heinemeier Hansson
Yeah
Aaron Francis
... "and I just, I just wrote it myself." And that feels, that feels like, that feels old school to me, and I'm curious from your point of view, maybe stepping just a, a half step outside of SQLite. You've talked about SQLite, and browsers, and Docker, and the one-person framework. Like, what, what do you see coming for the one or two-person team that's like, "Hey, I wanna, I wanna run my own SaaS," you know?
You talked for a long time about there's a million Italian restaurants. You don't have to take over the world. You just need a little thing to-
David Heinemeier Hansson
Yeah
Aaron Francis
... so, like, what i- what do you see... You know, I guess y'all are executing a little bit on that on Once. Like, you're having a little fun doing the, the two-man thing again. But, like, what do you see for the individual out there with these new capabilities coming online, and where should they be looking, um, if they wanna create their own little Italian restaurant on the internet?
David Heinemeier Hansson
They have to control complexity.
Aaron Francis
Hmm.
David Heinemeier Hansson
Complexity is the thing that will eat you up and spit you out when you are a small team. You can't do all the things. You can't have all of these, um- ... moving parts because they all need oiling, they all need tender, they all need maintenance. You need to reduce, reduce, reduce, reduce. And this is why, um, SQLite excites me so much.
I mean, talk about no moving parts.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
They're literally just a file.
Aaron Francis
It's just a file.
David Heinemeier Hansson
I was gonna say one file, but at these days it is three files-
Aaron Francis
Uh-huh
David Heinemeier Hansson
... when you run it and with the WAL and so on.
Aaron Francis
Yeah.
David Heinemeier Hansson
But it's three files. It's not a big thing. That's beautiful. To me, no build has that same quality, right?
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
What if you just wrote JavaScript like a cave person into a text file, and that text file was sent straight to the browser, and that was it? And if you came back like a year later, and you opened up that text file and wanted to add something to it, no dependencies.
Aaron Francis
And it still worked.
David Heinemeier Hansson
Out of... It would work. It would literally work, and that's the beauty of the internet. If you were disciplined in, like, 1995 a- a- how you built things, it would still run today.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Like, literally 30 years later, it would still run today. And then you look at what is considered perhaps in some circles the best practice way of setting things up, and it won't run in five minutes-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... let alone three months. Inconceivable that it'll run in a year from now because it has just atrophied through the dependency churn and, like, all of these things. And I've, um, invested in a handful of, uh, startups in Denmark, and I, I see some of it there where I go like, "You're a tiny team. You... No, that's not the thing you should be running."
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Like, that's not the thing you should be spending your time on. You should be spending your time on, as a single or tiny team of developers, um, creating value, which really I actually hate that word. You should be spending your time programming features that your customers will care about.
Aaron Francis
Yes.
David Heinemeier Hansson
Right? Like, that is the thing that's gonna set you apart, and you're gonna have a very different velocity than some big honking corporation, even than 37signals. Like, we move substantially slower now than we did at four people. We can do more things at a different scale and with more users and so on. But if a dedicated team comes in and picks very simple tools, and they operate in a box of three, four people, and th- they commit to the simplicity of that, they're gonna run circles around almost anyone.
Um, again, not on all the parameters. This is the whole blue ocean strategy thing-
Aaron Francis
Mm
David Heinemeier Hansson
... where you, you pick the things you're gonna be better at, but if you pick the things of we're gonna double down on simplicity, we're gonna double down on some tools that don't constantly churn over, it's incredible what you're capable of doing. And this is the great, mm, sort of two-way split, which way Western man? Where on the one hand you have the path that says it's never been better.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Browsers have never been more capable. The basic tools have never been more amazing. Ruby, to take just one example I care about, has never run faster.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
The language itself has just gotten three times faster since Ruby 2. It's running on computers that are literally orders of magnitudes faster than when I did it on a single box in 2004 and was able to build Basecamp off that, right? So the capacity and the capabilities that you have today are just mind-boggling. But then the second road goes like, oh, what if we took all those spoils and just squandered it on casinos, and pokers, and blackjack, and nonsense?
And you end up in this way where you're like, yeah, no. You took all the spoils, and you feathered them away. There was nothing left in the end that most users care about.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And this is one of those great... I mean, I get into, I was gonna say fights, but let's just use- ... a polite word, debates-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... on Twitter and the internet often. And sometimes it'll be about these topics of simplicity, and some folks will point out, um, like, "Oh, you're running no build on your front end. That means you have 100 files. Like, this is gonna be terrible, and it's gonna be slow." And I'm just like, no. If it's fast for the user, that means you factor in all the things, and the download, and the this, and the that, and so on, they're not gonna care.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
You're gonna care. I'm gonna care because simplicity for me is the enabling factor that allows me to do all the other things I care about, like running, uh, feature teams with two people. That's s- kind of stuff that I care about. If, if the output of that is so good that the majority of folks don't notice the difference, or if they notice the difference, they don't value it in a way where they're gonna pick one thing or the other.
I'm not talking about like, let's go back to the Stone Age, and we're gonna build everything like s- Craigslist. Although Craigslist-
Aaron Francis
Although
David Heinemeier Hansson
... I would like to say, is an example- ... of the amazing resilience of literally not changing something since-
Aaron Francis
Yeah
David Heinemeier Hansson
... 1995, right? Like, it looks identical almost.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And for the kind of people I've met who use Craigslist, I've never heard someone say, like, "I wish it had a purple gradient."
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Like, that would-
Aaron Francis
Or a loading, or a loading skeleton.
David Heinemeier Hansson
Or a loading skeleton or any of these other things, right? So I think a lot of this, uh, anguish and existential dread certain quarters of the web development in particular feel, it's all self-inflicted.
Aaron Francis
Mm.
David Heinemeier Hansson
That doesn't mean it's easy to route around, but it is-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... it does mean at some fundamental level it is optional. Now, contrast that to developing mobile applications for iOS, for example.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
There's just a tool chain, and a setup, and, um, machinery and framework that you're handed to you, and y- I mean, you can question it. Good luck with that. You're gonna take what you're given.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And you're gonna have to build something with that, and you don't have a lot of choice in the matter. The web is so freaking amazing because whether you run Postgres, or MySQL, or Mongo, or SQLite-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... no one is any wiser. It all gets compiled down to a H- a piece of HTML that's sent off to the user, and if that piece of HTML is fast enough, well-designed, solves an interesting problem-
Aaron Francis
Yep
David Heinemeier Hansson
... they will clap in their little hands and pull out their credit card from their wallet and slap it down on your form.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
That is so amazing- ... and so unique in literally the history of computing-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... and certainly the history of computing as it is today, that- It just blows my mind on a regular basis how little appreciation there is for that fact, and how little we collectively do to embrace that. How awesome is it that you can write Ruby, you can write Python, you can write Go, you can write Elixir, you can write JavaScript, you can... All these things-
Aaron Francis
PHP
David Heinemeier Hansson
... you can connect it to SQLite, you can connect it to MySQL, you can connect-
Aaron Francis
Yeah.
David Heinemeier Hansson
There's literally a trillion permutations of how this stack can be. Um, and some people look at that and go like, "That's awful. Oh, it would be so much better if there was just one dictator at the top," maybe, um, Saint, uh, Tom Cook here- ... that could just decide what should be right for everyone, and we should... No, no, no, no, no.
Absolutely not. The amazing thing is the transport layer, is HTML, is HTTP, is these sets of protocols that allow us to use whatever we want, allow us to rediscover things like SQL, like the gem that's been hidden in one corner of the development community for, like, 20 years, and then suddenly another corner of the community goes like-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... "What, what you got over there? That's one mighty fine gem." "Could I have a taste, please?"
Aaron Francis
So I, I, I think one of my questions for you is, how do you at this stage keep that, like... How do you keep that front of mind? Like, you specifically, how do you keep, like, knocking down complexity? Because I feel like a lot of developers get sucked into the Borg, where they'll go work for-
David Heinemeier Hansson
Yeah
Aaron Francis
... they'll go work for somebody, doesn't matter who. They'll go work for somebody, and like you said, the slice of the stack that they operate on is, let's say, JavaScript build. That's it. They don't do front end, they don't do... But they just do JavaScript building.
David Heinemeier Hansson
Yeah.
Aaron Francis
And here you are, you know, however many years into your career, and you haven't been... You know, you, you run your own thing, which helps, but you haven't been sucked into the Borg of complexity. And I do feel like a lot of developers like to play with Legos, I think. And so they like to be like, "Hey, I'm gonna put this together this way and do it again this way," and just have fun focusing on that, which isn't inherently bad, but if you are trying to ship something to get paid and change your life, like, well, you should focus on that instead.
So how do you specifically keep, like, hammering down the complexity?
David Heinemeier Hansson
I keep thinking that what I'm doing now is gonna blow up catastrophically. I don't keep thinking. I use it as a technique. This is called negative visualization in stoicism.
Aaron Francis
Okay.
David Heinemeier Hansson
I visualize that this thing I'm doing now is gonna blow up catastrophically, and I don't know. There are... Companies go out of business all the time. It is the most common thing over the long run for a company to do, it is to go out of business. Very few companies are around for even five years.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Fewer still 25, like we've had with 37signals. We've been blessed with a very good run that could end at any moment. And what I think is, "Do you know what? I wanna be prepared."
Aaron Francis
Hmm.
David Heinemeier Hansson
"I wanna be prepared for the day where it's over. And the day it's over, I- I gotta do something new. I gotta start over from scratch."
Aaron Francis
Hmm.
David Heinemeier Hansson
"And I wanna be able to sc- start over from scratch with these two devices." "These two hands. That's it. I wanna be ca- as capable at least... Not even as capable. I wanna be more capable than I was in 2004 when these two hands created the technical infrastructure-"
Aaron Francis
Hmm
David Heinemeier Hansson
"... of Basecamp and set things up in that way." So I'm constantly prepping. I, I don't mind borrowing that term.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
I am prepping for the business apocalypse in my little world. Like, it might be a broader sense of the world. Like, there might be-
Aaron Francis
Mm
David Heinemeier Hansson
... more things that go wrong at the same time, but I'm just gonna be prepared for me. And I find such a satisfaction in knowing through both sort of trust in my own abilities, but also regular exercise of the capacities- ... that I have to build things with tiny, tiny teams.
Aaron Francis
Mm.
David Heinemeier Hansson
And when I say tiny teams, I mean one person, two people, three at the most.
Aaron Francis
Hmm.
David Heinemeier Hansson
Because I can imagine in my head that if this thing goes bust, and for example, I go bankrupt... Again, things happen all the time. People go bankrupt all the time. I gotta start over. I have no capital. I have no company. I have just what's in here, and I got these two. What can I do? Can I get back? Can I, um, can I create things that are valuable and so forth?
Um, I wanna ensure that that's true. Because if I ensure that that's true, I can sleep so much better. I mean, in itself it's also enjoyable. I just like being capable and feeling capable-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... and building capacities. And then obviously giving those to people who really do need it, who literally don't have anything else than their, their head and two hands.
Aaron Francis
Yeah.
David Heinemeier Hansson
That's really rewarding to see. Um, but it's also one of the things that allows me to look at my, my life's work really-
Aaron Francis
Mm
David Heinemeier Hansson
... with 37signals and go like, "Do you know what? What a great run it's been."
Aaron Francis
Hmm.
David Heinemeier Hansson
But also, if it was over tomorrow, I'm not gonna be shattered. I'm not gonna be despondent. I'm gonna be capable. And, like, a week after you've nursed the wounds and licked your chops of this thing blowing up, all right, I'll get back to it. I'll build more stuff. And I'm not gonna let the train get away from me, because I've seen that.
Aaron Francis
Hmm.
David Heinemeier Hansson
I've seen that in entrepreneurs where they've had a successful thing, and sometimes it's not even a catastrophe happened, it's a celebration. They sell their company, and now they're back at square one and they gotta start over, and the train left their station.
Aaron Francis
Ah.
David Heinemeier Hansson
Like, you're too far behind. Oh, I used to know the thing.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
I no longer know the things, so now for me to even get started, I gotta get a bunch of people. I probably gotta get some investment because I'm not gonna risk all my own capital. All these things, and I go like, "Oh, man. No, I don't want that."
Aaron Francis
Not gonna be me. Yeah.
David Heinemeier Hansson
I want my personal capacity to be intact. I wanna be in shape.
Aaron Francis
Hmm.
David Heinemeier Hansson
I wanna be in shape where, like, if suddenly I gotta start running away from a tiger- ... um, I think, I don't know, maybe that's some, um, DNA programming there, right? You gotta... Do you know what? I, I could just get fat and lazy intellectually.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And then suddenly if a saber-tooth shows up, I'm gonna be screwed.
Aaron Francis
Mm-hmm. Yeah, I, that is, I'll, I'll be honest, that is not where I expected you to go- ... but I, I love it. That is amazing. Um, do you have, do you have time for, like, two or three more questions?
David Heinemeier Hansson
Sure. Yeah.
Aaron Francis
Okay.
David Heinemeier Hansson
Yep.
Aaron Francis
Um, so you talked about, um, you'll ha- you'll have to forgive me 'cause I'm not a Rails developer, I'm a Laravel developer, so spiritually we're cousins, but I don't know the specifics. So you talked about Solid Cue, Solid Cache, and then you brought up, uh, Redis with their most recent whatever they're doing. Um, is there any, are, does it already exist, or are there any plans to drive any of the cueing or caching from SQLite as well?
'Cause that's something I'm looking at on the Laravel side. We have cue drivers that talk to the database, and I'm thinking that would be great for a, a separate SQLite database so it's not contentious. A separate one, and even, like, for caching we could do something like that. So where are your thoughts on even further eliminating outside stuff?
David Heinemeier Hansson
That's basically what we've done.
Aaron Francis
Great. Love it.
David Heinemeier Hansson
So SQL Cache, uh, or SQL Ca- Solid Cache-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... is using any active record-compatible back end-
Aaron Francis
Cool
David Heinemeier Hansson
... including SQLite, as the, uh, storage for caching.
Aaron Francis
Yeah.
David Heinemeier Hansson
And this is straight out of the how fast the storage become. It's become-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... fast enough now that the advantage RAM has does not actually matter in terms of the milliseconds, in terms of serving the caches.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And we did a bunch of studying and tests on this, um-
Aaron Francis
Cool
David Heinemeier Hansson
... because one of the other advantages you get is not just compr- complexion of, um, complexity in that you don't have to run a separate process. You also get more capacity. Like, storage is still orders of magnitude cheaper, so you get orders of magnitude more, which means that let's say you're, you're starting a droplet here. It has two gigabytes of RAM, yeah, but it might have 50 gigabytes of storage.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Or 100 gigabytes of storage. That's a lot of space you could store computation in since you don't have to redo it. That's what sq-, uh, Solid Cache is. And-
Aaron Francis
Cool
David Heinemeier Hansson
... I really wanna set it up as the default out of the box for Rails 8, that Solid Cache is using SQLite by default, and exactly as you say, it's using a separate file so you don't have to intermingle the caching stuff with the-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... um, system of records stuff, yet you use the same kind of simplicity and you don't have to run a, a separate setup. And we're doing the same thing with Solid, um, Job. So Solid Job is-
Aaron Francis
I love it. Yeah
David Heinemeier Hansson
... the same thing. Let's take, uh, an infrastructure that very often ran against something like Redis.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
A lot of job engines run against Redis or other in-memory stores. Let's point it to a database instead. It actually affords us a bunch of, um, advantages. There's greater introspection. You can use-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... standardized tools with it. There's more space to do it. It has some other trade-offs in terms of, um, sort of the operations of it. Um, and there, um, SQLite is perhaps a little bit behind. There's been some advantages or advances in Postgres and MySQL 8 forward that allowed some of the query structures you need for a-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... job engine to be a little more efficient, but at the low end it also doesn't matter.
Aaron Francis
Right.
David Heinemeier Hansson
So at the very early stage, um, especially for experiments and, and small-scale deployment, you can still use the SQLite database as the back end for cueing, and Solid Job does that. So it's kind of a two-
Aaron Francis
I love it
David Heinemeier Hansson
... pronged a- approach of trying to take two of the key components of a modern web application, caching-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... and job running, and say, "Do you know what? You don't need an in-memory store to do that. You don't need Redis to do that. You can put that in the same database as you use for everything else, whether that's MySQL or SQLite with separate files."
Aaron Francis
Man, I am so glad I asked. I love that so much, and I just wanna, like, highlight that maybe five years ago if you told someone on Hacker News you were using any database as a, as a cue driver, they would be like, "You're doing everything wrong." And now, not only are we doing it, we're pushing it all the way to SQLite, baby. It's, uh, we have come so far with the ability to, to use that kind of stuff, and I love it because Laravel, uh, 11, the default driver for the database
is now SQLite, and it just makes, like, it, it makes the onboarding story a lot easier. It's like, yes, you can if you need to. I don't know if you will. If you need to, you can graduate. Because a good thing about SQLite is everything you do there is probably gonna work in Postgres or MySQL. Maybe some finicky differences, but the ORM should abstract all of that away. But it gets you like, you can start and you're started.
You don't have to spin up MySQL or Postgres or Redis or anything like that. So I do, I do love to hear, I do love to hear that. I've been-
David Heinemeier Hansson
That was our early embrace in the Rails community. I forget when we did it, but this many years ago now that SQLite became the default for Rails new.
Aaron Francis
Hmm.
David Heinemeier Hansson
Exactly for that reason, that you could do Rails new and you can start working without having to know the other stuff.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Without having to know, oh, how do I set up MySQL and how do I, I do all these other things. Because I think, uh, one of the things about com- uh, conceptual comprex- uh, compression is that it benefits people who are, who wanna do it all, who wanna be one, uh, one-developer shops. They need to know a fair amount of things, but it also really benefits people who are just starting, who know nothing.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Who, who more than anything just need a handful of success experiences-
Aaron Francis
Yes
David Heinemeier Hansson
... where they do stuff at the keyboard and stuff happens on the screen, and they go like, "Wow, I did that? I built that?" I remember all the way back in ninth grade, this is 1994 I think, I went to this computer lab at a university that was connected to the internet, and do you know what they sat us down to do? Not browse the internet.
Make your own webpage.
Aaron Francis
Hmm.
David Heinemeier Hansson
And it had HTML open in this editor, and I did a little blink tag and I saved and I went to the browser and like, "Holy shit, the text is blinking. I did the blinking? I made it blink?" That's amazing.
Aaron Francis
Life-changing experience.
David Heinemeier Hansson
Life-changing experience. And I think that's one of the things I'm really protective of-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... in the Rails setup, that we should give more people that life-changing experience. That doesn't mean that everyone who tries Rails will become a professional developer and so on.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
But they will have an experience of ... power that I think is just invigorating for any human. Like-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... I did a thing, a thing happened. That is really a gift to give to someone else, and SQLite is a huge help in that regard.
Aaron Francis
Hmm. Yeah, not, not everyone that sits down to do Rails News is gonna be a professional developer, but it's not gonna be because they couldn't get MySQL working or they couldn't get Postgres working. It might be for some other reason.
David Heinemeier Hansson
Yes.
Aaron Francis
Which is great, but it's not gonna be because of that. Okay, last thing before I let you go. Y'all just launched or, or teased or, uh, unveiled your new Once.com product, and it looks super interesting. I do a lot of writing myself, and so I would love to hear you explain the vision, um, for this new Once.com product.
David Heinemeier Hansson
Yeah. So this is Once number two. The first product was Campfire, as we talked about. Um, that product was, and is, $399.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
This new product, and I'll put that in qu- actually, I won't put it in quotation marks. It is a product. This is a product company making a product, but we're giving it away for free. So it's called Workbook.
Aaron Francis
Okay.
David Heinemeier Hansson
And it is to solve a problem we've had where there's a lot of software on the internet that allows you to publish one page.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
You can push- put it on Gist. You, I write to Hey World. There's newsletters. There's blogging things. That's a very well-served, uh, domain. Not so well-served is if you wanna publish multiple pages that fit into a broader context, what we usually call a book. Here is a, a concept I want to explain to you, for example, and it's gonna take like 90 pages.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Um, we've written a lot of books at 37signals, starting all the way back with Getting Real. Um, actually, there was another book before that called Defensive Design. But if we take Getting Real, which was published on the internet, was self-published in 2006, it is exactly that kind of problem we want to make easier to solve.
Because we were using, I think, four different kinds of platforms-
Aaron Francis
Hmm
David Heinemeier Hansson
... to create these kind of web books, whether that is Getting Real, which is on gettingreal.basecamp.com, um, or our employee handbook-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... which also is a book. It has, I don't know, 25 individual pages in it or something like that. Um, we've written a, a number of other books or manuals, really. We've written manuals for Kamal, our deployment tool-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... or some of the Hot Wire stuff. And like it's all this stuff that's kind of convoluted to set up, and it's kind of full of configuration, and it's full of technical stuff, and we just go, "Why doesn't this exist as-
Aaron Francis
Hmm
David Heinemeier Hansson
... just a one package?" One package, you put it, you install it. Not a software as a service, right? Like, maybe there are software as a service things that do this, but I'm not even interested in that. I'm not gonna run something like Getting Real on someone else's thing.
Aaron Francis
Sure.
David Heinemeier Hansson
I wanna publish for the internet on my own server because I know and trust that I can keep that running literally for decades, not gonna atrophy, but I wanna make it easier. So that's what we've done, uh, or are doing with Workbook. We're creating it. I think we have about seven books ourselves, um, from Getting Real to work handbooks to internal manuals like, um, our ops runbook-
Aaron Francis
Oh, yeah
David Heinemeier Hansson
... our programmer's book. We have a bunch of these internal, uh, manuals. Some of them were also actually just kept in, uh, in GitHub as-
Aaron Francis
Hmm
David Heinemeier Hansson
... uh, markdown files.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And, like we were using that to navigate around, which is actually a surprisingly capable solution-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... to do it with. A little janky, not so pretty, has some other drawbacks. But, um, that's, that's the premise of Workbook. Make it easy to create books for the internet. Multiple pages that belong together and can be published in one location. We're gonna make it as a... Just like we did Campfire, it's gonna be a thing that's literally one command to run on your own server.
You'll have Work- W- Workbooks set up. You'll be able to log straight in and, and do all your, your writing and, and set up for that. It just won't cost you anything.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
And it's source included. So just like with Campfire, we're also-
Aaron Francis
Mm
David Heinemeier Hansson
... giving the source away. I intentionally here don't say open source, even though I really like open source as a term, because we're not trying to start necessarily another community project-
Aaron Francis
Sure
David Heinemeier Hansson
... where we're accepting pull requests-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... and gotta maintain that and so forth. And also because the thesis of Once is finished software.
Aaron Francis
Hmm.
David Heinemeier Hansson
Not necessarily on day one, but that there is a principle of we can arrive at a finished piece of software that's just done. It does not need more features. It does not need more stuff. It may occasionally need a security update. Okay, fine. Um, that's great that you can still push that on.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
But its, its conceptual sort of manifestation is done. Like, it is, it's not gonna have more buttons and more bells and more whistles. And Workbook hopefully can get there even quicker than Campfire again.
Aaron Francis
Hmm.
David Heinemeier Hansson
Uh, and then we can give it away for free, and it won't be a huge burden on us to maintain it, even though of course we will if there are issues with it. Um, and, and we are getting to build a bunch of novel interesting tech for that as well. We're building a new text editor for Markdown-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... called House. I just actually announced that today on, on Twitter.
Aaron Francis
I saw that, yeah.
David Heinemeier Hansson
Um, which is, uh, something else than what we normally use in our products. We use a WYSIWYG editor-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... called Trix that we also build ourselves, and that's built into Rails through something called ActionText, so you can really easily get WYSIWYG editor set up with drag and drop and file upload and all this other stuff. But there's a bunch of especially technically-minded people who don't like WYSIWYG.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
They like Markdown. I'm one of those people. I really like-
Aaron Francis
Mm
David Heinemeier Hansson
... Markdown a lot for my own writing, and we're basically gonna put that into this product and then also release that as an open source, uh, gift to the world. So that's gonna be Workbook. Um, I don't have a specific launch date on it, but on Once.com will be all the updates for, uh, when that comes out, and you can of course also check out, uh, Campfire in there and, um, we'll share as much of, as possible about that.
I think the o- other thing that excites me about the whole Once brand is- ... source included.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Very often in the open source world, you can find a million source code examples for infrastructure software. Oh, you wanna learn about how an object-relational mapper is, is built? Great. There's, here's about 12 different repositories-
Aaron Francis
Mm
David Heinemeier Hansson
... you can dive in. You wanna learn how a commercially resilient product is built? Oh, mm, no, sorry.
Aaron Francis
Good luck.
David Heinemeier Hansson
Vast majority of that is closed source.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
It is proprietary. I mean, the same with us. Hey and Basecamp, they're not open source. They... We don't have any plans to make those open source. Those are, uh, sort of commercial trade secrets. I mean-
Aaron Francis
Mm
David Heinemeier Hansson
... not really, but just this sense that, uh, there's a plethora of open source software in- at the infrastructure level, far, far less at the application level, and this is one of the things I've really enjoyed with Campfire for s- um, customers who, who buy the product. They obviously, they get the source. We recorded, uh, walkthroughs of-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... both the Ruby level and at the CSS level, that people who, who buy Campfire get access to. And we could do more of that with Workbook because in part there's no ticket fee, so someone could get at least that. I mean, Workbook is a substantially smaller product-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... than Campfire. It doesn't... Campfire is, um, is a very full-featured chat, and to build that in a modern, competitive, this-could-be-a-Slack-alternative-for-some-people way, is actually a substantial body of work. Workbook is a little more modest- ... in its ambitions. It doesn't mean it solves a, um, a, problem that's necessarily less, uh, modest or needed, but it just means that the technical scope of it is a little smaller.
But anyway, I love open source. I love view source. I mean, I learned so much as we... As I said, um, my first experience with the internet, it was first making my own tagged link, and then it was literally going to, I think, yahoo.com or something and go view source. How did they do that thing?
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Oh, you can use a table, and you can put little one-by-one spacer GIFs in there to, like, align things?
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Amazing. Mind blown, right? Um, we don't have that these days on, for example, the front end. Far too many operations are using minification, obfuscation, web packing, chunking, ES building. Just blobs, right? You get a blob. Oh, I'm gonna request, um... Or I wanna learn how they built Gmail.
Yeah, good luck sorting through 22 megabytes of obfuscated JavaScript.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
You're gonna learn nothing with that. With Hey, for example, we did the opposite path. Hey is all no-built on the JavaScript side, which means that all the individual files are just there.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
No source map.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Just readable as individual files. And Workbook and Campfire take that one step further. It's view source, but for the back end.
Aaron Francis
Yep. I love that. I love, I love that y'all are doing this source available thing. I love... I think a lot of people bought Campfire just so they could look at how DHH codes a Rails app. I mean, it's, it's a great, like, it's a great learning experience and, you know, I would buy, if Taylor released something like that, Taylor Otwell, I would buy it in a heartbeat and just look at it and be like, "Oh, so that's how he does that," kind of thing, and I think it's a great-
David Heinemeier Hansson
Same
Aaron Francis
... it's a great way to teach. It's wonderful.
David Heinemeier Hansson
Same. I mean, there's all sorts of commercial software where I'd go, like, "I'd love to know how they built that."
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
Um, I wish I could do view source on a bunch of more stuff.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
So hopefully this can start, at least on the front end, I kind of feel like it doesn't need much tipping there. This is the other reasons why I'm excited about no-build, and let's get away from all this, uh, transpile or compiler-
Aaron Francis
Mm-hmm
David Heinemeier Hansson
... bunko jungle, um, because we can get back to view source and at least that part of learning how the web works. You can learn how the web works by looking at successful, major, mainstream things and realize, oh, it's actually not that complicated.
Aaron Francis
Mm-hmm.
David Heinemeier Hansson
The way they did that thing? Oh, okay. Yeah, I could do that, too.
Aaron Francis
Well, from SQLite to stoicism to no-build to losing everything in bankruptcy, this has been, this has been a delight, and I can't express how grateful I am that you were like, "Yeah, let's do it right now. This is... Yeah." So I just-
David Heinemeier Hansson
My pleasure
Aaron Francis
... thank you so much. Um, and if people wanna follow you, if they're somehow not following you already, um, I imagine Twitter/dhh is probably the place to go.
David Heinemeier Hansson
That's a great place. I took a bit of a break, um, a few years back from Twitter, but now I'm... I s- again, I don't know how I feel about that. But now I'm back on Twitter, and I do tweet a lot, but otherwise I have, um, dhh.dk has links to both the Twitter and the LinkedIn-
Aaron Francis
Perfect
David Heinemeier Hansson
... and all the other stuff and the books and whatnot and the products.
Aaron Francis
Perfect. Well, thanks again, and we'll see you online.
David Heinemeier Hansson
All right. Thanks.