TED Talks Daily - With AI, anyone can be a coder now | Thomas Dohmke

Episode Date: May 23, 2024

What if you could code just by talking out loud? GitHub CEO Thomas Dohmke shows how, thanks to AI, the barrier to entry to coding is rapidly disappearing — and creating software is becoming... as simple (and joyful) as building LEGO. In a mind-blowing live demo, he introduces Copilot Workspace: an AI assistant that helps you create code when you speak to it, in any language.

Transcript
Discussion (0)
Starting point is 00:00:00 TED Audio Collective Leaders were encouraging American students to learn programming since software development was going to be so central to the workforce. Well, AI has changed a lot of that. In his talk from TED 2024, CEO of GitHub, Thomas Domke, shows off a new fusion between human and machine that allows software to be written without grasping complex coding at all. And on the topic of AI, stick around afterwards for a brief Q&A with Bilawal Sidhu, the host of our new podcast, The TED AI Show. That's all coming up after a short break. Support for this show comes from Airbnb. If you know me, you know I love staying in Airbnbs when I travel. They make my family feel most at home when we're away from home. As we settled down at our Airbnb during a recent vacation to Palm Springs,
Starting point is 00:01:15 I pictured my own home sitting empty. Wouldn't it be smart and better put to use welcoming a family like mine by hosting it on Airbnb? It feels like the practical thing to do. And with the extra income, I could save up for renovations to make the space even more inviting for ourselves and for future guests. Your home might be worth more than you think. Find out how much at Airbnb.ca slash host. AI keeping you up at night? Wondering what it means for your business? Thank you. as they ask bold questions like, why is Canada lagging in AI adoption and how to catch up? Don't get left behind. Listen to Disruptors, the innovation era, and stay ahead of the game in this fast changing world.
Starting point is 00:02:13 Follow Disruptors on Apple Podcasts, Spotify, or your favorite podcast platform. I want to tell you about a podcast I love called Search Engine, hosted by PJ Vogt. Each week, he and his team answer these perfect questions, the kind of questions that, when you ask them at a dinner party, completely derail conversation. Questions about business, tech, and society, like, is everyone pretending to understand inflation? Why don't we have flying cars yet? And what does it feel like to believe in God?
Starting point is 00:02:43 If you find this world bewildering, but also sometimes enjoy being bewildered by it, check out Search Engine with PJ Vogt, available now wherever you get your podcasts. And now, our TED Talk of the day. You know, I'm one of these adults that actually still loves playing with LEGO. I loved them way back in the 80s in Berlin when I grew up, and I still love them. And these days, I build LEGO with my kids on Saturday afternoons. And the reason that my love for LEGO has remained evergreen is quite simply that LEGO is a system for realizing creativity
Starting point is 00:03:20 with almost no barrier to entry. Now, I'm not only a LEGO dad, I'm also the CEO of GitHub. And if you don't know GitHub, you can think of it as the home of coding. It's where all the software developers, the chief nerds of our society, collaborate together. And it's part of our mission to make it as easy as possible for every developer to build small and big ideas with code. part of our mission to make it as easy as possible for every developer to build small and big ideas with code. But in contrast to Lego, the process of building software feels daunting to most people. This all started to change when ChatGPT came along in late 2022. Now we live in
Starting point is 00:04:01 a world where intelligent machines understand us as much as we understand them, all because of language. And this will forever change the way we create software. Up until now, in order to create software, you had to be a professional software developer. You had to understand, speak, and interpret the highly complex, sometimes nonsensical language of a machine that we call code. Modern code still looks like hieroglyphics to most people. Here's an example from the early 1940s, the world's first computer programming language called PlanKalkül. It set the foundation for the modern code that we use today.
Starting point is 00:04:44 It's a few numbers, some bubbles, and some big-ass brackets. Not much humanity here, right? Flash forward about 20 years to the program language called COBOL. COBOL was invented during the Eisenhower years, but it remains an important language for many of our largest financial institutions. Wall Street, your savings account, your credit cards, all run on this today. Flash forward another 30 years to 1991, and we saw the birth of Python, one of the most popular programming languages in this era of AI. In 80 years, we went from bubbles to brackets to blips of English, and yet we got nowhere near as close as the intuitiveness of human language.
Starting point is 00:05:32 But then came June 2020, and we got early access to OpenAI's large language model, then called GPT-3. It was COVID. We were all on lockdown. I remember we were on a video call together. We fed random programming exercises into this raw model. And like magic, it solved 93% of them during the first few takes. We at GitHub recognized we had something remarkable in our hands, and we quickly turned around a novel developer tool called GitHub Copilot,
Starting point is 00:06:03 an AI assistant that predicts and completes code for software developers. Copilot is now the most adopted AI developer tool on the planet. The age of programming has been reborn. But the possibilities of the breakthrough went further than just these business results. Because the large language models that power ChatGPT and Copilot are trained on a vast library of human information. They understand and interpret nearly every human language,
Starting point is 00:06:35 every major human language. They seem to get us. We have struck a new fusion between the language of a human and a machine. With CoPilot, any person can now build software in any human language with a single written prompt. Goodbye to the bubbles and the big S bracket. This is the most profound breakthrough to technology since the genesis of software development itself.
Starting point is 00:07:09 Today, there are over 100 million developers on GitHub. That's about 1% of the world's population, you know, plus, minus. I think that number is about to explode. We started it all with the original copilot, how we say the OG copilot. And it really just predicted and completed code in the editor. You can think of the editor as, you know, the Google Docs for developers. And when you have an open doc open, you know how it is, empty page, what do I actually want to do?
Starting point is 00:07:37 And I mentioned Lego. So let's build a 3D Lego brick on a web page. So what developers do, they start typing, so I type in a JavaScript file, create a function to create a LEGO brick. And you can see here this grey text, we call this ghost text. This is coming from the large language model. So now I can just press the tab key and press enter or I can just do function draw LEGO brick. And here again you see ghost text from copilot available for me, and if I like what I'm seeing here, so I get into a bit more mode of writing and understanding,
Starting point is 00:08:12 I can just accept this. Developers love that, right? Because instead of writing ten lines of code themselves or copy and pasting them from the Internet, they get them right in the editor. They can stay in the flow. Now, what the OG Copilot didn't offer me is a way to interact with this. I cannot ask questions. I cannot, you know, instruct it to do different things. Last year we launched a new feature, Copilot chat. And you can think about it as ChatGPT in your editor. Now, you know, similar to ChatGPT, it streams the response and it gives me not only some code, but it actually gives me an explanation. And so you can kind of see here the idea of this empowering developers and people that want to learn development. But I want to show you something else, this little mic icon. So I can use that to speak
Starting point is 00:08:54 to Copilot and I want to ask it in German what that code does that is on the left side in the editor. Kannst du mir erklären, was dieser Quellcode macht? And now we know co-pilot responds again, but it spawned this in German to me, right? So it says, if I loosely translate, yes, of course, this JavaScript code defines a function named drawLegobreak. So you get the idea here. A six-year-old in Berlin, in Mumbai, in Rio can now explore coding without their parents being around or even having a technical background. Now what you also see is you still need to kind of figure out how you put that all together, right? There's a lot of technical stuff here. I have code, I have to iterate on my machine,
Starting point is 00:09:36 I have to figure out how to deploy this to the cloud so I can share with my friends. But here's my Lego break now. This is what it looks like if I've done all these steps as a developer. It's a nicely rotating brick. I can actually use my mouse to turn it around. These are the anti-studs. Here are the studs. There's nice lighting effects. You can even zoom into this and zoom out of this. Now, I don't want to do all this developer stuff anymore. I just want to channel my creativity straight into reality. And so for the first time ever on stage, I'm going to show you a new product that we call Copilot Workspace that does exactly that. I can just see a task and I can enter a
Starting point is 00:10:11 task. And so now I have my Lego brick. I want to now expand the Lego brick into a Lego house. I can save my task. And now what happens is that Copilot Workspace analyzes what I already have and then describes what it proposes to me. Basically, it reframes my ask into a plan or a specification. It's all in natural language. You know, it uses some file names, of course, but there is no code here. It's all describing it in English, and I can actually go into this and edit it and can make changes to this line or can add another item if I feel like the plan is not exactly what I want.
Starting point is 00:10:41 I can go a step further and generate a plan, and now an agent runs through all my files I already have and figures out how do I need to modify those files or do I need to add files to my repository. So it wants to add a create Lego house function and call the create Lego house afterwards. And now Copilot uses my task, my specification, my plan to write code for me. So here's a button that lets me open a live preview. Now the bricks fall from the sky and I have a Lego house. And this is the power of streaming my creativity into reality with natural language. Now one last thing. Thank you, Copilot. You have always to be nice to the AI. Three leaps in three years. Three leaps that are more progress to the accessibility of computer programming than
Starting point is 00:11:28 we have made in the last 100. Remember how I said that 1% of the world's population is a developer? Now you can see how this will change. Co-pilot workspace may still be a developer tool right now, but soon enough these kind of developer tools will become mainstream. Because going forward, every person, no matter what language they speak, will also have the power to speak machine. Any human language is now the only skill that you need to start computer programming.
Starting point is 00:11:57 This will lead to a globalised groundswell of software developers, and it will reshape the geography of our global economy. And because of this, I think by 2030, maybe even sooner, we will have more than one billion software developers on GitHub. Think about that. 10% of the world's population will not only control a computer, but will also be able to create software just as they were riding a bicycle. This will generate a new renaissance of human creativity with software. Now, anyone could have a brilliant idea right now, a website, an application, a cool computer game, an amazing song, maybe even a cure for something. For example, last year, over a couple of weeks, I built an app that tracks all the flights I've ever taken in my life. Now, I know what you're thinking. What a freaking
Starting point is 00:12:50 nerd. Right? And, yeah, it's true. I love building stuff like this. And with the help of AI, now I can do this in English or in German before I even finish a glass of wine. And soon enough, this will be true for everyone here. The floodgates of nerditude have swung wide open. Now, this doesn't mean that everyone will become a professional software developer, or even that they should. The profession of a professional software developer is not going anywhere. There will always be demand for those that design and maintain the largest
Starting point is 00:13:31 software systems in the world. We're adding millions of lines of code every single day to ever more complex systems, and we're barely keeping up with maintaining the existing ones. Like any infrastructure in this world out there, we need real experts to preserve and renew it. The point here is not a will or a should. It's that anyone can. All because the most powerful system that we have, any human language, is now fused to the language of a machine. And very soon, building software will be just as simple and joyful as stacking a Lego. Dankeschön. . Gosh.
Starting point is 00:14:21 One billion developers makes GitHub sound more like YouTube and TikTok than it is today. Just super exciting. Got to ask you one question, perhaps the elephant in the room. Amazing talk. So you said the developer is still in charge. You also said we've had three leaps in three years. Fast forwarding a little bit, do you think humans will still need to be in the loop? Or will these AI systems
Starting point is 00:14:45 be able to autonomously build and maintain software? You know, the way I always think about that and talk about it is that we called it co-pilot for a reason. We need a pilot. We need a pilot that is creative, that can decide what to do. It's kind of like a Lego set. You need to take this big problem and break it down into smaller problems, into small building blocks, and for that you need a systems thinker. You need a human that can figure out, am I building
Starting point is 00:15:09 a point of sale system? Am I building an iPhone app? Am I building a cool computer game? Am I building the next Facebook? Those are very different systems. Now, these building blocks, they will grow in size. Today, it's a couple of lines of code, maybe a whole file. In the future, it might be a whole subsystem. So I get more work taking off my shoulders, but I'm still there covering the large system. And as I mentioned, we're still running COBOL systems from the 60s. Good Lord. We have lots of work to do.
Starting point is 00:15:36 Absolutely. So we will be in charge orchestrating these systems at a higher level of abstraction. Thomas Domke, everybody. Thank you very much. Thank you very much. Thank you so much. Support for this show comes from Airbnb. If you know me, you know I love staying in Airbnbs when I travel. They make my family feel most at home when we're away from home.
Starting point is 00:15:58 As we settled down at our Airbnb during a recent vacation to Palm Springs, I pictured my own home sitting empty. Wouldn't it be smart and better put to use welcoming a family like mine by hosting it on Airbnb? It feels like the practical thing to do, and with the extra income, I could save up for renovations to make the space even more inviting
Starting point is 00:16:18 for ourselves and for future guests. Your home might be worth more than you think. Find out how much at airbnb.ca slash host. That was Thomas Domke speaking at TED 2024. If you're curious about TED's curation, find out more at TED.com slash curation guidelines. And that's it for today. TED Talks Daily is part of the TED Audio Collective. This episode was produced and edited by our team, Martha Estefanos, Oliver Friedman, Brian Green, Autumn Thompson, and Alejandra Salazar.
Starting point is 00:16:52 It was mixed by Christopher Fazi-Bogan. Additional support from Emma Taubner, Daniela Balarezo, and Will Hennessey. I'm Elise Hugh. I'll be back tomorrow with a fresh idea for your feed. Thanks for listening. Looking for a fun challenge to share with your friends and family? Ted now has games designed to keep your mind sharp while having fun. Visit ted.com slash games to explore the joy and wonder
Starting point is 00:17:17 of TED Games.

There aren't comments yet for this episode. Click on any sentence in the transcript to leave a comment.