ThePrimeagen: Programming, AI, ADHD, Productivity, Addiction, and God | Lex Fridman Podcast #461

ThePrimeagen: Programming, AI, ADHD, Productivity, Addiction, and God | Lex Fridman Podcast #461

Lex Fridman

0:00 The following is a conversation with Michael Paulson,

0:03 better known online as ThePrimeagen.

0:06 He is a programmer who has entertained and inspired

0:09 millions of people to have fun building stuff with software,

0:13 whether you're a newbie or a seasoned developer who has

0:18 been battling it out in the software engineering trenches for decades.

0:22 In short, ThePrimeagen is a legendary programmer and a great

0:28 human being with an inspiring roller coaster of a life story.

0:31 This is the Lex Fridman Podcast.

0:33 To support it, please check out our sponsors in the description.

0:37 And now, dear friends, here's ThePrimeagen.

0:42 What do you love most about programming?

0:44 What brings you joy when you program?

0:47 I can tell you the first time that I ever felt love in programming,

0:50 or felt that joy or that excitement-- Sure.

0:52 Which was in college.

0:54 It was the second class, data structures, and the teacher that was teaching,

0:59 Ray Babcock, he was talking about linked lists.

1:01 Now you have to learn Java at Montana State University when I went,

1:06 and so he's off there explaining this whole linked

1:08 list thing and all that, and then he shows code.

1:10 And in the code it's like abstract class node or whatever it was,

1:14 I can't remember what it was.

1:15 And then it had a private member,

1:17 and that private member was of type node, and I've never seen that before.

1:21 It is a class that is called node with a member that is of itself.

1:25 And for the first time ever I was like, "Oh my gosh." Like there's no end.

1:30 There's no way to iterate.

1:32 This is not a set of 10 items.

1:33 This is a set of infinite items.

1:36 And so my mind kind of exploded in that moment.

1:39 Like, there is actually...

1:41 What you can express is huge.

1:42 I can see what memory looks like.

1:44 I can see this hopping through space.

1:47 And I just remember being just so blown away, because up until that point,

1:50 everything was just, all right, I have a list of 10 items.

1:52 I have a list of 20 items, right?

1:54 It was very rigid and small,

1:56 and the things I built were really small and trivial,

1:59 and all of a sudden I felt like I could build anything in that one moment.

2:03 And it was so amazing.

2:04 I just remember sitting in class for, I don't

2:07 even remember how long those classes were or anything,

2:09 but I just remember being just completely,

2:11 like profoundly impacted by this notion.

2:14 And so I just sat there and I watched, and I had the exact same experience

2:18 in heaven's forbid by a software engineering class,

2:20 when we talked about the Decorator pattern,

2:21 where you can keep on constructing these objects in this recursive way.

2:24 Not that I think that's actually a good idea to do,

2:26 but just watching that and realizing there's so many weird

2:29 and unique ways you can solve problems, and you can just...

2:32 Anything your mind can think of, you can just create that.

2:35 And I just remember getting just so

2:38 excited about the possibility that anything is possible.

2:42 Yeah, let's wax philosophical about a linked list.

2:45 It is pretty profound.

2:46 For people who don't know,

2:48 a node in a linked list doesn't know anything about the world it's in.

2:51 It only knows about the thing it's linked to, its neighbor.

2:56 Maybe that's symbolic.

2:57 It's a metaphor for all of us humans.

3:00 There's billions of us on this planet

3:02 and we only know about our local little network.

3:04 Yeah.

3:05 And it's kind of beautiful.

3:06 And you realize in that little simple data structure,

3:10 you can construct arbitrarily large systems,

3:13 and they're like roots that go through memory.

3:17 And then of course, that's where you get all the programming languages

3:20 that allow you to dump junk into memory and have memory leaks,

3:26 and therefore create infinite pain as you try

3:30 to figure out where that unfreed memory is.

3:35 For me, yeah, probably...

3:38 It's so beautiful the way you put that.

3:39 Linked lists are indeed beautiful.

3:41 Recursion also for me, when I finally wrapped my brain around

3:47 what it means to write a recursive function.

3:50 What was the thing?

3:51 What was one that taught you?

3:53 Because I think we all probably...

3:54 You probably did factorial, where you just do a quick factorial of it.

3:58 It just doesn't hit home.

3:59 What was the thing that made it hit home?

4:01 I don't remember the first.

4:04 (chuckles)- I remember my first.

4:06 How do you not remember your first?

4:08 It was magic.

4:09 I've had so many that just...

4:11 I mean, you are a Lisp guy.

4:12 You're probably pretty used to the recursion.

4:14 Yeah, all I remember is just surrounded by sea of parentheses.

4:19 I mean that's really, probably, when I...

4:22 In high school, I think it was either Java or C++.

4:25 Wow, how do I not remember that?

4:27 It must have been C++.

4:28 And then college it was,

4:31 the generic bullshit software engineering classes were Java,

4:37 but then the renegades, the cool kids, were all using Lisp.

4:43 That's when you're doing the AI,

4:45 the quote-unquote "AI" at that time, that was Lisp.

4:48 If you want to write a chess engine, you would use Lisp.

4:52 And so for me, probably the moment I

4:55 really fell in love with programming was Lisp,

5:00 and writing Othello programs and chess engines,

5:04 all kinds of engines that play a game,

5:05 and then I could play against that thing and that thing would beat me.

5:10 The joy of being destroyed by the thing you've created.

5:13 And oh, game of life too.

5:17 Cellular automata.

5:18 That's when I...

5:19 I built that, you know, all kinds of programming languages.

5:22 That's less about programming languages and more about the system you create.

5:25 And that just filled me with infinite joy, having...

5:30 Now similar to the linked list situation,

5:32 creating a system where each individual cell only knows

5:36 about its neighbors and operates in very simple rules.

5:42 But when you take that system as a whole and allow it to evolve over time,

5:46 you can create infinite complexity.

5:48 So I just...

5:50 Man, those are many pothead moments, where I'm just looking at the beautiful

5:55 complexity that can be created with cellular automata.

5:58 That filled me with just infinite joy, for sure.

6:02 But yeah, all I remember is parentheses.

6:04 So my first, memories of my first are drowned in a sea of parentheses.

6:12 Oh man, mine is, I have...

6:14 Well, first off, mine was in Java, so my first was a little bit more rigid,

6:17 kind of a corporate, you know, a corporate experience.

6:20 Yeah.

6:21 But...

6:21 Cold, meaningless.

6:22 Cold.

6:23 Yeah.

6:23 I was in a lab, everyone was using CentOS at that...

6:26 Or CentOS or however you say.

6:27 I always called it CentOS, the fresh maker.

6:30 Yeah.

6:30 And so it's just like I'm in this very cold...

6:31 (Lex laughs)- That's nice.

6:33 Thank you.

6:33 Yeah.

6:34 I'm in this cold, rigid environment with my Microsoft keyboard,

6:38 programming away in Java.

6:39 And I still have just such, this memory of despair, because I love programming,

6:44 this was after the linked list, and I cannot figure out recursion.

6:50 And so I go to the university store and I buy a book

6:54 and it's Deitel and Deitel learn Java and it has a section,

6:57 Recursion, so I open it up and I start reading it, and it just doesn't hit home.

7:00 And I'm spiraling into this.

7:02 Like, maybe I'm not a programmer.

7:05 Maybe I'm not worthy enough to enter into this circle

7:07 of people who can figure out what the heck recursion means.

7:10 And Deitel and Deitel's, I still remember this, their exact phrase was,

7:14 "Every young budding developer solves this recursion

7:18 program," and it was the Tower of Hanoi.

7:21 And guess what?

7:22 I don't know if I can solve the Tower of Hanoi to this day.

7:26 It's a very hard recursive problem.

7:28 And I just sat there and thought, "Oh my gosh.

7:31 I'm not going to make it." And I sat there in the lab for 8 hours,

7:36 10 hours doing these things, so worried.

7:39 It's the week of recursion, we have to do a lab assignment.

7:42 I'm not going to be able to do it.

7:43 And I just remember being genuinely worried about that.

7:46 And then, because I always...

7:48 My big problem was like, okay, do factorial.

7:50 Why not just use a for loop?

7:52 Okay, what about Fibonacci sequence?

7:53 Why not use a for loop?

7:55 I don't understand.

7:56 What's the purpose of recursion?

7:57 I don't understand it, yet it's so powerful.

7:59 Why?

8:00 It looks like a really complicated for loop.

8:02 And so I just could not understand it.

8:04 And then lab came that day and it was,

8:07 I'm gonna give you a 2D array you have to read from a file.

8:11 This is what a starting position looks like.

8:13 This is what an ending position looks like.

8:15 This is what a wall looks like.

8:16 I want you to find me a path through the maze.

8:19 So I just sat there like, Okay, well,

8:21 I guess I can just go up and I can create a visited grid,

8:25 so I know not to visit these places anymore.

8:27 And then all of a sudden it just started clicking.

8:28 Like, well, wait a second.

8:29 I don't know the maze, but if I just go up, right, down, and left,

8:33 and hop back every time I've been to that square,

8:35 don't visit it, like, I can just, it will just go forever.

8:38 And I realized in that moment, I'm like, I actually understand recur...

8:41 I've understood recursion this whole time,

8:43 I just never had a problem in which it actually made sense to use.

8:46 And that was my big downfall,

8:48 is that I was measuring my understanding with the problems that I had available,

8:53 which were just list traversal, which is not a good use of recursion.

8:57 And so I just remember that freeing...

8:59 Oh, man.

9:00 Recursion.

9:00 It was a great moment in my life.

9:02 I mean it does require, to be fair,

9:04 a leap of faith, because people will tell you,

9:07 those conformist, dogmatic, Java instructors will tell you,

9:15 that this is important, to understand recursion.

9:19 But it takes a leap of faith that is something,

9:24 this is a different way of looking at the world,

9:27 and it's a powerful way of looking at the world.

9:28 Actually remembered when I...

9:32 Think I first...

9:35 I think I remember my first now.

9:37 [ThePrimeagen] All right.

9:38 (Lex chuckles)- I think it was dev first search for one of the games.

9:45 Maybe Othello, something like that, and for that implementing recursion.

9:49 Understand that you can search trajectories through

9:53 the space of states and do that recursively?

9:56 That was mind blowing.

9:57 Just imagining like...

10:00 You can just see it all.

10:01 The possibilities.

10:02 Yeah.

10:02 Just like numbers flying.

10:03 It was like The Beautiful Mind.

10:07 And that's when I also discovered conspiracy theories.

10:09 (Lex and ThePrimeagen chuckle) That was...

10:11 And I just saw, I saw the truth.

10:13 Okay.

10:14 Yeah.

10:14 So what were we talking about?

10:15 Oh, what was the most painful aspect of programming for you?

10:20 What memories do you have of deep,

10:23 profound suffering in terms of programming in the early days?

10:28 I would say the biggest one that I can really

10:31 hold on to had to be one of two experiences.

10:35 The first experience was when I was at a place called Schedulicity, and...

10:40 Am I not allowed to say the place-- You're allowed.

10:43 There is...

10:44 I'm not sure if they're even operating still at this point,

10:46 but they're in-- There was something funny about the name.

10:48 I'm sorry.

10:48 Oh, Schedulicity?

10:49 Yeah.

10:50 Actually, the name was so bad that when you looked at their paid-for Google

10:55 ad terms that they would make sure that they're at the top of the list,

10:57 the spellings were just insane,

10:59 because no one knew how to spell the word Schedulicity,

11:02 and so, it was just like this, the Google optimizing for that is just hilarious.

11:07 But okay, go back to the thing.

11:09 The thing that kills me the most about programming,

11:11 what I actually considered the worst aspect of programming,

11:15 is when you know everything.

11:16 And so when I was at this job,

11:18 it's just every single day I'd come in, there were no surprises,

11:22 there was no questions.

11:24 I didn't understand the code base, sure, that's fair.

11:25 I didn't understand all the things about the code base.

11:28 But I knew I was gonna go in, I

11:29 was gonna generate some sort of object from the database.

11:32 I was gonna take that object from the database,

11:33 and I was just gonna map it over and just display it on the webpage.

11:36 There's no creativity, there's nothing to it.

11:38 It's very almost factory line kind of work.

11:41 And that was a very difficult moment for me, which is...

11:45 I didn't enjoy programming, because I knew everything about it.

11:49 I already knew exactly what I was gonna do that day.

11:51 I knew all the hurdles I was gonna have to go over.

11:54 There was no unknown unknowns, if you will.

11:57 It was just knowns at all times.

12:00 And it just, that is...

12:01 And for me, that is the worst part about programming,

12:03 is when you already know the solution and it's just a matter of how

12:06 fast you can type and get it out from your head to your hands.

12:10 So the absence of uncertainty, the absence of challenge, was the pain?

12:15 Yeah.

12:16 That's pretty profound, Prime.

12:18 I'm more than just good looks.

12:19 I want you to know that.

12:20 (Lex and ThePrimeagen chuckles)- It's a low bar.

12:23 What do you identify as?

12:25 I'm enjoying asking the general question.

12:27 38, male.

12:29 Male.

12:30 Husband of beautiful wife.

12:31 Okay.

12:31 You stream about all kinds of programming, but what kind of programmer are you?

12:37 Are you full-stack developer, web programming?

12:41 And maybe can you lay out all the different kinds of programming

12:45 and then place yourself in that, in terms of your identity.

12:48 Sexual identity as well.

12:49 Yeah, I can get it, we can put it all in there.

12:51 Okay.

12:52 Plus, obviously those two are very, very tightly coupled.

12:55 I have seen you on the border of sexually aroused by certain languages.

12:59 I think you got real excited about OCaml, or...

13:04 OCaml.

13:04 Let's go.

13:06 Thank you Dillon Mulroy.

13:08 Okay, wow.

13:09 Yeah.

13:09 I did not expect that.

13:11 That escalated quickly.

13:11 Anyway, what do you identify as?

13:14 Okay, so first let's do the previous or the in-between question first,

13:18 which is the different archetypes.

13:20 I think that's a really interesting kind of question,

13:22 because if you go on Twitter or you're new,

13:24 your thoughts are probably that there is just web programming,

13:28 and maybe there's some other stuff, yeah, like game programming,

13:30 but you'd be like, game programming in JavaScript and on the web.

13:34 There's this very myopic view of the programming world,

13:38 and I bet if you ask a lot of people

13:40 these days what is the most popular form of programming,

13:43 they'd probably say web.

13:44 If you said what contains the most amount of repos,

13:46 how many percentage of repos on GitHub are web-based,

13:49 they probably say 90% or some huge number.

13:52 But the reality is that there's an entire embedded robotics world.

13:55 You know, you're familiar with the ML side of things.

13:59 There's networking, there's gonna be just performance,

14:01 operating systems, compilers.

14:03 There's just huge amounts of variation of all

14:06 these different types of programming verticals that you can be.

14:08 And so we often talk about programming in perspective of web,

14:12 or something that's pretty narrow,

14:13 and I think that's just a social construct of Twitter more than anything else,

14:16 that actually I don't believe it's that representative

14:19 of the entire programming world out there.

14:22 And I think a lot of programming's really, really fun.

14:25 There's some really great stuff.

14:26 Building your own language is just a very fun experience to do.

14:29 Every programmer should just do that once,

14:31 just to have a completely different perspective on how things work in life.

14:36 But as far as what do I do, I've always looked at myself as a tools engineer.

14:40 So at my time, at my jobs,

14:43 typically I would start off on the UI, and then they'd be like,

14:46 "Okay, well hey, we need a library for this thing."

14:48 So then I'd be the one writing the library.

14:50 So in 2012, 2013, I was writing a UI library

14:54 for the web that can behave just like an iPad,

14:57 so you can pinch and zoom on it, but it's still a web page.

14:59 Because we didn't have any of that stuff back then.

15:01 It was a canvas, had to do all

15:03 the matrices operations and all that stuff to kind of...

15:05 Nice.

15:05 You know, it felt like you're on an iPad, but it actually wasn't on an iPad.

15:09 And this was iPad 2 by the way, so this is a long time ago.

15:13 And so every single time I got into a job it's like,

15:15 "Okay, hey, we need to do a library.

15:17 Hey, can you work on a build system?" So

15:19 back then there was no Grunt, there was no gulp,

15:21 there was no any of those things,

15:23 so I had to hand roll my own JavaScript build system.

15:26 And so I always fell into these positions

15:28 of building tools for developers to be successful.

15:31 And I've always really enjoyed that region.

15:33 So as I went on to say Netflix, spent 10 years there,

15:37 I'd say the majority of my 10 years were building things

15:40 for developers to use that they could be successful at their job.

15:45 And so I've always really enjoyed that aspect,

15:47 because your stakeholders and the people that use

15:50 your program understand programming and they're gonna say,

15:53 "Hey, I need this." And typically the thing that they need, they actually want.

15:58 Whereas with people, people want stuff, but what they actually need versus what

16:02 they actually want often are this weird separation.

16:06 That's like the old Henry Ford quote,

16:08 "I just want a faster horse," and he's like,

16:09 "No, what you actually want is a car." And so it's like,

16:11 you have to play this game of trying

16:13 to really figure it out, whereas developers,

16:15 it's like, I know, you know what I'm doing, I know what you want.

16:18 Let's figure it out together."- That's actually,

16:20 that gives you a really nice big-picture view of programming in general.

16:24 So I love the idea of just starting at the interface,

16:28 like you need to pinch and all that kind of stuff,

16:30 and then figure out the entire thing that requires to make that happen,

16:34 including maybe the side quest tooling,

16:37 how to make it more productive and efficient, all that kind of stuff.

16:40 So the entirety of the thing.

16:42 That's really cool.

16:43 Okay, so that mean that would be full stack?

16:46 By that general definition of full stack, meaning like...

16:49 [ThePrimeagen] Perhaps, yeah.

16:50 Versus systems engineer,

16:52 like starting at the bottom and trying to optimize a certain kind of specific

16:57 thing without seeing the big picture

16:58 of what the resulting interface would look like.

17:02 And a lot of people in web programming,

17:05 they never go beyond the front-end of how a thing looks.

17:07 They kind of always assume there'll be somebody, some grunt in the shadows,

17:13 in the darkness of the basement, that will implement the back end.

17:17 Some Gilfoyle out there will be doing the back end.

17:18 Gilfoyle.

17:19 Yeah.

17:19 Yeah, I like to call myself a generalist, just to give some ideas.

17:25 At one point at Netflix I built the WebSocket connection.

17:28 So for TVs, how WebSocket works is code I just wrote.

17:31 And so I built the framing thing, and before that I was doing stuff with memory,

17:34 and before that I built a UI for a tool.

17:37 Right?

17:37 I can just do the thing.

17:38 You just tell me the thing to do and I'll just go do the thing.

17:41 I worry to...

17:42 I don't try to get super good at one specific activity.

17:46 I don't want to be a Kubernetes engineer,

17:48 who's the world's greatest employer, but if I had to go learn Kubernetes,

17:51 I'd go learn it and learn how to deploy some things,

17:54 and then hopefully move on to the next thing, if that makes sense.

17:58 I posted about the fact that I'm talking to you on Reddit,

18:00 and there's a lot of wonderful questions.

18:03 Somebody mentioned that I should ask you about DevOps.

18:05 Can you explain what DevOps is?

18:07 Is it a kind of special ops of programmers, is it SEAL Team Six of developers?

18:11 What's DevOps?

18:12 Can you define?

18:13 Are you a DevOps engineer?

18:14 Well, people keep telling me DevOps isn't real.

18:16 There's actually, you want platform engineers, cloud engineers, infra engineers.

18:21 I just often think the easiest way, if we're doing just some basic nomenclature,

18:26 it's just DevOps are the people that make sure that when you

18:29 launch a service and all of that, it doesn't just disappear, right?

18:33 It's all the backbone of being able to operate something at scale.

18:37 Like really don't, if you think about it,

18:38 if you're just writing a mom-and-pa website,

18:41 people that do PHP that are doing WordPress

18:43 and all that, they're going to build something,

18:44 they're going to hand it off to, I don't know,

18:45 Linode, DigitalOcean, some company.

18:48 They don't really need a really complicated build, deployment, all this.

18:53 It's just someone with a simple website so they can sell their goods.

18:56 And so they don't really need that.

18:57 And so that's kind of how I think of a DevOps,

18:59 is when things need to scale, that's kind of the person you hire.

19:05 Yeah, those people are actually amazing.

19:06 [ThePrimeagen] Yeah.

19:08 The time I spent at Google, it's like, oh,

19:10 yeah, yeah, there's all these fancy machine learning people,

19:12 but the folks that are running the infrastructure,

19:17 basically that make sure that shit doesn't go down,

19:21 they're like wizards, and they're essential.

19:23 It's a very incredible vertical of job.

19:25 And obviously I'm using a very broad term to describe, I'm sure, like a bunch...

19:28 You know, because making sure stuff doesn't go down,

19:31 you could also say that's an SRE, right?

19:33 Site reliability engineer.

19:34 Whatever, the ones that wear the bomber jackets at Google.

19:38 And so when we say DevOps,

19:40 I think people get very particular about terms specifically in this category.

19:43 They're like, "Well actually,

19:44 you're mentioning infrastructure engineer versus site

19:46 reliability engineer." It's just like, "Okay, yes,

19:48 I hear you," but generally when someone thinks DevOps,

19:50 they think somebody that manages the servers

19:53 and their life cycles and the reliability.

19:56 There's DevOps.

19:57 Is it real?

19:58 I'm not sure.

19:59 [Lex] Okay.

20:00 Did Vercel kill DevOps?

20:02 Question mark?

20:03 Question mark.

20:04 Yeah.

20:04 Wow, you're almost a journalist.

20:06 That's a headline.

20:09 Let's go back to the beginning.

20:11 All right.

20:11 Baby Prime.

20:12 So you mentioned Netflix.

20:14 You've...

20:15 Oh, I worked at Netflix by the way.

20:18 For people who don't know who ThePrimeagen is,

20:22 he mentions the fact that he has been very successful

20:26 and has worked at Netflix in basically every other sentence.

20:30 Correct.

20:30 Almost as much as I mention Neovim.

20:33 Oh, great.

20:34 Tell me more about Neovim.

20:35 No, please don't.

20:37 So, baby Prime.

20:38 At the very beginning.

20:41 You've had one hell of a life, and I think it's inspiring to a lot of people.

20:50 you've come out of that to become a successful programmer and a person

20:55 that inspires a huge number of people to get into programming,

20:59 and just to find success in life.

21:01 So maybe, I would love it if you laid

21:04 out just your whole life journey from the beginning.

21:08 So I guess if we're gonna start with this whole journey,

21:09 I think it's probably best to start to when I was about four or five years old.

21:13 That was the first time I was ever exposed to pornography,

21:17 and it's kind of just earwormed me for a large portion of my life.

21:22 And so I don't think there was a day

21:24 that didn't go by from when I was a very young

21:26 lad all the way up until I was twenty-some years

21:29 old where I didn't think about porn on the daily basis.

21:32 And so it was just every single day, even that young.

21:35 And so it was just a very mind-consuming, time-consuming,

21:39 thought consuming thing that plagued me, starting at a very young age.

21:44 When I was seven years old, my dad died.

21:46 That was kind of a really tough period of life.

21:50 I still think about this time that I went over to China,

21:55 and there's some rules that we were given,

21:59 and one of the rules was just like, "Hey, don't talk about God,

22:03 and if you do, use the word 'Dad' instead." And I was just like, "Okay,

22:08 Dad!" It was the first time I said that word in 17 years or some long time.

22:12 "Daad." It was so weird to say that phrase.

22:14 And I was just like, "Oh, that was just the strangest thing I've ever said

22:18 in my entire lifetime." It just felt so weird.

22:21 So, kind of rewind.

22:22 As I got older, obviously was very good at computers,

22:26 good at accessing porn, of course, played video games on the Internet.

22:31 Fun fun kind of side quest story.

22:33 I think the guy's name is Lord Toc on Twitch.

22:36 I can't quite remember his name,

22:38 but he built this game called Graal, G-R-A-A-L, and Graal Online.

22:43 And when I was a young lad it was just like Zelda,

22:47 except for it also had a level editor and it had a C-like language,

22:50 and that's how I discovered how to program,

22:51 is I looked at these symbols and figured out what they meant,

22:55 and then I was able to make things happen in the game.

22:57 And that was like a, that's my introduction into programming.

23:00 So thank you that guy, whatever your Twitch name was.

23:03 But all right, so keep on going.

23:05 As I got older, I was super bad socially.

23:09 I was not a very great social person.

23:12 High school was brutal, got made fun of a lot,

23:15 really didn't enjoy, I wouldn't say had a great time during high school.

23:20 Definitely felt very out of place or offset or maybe misplaced, if you will.

23:24 I'm not sure what the right word is.

23:26 And so of course at that point,

23:28 I just always wanted to, I wanted to be accepted, to fit in and all that.

23:32 I did forget to say one side story.

23:34 After my dad died, my older brother, he started getting into drugs,

23:38 and along with that he exposed me to pot,

23:41 so at eight years old I was smoking some marijuana for a while there,

23:46 until maybe 11 or 12, and took a break,

23:48 and then again did a lot of that as I got a little bit older, but...

23:52 So I got a lot of these exposures fairly young.

23:57 16, 15 through 18, lot of drinking and all that.

24:02 When I graduated, or as I was graduating high school,

24:04 it's just like, I had such sadness, if you will.

24:08 I was very sad about how everything went,

24:10 tried to commit suicide, obviously it was a very poor attempt.

24:15 And I'm still here today.

24:16 I'm very happy about that aspect.

24:18 I'm glad that I didn't follow through with anything,

24:20 had to go to the hospital and all that.

24:22 And when I was done, I just still remember kind of coming out of the hospital,

24:26 and at that moment it's kind of like something broke in you.

24:28 Have you ever read the book Wheel of Time?

24:31 It's 14,000 pages or something like that, but right around page 12,000,

24:34 Rand has to intentionally kill a girl, the main character.

24:38 And that's the moment he breaks,

24:39 and he gets into like Hard Rand, Quindalor Rand,

24:43 if you will, for those that know Wheel of Time will appreciate all that.

24:47 For those that don't, very confusing, and I understand.

24:49 Not the Amazon movie show, not that Wheel of Time.

24:54 So now that we go back onto it,

24:56 at that point it's just like something kind of broke in me,

24:57 and I just didn't care anymore.

25:00 So all the social awkwardness, if you will,

25:02 all that, just died away with me, but also so did everything else.

25:07 And so I started using a bunch of drugs.

25:12 LSD, mushrooms, meth.

25:15 Did a bunch of meth, did a bunch of that stuff,

25:17 and then went off to college and continued to do a bunch of stuff.

25:21 I took too much acid to where for quite a few years,

25:23 I had little squigglies on the side

25:25 of my eyes whenever I'd walk by high contrast objects.

25:29 And so it's just that whole period of life

25:31 was just kind of marked by just poor decisions.

25:36 And then sometime when I was about 19 years old, somewhere in that range,

25:41 I just had this one evening where I

25:44 felt the very dramatic and real presence of God.

25:47 And I kind of had this choice, like Frodo, on a razor,

25:51 where it's like if I go either way,

25:53 I'm going to fall off, and I need to change my life.

25:57 You get to make the choice now.

25:58 Do you want to do that or not?

26:00 And so I remember going, okay, I do want to change my life.

26:03 I don't like this experience.

26:04 I don't like what I'm living.

26:06 I am still very sad, I still feel very desperate.

26:08 I still feel all those things.

26:09 I'm just pretending to be this other person.

26:12 And then I just went to sleep that night.

26:17 Nothing changed in my life.

26:19 Everything was still the way it was.

26:20 I woke up the next day, the same person, and I was just like,

26:23 "Oh, that's just such a strange,

26:26 weird experience." And I just went about my day.

26:28 And then I remember, I think that evening, I looked at porn,

26:32 and all of a sudden I just had a conscious, just this deep, profound shame.

26:38 And I was like, I've never felt shame in my life.

26:41 I have no idea what's happening now.

26:43 And then all of a sudden when I smoked pot, I just felt deep shame.

26:46 And when I hurt somebody or did something wrong, all of a sudden,

26:48 it's just like I got a conscious from that evening.

26:50 That's what my gift was, if you will.

26:53 And just at that point, I didn't even have a choice.

26:56 I had to change my life,

26:58 because for whatever reason, I've been changed in a moment.

27:01 And so from there I started actually trying in school.

27:04 I always joke around that I got 2.14 in high school.

27:07 I had a teacher hand write me a note

27:08 saying I was the worst student she's ever had.

27:10 All that kind of stuff.

27:12 I was not a really great student.

27:16 And then in that moment it's just like, "Okay,

27:17 now life's changed," and I start trying to learn,

27:20 and I try to become a good student.

27:22 And it turns out it's really hard.

27:24 I was really bad.

27:25 I still got Cs.

27:27 I went and took pre-calculus and failed pre-calculus, and I'm like,

27:30 "Oh my gosh, I used to be the smart math guy,

27:32 and now I'm the idiot failing." And so I'm just questioning myself

27:36 and all that, and I spent hours upon hours in a studying,

27:42 math learning center, and then just at some point years into this journey,

27:46 I'm like a year and a half into this journey, at this point, something clicks,

27:50 and I go from being the worst person to just immediately becoming the best.

27:55 Everything after that is just, I don't know what happened.

27:58 All of a sudden I was the best person at math.

28:01 I started going into my computer science classes.

28:03 I just really got everything.

28:05 Everything, at just years after trying, just all of a sudden became easier.

28:09 And I'm not sure if it happened over

28:11 the course of weeks or when the easier started,

28:13 but it was just first predicated by just a huge amount of difficulty.

28:17 And then this is where I started

28:19 really desiring and loving the process of learning,

28:21 was when things started getting easier after all those years.

28:24 Because I just was motivated by this desire to do something,

28:30 not thinking it was going to get any easier,

28:32 and then all of a sudden it just started getting easier, and it was great.

28:34 And that's really where I guess I started having

28:37 the biggest parts of my life change at that point.

28:40 I started really, really, really wanting to never look at porn again,

28:44 because every single time just such shame, and I really wanted to stop.

28:47 And that was by far the hardest addiction to quit.

28:49 Smoking cigarettes was also a really hard addiction to quit,

28:52 shockingly hard addiction to quit,

28:54 but porn by far was just the worst of them all.

28:57 And then I think about 22,

29:00 I was finally done with all kind of addictions, if you will,

29:04 and then for a year I just worked in all that, and I think right around,

29:08 maybe it was 21 and three quarters, somewhere in that range,

29:11 I'm not really sure where I stopped all the addictions part,

29:14 but, or at least the outwardly addictions.

29:17 And then at some point, six months later, a year later, met my beautiful wife.

29:22 Things just started falling more and more into place.

29:24 I loved more and more work.

29:26 I loved programming.

29:27 I started programming 12 hours a day.

29:29 I watched the Social Network movie, and after that, I was just like,

29:32 "I'm doing a startup." And so that night I started my first startup,

29:35 and I was just like, so...

29:36 It was in PHP by way.

29:39 Nice.

29:39 PHP, yeah, 5.2 or something like that.

29:41 It was great.

29:42 Great times.

29:42 And I was just so motivated to do that, and I would just program for...

29:46 Sometimes I'd program for 24, 36 hours straight, and just nonstop,

29:50 that's all I wanted to do at all points.

29:53 I think my wife got a little sick of me.

29:56 She would be like, "Can you drop me off at school?" And I'd be like,

29:58 "No, I'm programming." I was not a very nice...

29:59 You know, I didn't think through things that well.

30:01 Yeah.

30:01 I was just so into it and I just did it nonstop,

30:05 and that's kind of how I became me, is that story, if that makes sense.

30:10 Let's try to reverse engineer some of the pain and some of the triumph.

30:13 You made it sound easy at times.

30:16 Let's try to understand it better, maybe when you were seven years old.

30:22 What do you think about the pain you've experienced there, losing your dad?

30:25 What do you think?

30:26 What kind of impact did it have on you?

30:28 What kind of memories do you have at that time?

30:30 The best way I can put it is that I just never knew what a dad was.

30:34 I was young enough that I could maybe repress

30:37 or just even have the capability of remembering things long-term.

30:40 Because I know most people don't remember a lot from when they're young,

30:43 and so I'm not exactly sure.

30:44 I probably was at one of the best possible ages,

30:47 if I'm going to lose a dad, to lose a dad, you know?

30:50 If you're gonna lose one, if you're 11 or 12, it's a terrible age.

30:54 That's what my brother was,

30:55 and he fell into drug addiction and never got back out.

30:59 So I just have more of a fuzziness and just kind of a longing.

31:04 I just wish I had a dad.

31:07 What impact did that have on your evolution, on your life, having that longing?

31:13 I think that's why I was so bad socially,

31:18 in the sense that I was looking for approval, right?

31:21 I needed approval.

31:22 I think a lot of people desire that approval or that loving figure,

31:25 and I just didn't have that.

31:27 So I think I just looked for it in everything else, right?

31:29 If I were to psychoanalyze my actions.

31:32 During the time, it's not like I was actively thinking that, but yeah,

31:37 I just always wanted something to fill in whatever that was I felt.

31:41 I think a lot of people listening

31:43 to this will resonate with your experience in high school.

31:46 Being the outsider, being picked on, struggling

31:48 through a lot of different complexities at home.

31:52 What advice would you give to them?

31:55 The worst part about high school is that you're surrounded

31:57 by a bunch of people your age and it feels eternal.

32:02 [Lex] Yeah.

32:03 You don't think...

32:04 The people that are around you,

32:05 you feel like are the people that will be there for the rest of your life.

32:08 At least that's what I thought.

32:10 And I didn't really even realize this until many years later,

32:13 that they are going to be some of the least consequential people in your life.

32:19 [Lex] Yeah.

32:19 Which is very shocking to think about, especially if you're in it right now.

32:24 Yeah.

32:24 Right?

32:24 Right now they are everything that your experience is, your whole reality.

32:28 And then one day it all stops, and then real life starts to begin.

32:33 Yeah.

32:34 That's such a shocking thing, and if I could just tell myself that, maybe

32:37 I would have been a bunch of different person.

32:39 That's so beautifully put.

32:41 I mean, it is like a trial run.

32:43 You know at the beginning of video games, there's a little tutorial?

32:46 That's what that is.

32:48 [ThePrimeagen] Yeah.

32:49 And actually that should be a chance to try shit out, to take risks,

32:56 because real life will begin with, there is more consequences after that.

33:00 Yeah.

33:01 Here you can, if you like a girl, ask her out.

33:03 Try, try shit.

33:05 If you get picked on, hit that guy back.

33:07 Try shit out.

33:08 I'm not gonna condone punching another person.

33:10 I will.

33:11 Beat the shit out of him,

33:12 and take some jiu-jitsu and learn how to take him down.

33:15 And then that girl that rejected you will be like, "Hmm,

33:18 maybe I'll give that guy a second chance." Be a bad motherfucker.

33:22 It's a chance to try stuff out.

33:25 This is a very motivational speech for kicking ass.

33:28 It is true.

33:29 I mean, there is something very true about that, that I think especially...

33:31 I mean, I have no idea what the girls experience of high school would be like,

33:35 but as a guy, there's definitely a lot

33:36 of like physical requirements in high school.

33:39 There's a lot of physical measurement, at least where I grew up.

33:42 I think that might not be true in all high schools,

33:44 but if they're filled with boys, it's probably true.

33:47 And so it's just like, yeah, it probably does help to do those things,

33:52 to go to BJJ, to do any of these activities.

33:54 Because even if you don't ever kick someone's ass,

33:56 just having some level of confidence

33:58 in yourself is probably a very valuable thing.

34:01 But just remembering that this is such a short,

34:05 tiny moment in your life is just like a huge help.

34:10 I mean, the way you phrased it is exactly right.

34:12 That's what it feels like.

34:13 That these are the people that will be with you

34:16 for the rest of your life and this is the whole world.

34:19 And so that means that there'll be just

34:22 tremendous amount of impact if somebody picks on you

34:24 or if you fall somewhere low in the hierarchy

34:29 and the status hierarchy of this high school,

34:31 that means you'll be low in the status hierarchy

34:34 of the world and you're fucked for the rest of your life.

34:36 And that carries a tremendous amount of weight.

34:39 It's just why psychologically it's extremely difficult to be...

34:42 I think it's understated often by parents, by society,

34:47 how difficult it is to be a high schooler, how difficult psychologically it is,

34:51 how it actually makes sense that some people would

34:54 suffer from depression and be on the verge of suicide; is very, very difficult.

34:58 Yeah, I think it's even...

35:00 People always say, "Back in my day," blah blah blah.

35:02 I think it's genuinely harder today than it's ever

35:05 been in the sense that when I was a kid, there was a qualification to people.

35:09 Meaning, this is a cool guy, this is not a cool guy.

35:12 Today, there's a quantification of people.

35:14 You have 32,514 people following you, you have 12.

35:19 The people can visually...

35:21 They can inspect your exact social value on whatever platform you're on.

35:25 And that has to be just so much harder.

35:28 And I can imagine that there's a lot of just

35:31 so much weight to put on that, that it's just...

35:34 It feels probably way worse and way more damning to be

35:38 uncool because you have an exact number of how uncool you are.

35:42 Yeah.

35:42 The challenge there.

35:45 And the task, the quest is to remember that just because

35:50 your social circle on social media and in high school thinks you're uncool,

35:58 it actually might mean you are cool.

36:01 And you need to find that cool and grow it

36:04 and let it flourish so that when real life begins,

36:08 you can fucking come out of the gate firing

36:11 on all cylinders because-- That's a great way to put it.

36:14 I think if anything, high school is really bad at picking out the cool people.

36:21 Whatever the system, the hierarchy that forms,

36:24 it's such a basic bitch hierarchy.

36:27 You're good at very generic shit.

36:29 That's how you rise.

36:30 Your parents bought you an expensive car.

36:32 Expensive car, right?

36:33 Just-- Materialistic shit.

36:34 Yeah, exactly.

36:35 It's a greedy search.

36:36 See, they didn't have a proper search,

36:37 so they're just hitting that local optima.

36:39 But the US, I mean, even the objective function

36:42 for that greedy search is just a really shitty one,

36:45 where those people that win the game of high school are very

36:50 often not gonna be the people that win the much more exciting,

36:53 beautiful game of life.

36:54 So do epic shit and try stuff out.

36:58 The weirdos are the ones that are gonna succeed, the weirdos in high school.

37:03 Probably because they also get bullied and they

37:06 get to be tormented more psychologically and get

37:08 to explore their own mind and think through

37:11 what it means to be a human being more.

37:13 Because if you're winning in high school, you're not being challenged,

37:18 you're not self-reflecting, you're not trying shit out.

37:21 So there is some degree to being tormented as long as it doesn't break you.

37:27 The porn addiction, that's another powerful one that I

37:31 think will probably resonate with a lot of people.

37:34 And it's interesting that you say that's

37:36 one of the hardest addictions to overcome.

37:40 Let me say it this way, some addictions have a much bigger societal look

37:45 and porn is just not one of them, which makes it super hard.

37:47 None of your friends are going to cheer you on.

37:49 If you go on Twitter and say, "I quit porn," they're going to be like,

37:52 "Well, that's good for you but not everybody..."

37:53 No one makes that argument with meth, right?

37:56 No one's gonna be like, "Well, not everyone has to quit meth, okay.

37:58 It's actually a fine industry and people who are the ones producing it,

38:02 they're good also, right?" No one's going to make that kind of argument.

38:05 Whereas with porn, you're going to have a whole thing

38:08 and friends are gonna think you're dumb for doing it or whatever.

38:12 It's like you have...

38:13 It's a much more difficult one in just like that.

38:16 So it feels accepted.

38:18 And I think it's also an addiction you can practice,

38:21 participate in privately and hide it from the world.

38:24 There's certain addictions that are harder to hide

38:26 from the world for prolonged periods of time.

38:28 And porn addiction is probably one you can just

38:30 have for many years and then it can deepen.

38:32 That's probably a serious issue.

38:35 Boy, am I glad I grew up before the internet because porn is so accessible,

38:42 so easy to go deep into that addiction.

38:46 I mean, what can you speak about what impact it had on your life?

38:50 Maybe some of the low points, but also how to overcome it?

38:53 I'd say as far as impact goes is that you

38:56 will have such a long and broken look at women.

39:00 By the very, like I can...

39:01 Again, I'm only speaking from a male's perspective,

39:05 that porn in its just most basic thing is that you

39:09 use another person for your own desire or your own want.

39:15 It's not something that is deeply needed.

39:18 There's no need for porn.

39:20 It's purely a want-based activity or a lust,

39:23 however you want, whatever word you can fill in there.

39:25 And it is purely an objectifying activity.

39:28 Someone else is on display for your own enjoyment.

39:32 And so I think you carry this around.

39:34 I do think that the women that I dated during

39:36 high school or the women after high school and college,

39:39 I looked at them as a means to an end.

39:41 And I think porn greatly kind of shifted that perspective in my head

39:45 that I did not give the value that was desired to another person.

39:49 It really devalues humanity just in general, is my perspective of it.

39:54 And then it makes people into commodities.

39:55 And I don't think people are commodities.

39:57 I think everyone has value.

39:59 And so during that, for me that's like the great effect of porn,

40:03 is that it's just consumerism gone wild or materialism maybe,

40:08 you could ask or argue, gone wild.

40:10 And it's extremely hard to quit, just like you said,

40:13 because I can look at porn and then I can go out to lunch.

40:17 No one's going to know.

40:18 No one's going to have any ideas.

40:19 It's a very private, it can be very short session.

40:23 It doesn't have to be something that takes...

40:25 You can't take acid then go out to lunch, right?

40:28 Your whole day is going to be a very different day.

40:31 And so it's very quick, easy, accessible.

40:35 And then obviously there's all the science and statistics,

40:38 like men make worse decisions for some period

40:40 of time after looking or being exposed to sexualized images.

40:43 There's the whole dopamine effect that's just

40:45 like you constantly need more and more dopamine.

40:47 That's why people typically don't just watch five

40:50 minutes of porn and call it a day.

40:51 There's like the hundred tab joke that's always made on the internet.

40:54 It's because it's just this constant dopamine cycle you're constantly doing.

41:00 And all that stuff is great to say.

41:01 And I'm sure statistics and science and all that stuff

41:04 is really great arguments for some amount of people.

41:06 But for me it just comes down to, is it really a good thing to do?

41:10 Is it really actually something we want,

41:13 is to value people in such a profane or just disregarding way?

41:18 I just really think it's just bad for the soul.

41:21 Even if all the stats said it was great for you, I still say it's actually bad.

41:26 Yeah, you have to look at the long-term big picture,

41:29 psychological impact it has on your relationships with human beings in general.

41:33 That's my, more generally than just porn, my problem with the quote, unquote,

41:39 sort of "manosphere",

41:40 is I think sleeping with a bunch of women is great, wonderful.

41:48 But the problem is, making that the primary objective of your life,

41:52 similar with porn, is you devalue one

41:56 of the most awesome things, which is intimacy.

41:59 That's true for deep friendship, that's true for relationships.

42:03 And I think porn does that in its purest, darkest form, which is:

42:09 the thing that matters is the sex,

42:10 not the deep connection with another human being.

42:15 And I think, again, going back to high school and the manosphere,

42:19 the objective function if it's to get laid,

42:22 which helps with status and confidence and all...

42:25 All that is wonderful, I think.

42:27 Again, can be an addiction.

42:29 But the thing that's even more awesome for a lot of people

42:33 is a deep friendship or deep intimacy with a romantic partner.

42:38 That's also fucking awesome, and both of those are great.

42:42 It's objectively better to have...

42:44 I would say that there's no universe

42:46 that exists or there should be no argument possible

42:48 that exists that a guy who has meaningless sex

42:51 has a better or a more meaningful life than,

42:53 say, me and my wife who've been together for 15 years.

42:55 We have a very...

42:57 I can depend on her in all circumstances.

42:59 Whereas if you live that other life, it sure could be...

43:03 It could feel great, but there's no meaning to it.

43:05 There's no actual real value to it.

43:08 That's absolutely correct.

43:08 I do think that getting laid can have a tremendous

43:13 positive impact on the confidence of a young man.

43:15 I think just there's a certain number of sexual partners from which

43:20 you can collect a lot of data and it can free you about,

43:25 like not to be so nervous about the opposite sex,

43:28 not to be so nervous about human interaction.

43:31 And that will allow you to see the world more clearly and to actually

43:36 find that one partner with whom you can be deeply intimate with.

43:39 Sometimes the nervousness around like this societally constructed

43:46 value in getting laid can cloud your judgment.

43:51 And if you just release that by getting laid a bunch of times,

43:55 then you could see the world clearly that getting

43:57 laid is not nearly as important as you said,

44:00 as finding the right human, including I should put in that pile,

44:05 not just a romantic partner, but friendships, deep lasting friendships.

44:11 Well, I mean I think you're right that our society

44:12 puts a lot of emphasis on getting laid.

44:14 And I'm sure that's true among any

44:16 group of males throughout any point in history.

44:19 I'm sure that's a very common joke

44:21 that's never actually never stopped at any point.

44:23 So I'm sure that exists but...

44:27 And there's probably some truth to the sense that after you've...

44:30 Who was it?

44:31 Jim Carrey.

44:31 "I hope that everyone can get rich so

44:33 they realize that money solves none of your problems."

44:35 The realization that this thing that society told you

44:38 is hyper important is actually not the important part.

44:40 It is a very important...

44:42 It's a great sign that your relationship is healthy.

44:45 Like if me and my wife were to have no sex at all for months on end,

44:48 something's gone wrong, which means what...

44:51 We are no longer on the same plane.

44:55 But it's not also a good identifier.

44:57 Just because you're having a lot of sex,

44:58 it doesn't mean you're having a good relationship.

45:00 And so it's like a unique kind of...

45:03 I forget the right term here, but it's a unique way at looking at the problems.

45:09 And our society puts so much emphasis.

45:11 And maybe that's why porn was so hard to quit,

45:13 but my guess is it's just all the dopamine effect that it is.

45:18 But for me, the most important part and the thing

45:21 that actually has real reward is having that, having just my wife.

45:26 I do not look at...

45:27 I desperately try not to look at any other woman.

45:29 I'm hopefully not going to get caught...

45:31 Mark Zuckerberged at the White House like that.

45:34 I don't look at porn.

45:35 My wife has complete confidence in me that there is not going to be

45:38 a situation in which she has to question me in any kind of sense.

45:41 And that builds a much more deeply, I would argue,

45:45 a very deep relationship because the trust is that much bigger.

45:49 I think the deepness of the relationship is probably

45:51 proportional to the trust you have in each other.

45:54 It's very hard to have a deep relationship with no trust.

45:57 Yeah, and a probably a prerequisite,

46:01 maybe a component of trust is vulnerability to where you

46:05 take the leap of being vulnerable with another human being.

46:09 And that vulnerability when reciprocated builds this really

46:15 strong trust and it's a beautiful thing, yeah.

46:18 I personally just, given my position, that's even more challenging,

46:24 being vulnerable with the world and there's a bunch

46:26 of people out there that want to hurt you for it,

46:30 but I think it's worthwhile anyway to be vulnerable.

46:34 It's always worth it.

46:34 The risk is always worth it in some sense.

46:37 Obviously, everyone has a different life they

46:40 have to filter through their actions with, right?

46:42 Because the person that has no, say, social following or anything,

46:45 their risk reward profile could just be local impact,

46:48 which could be just as damning or harming to them.

46:51 And so it's always worth the risk though, in my personal opinion,

46:54 because finding my wife has been obviously

46:57 the most impactful or changing thing in my life.

47:00 Or second most, I'd argue that one night with God would

47:03 probably be the most impactful thing that led to everything else,

47:06 but then the wife would be the next most impactful.

47:08 I mean, I'm cleaning up after myself and stuff now.

47:11 Changed man.

47:12 I'm a changed man.

47:14 Can we try to reverse engineer that moment of you finding God.

47:18 What is it at 19?

47:19 Because it feels like that was a big leap for you to escape the pain,

47:27 to escape the addiction or the beginning of that journey.

47:32 What do you think happened there?

47:34 I think it just felt like I just...

47:36 There was no line that I wasn't willing to cross.

47:38 Everything was fine and just like...

47:41 It just all of a sudden, just in that moment,

47:43 it's just like I had I guess some sort of deep

47:46 fear and understanding like I am going down a path.

47:51 Is this really the path you want to go down?

47:54 And I don't know what the result of that path would be or anything like that.

47:58 I don't tend to speculate on things I don't understand.

48:01 I just know that in that moment I had the option and I just chose...

48:08 I didn't want it anymore.

48:09 Right?

48:10 It's kind of mixed in this whole thing where it's just like I had no value.

48:13 I wrapped up all my meaning or value in having sex or getting laid.

48:16 I had, you know...

48:17 All that stuff, all the things we just talked about,

48:19 that was where all my worth was.

48:21 And that is just such a terrible place to have your worth.

48:25 And it was just all came to a point.

48:27 And I can't tell you the day of the week,

48:29 I can't tell you anything other than it was nighttime

48:32 and I was in South Hedges in Montana State University, go Bobcats, meowww...

48:38 That's about...

48:38 Yeah, that's the sign that we do at football games.

48:40 Don't worry about it.

48:41 But that's all I can really tell you because that night

48:45 was no more or less special than some other night.

48:48 It's just the specialness was I got at least a chance to make a choice.

48:55 Because you find in that advice that you can give to others who are probably,

49:00 there's probably just an endless amount of people

49:03 that are struggling with porn addiction now, young people.

49:06 What advice could you give to them?

49:08 How to overcome it?

49:12 For me to overcome it,

49:14 I had to realize that I was taking something away from my future wife.

49:17 Some people would be like, "Oh, well,

49:19 once you get a girlfriend then you can stop." And it's just like,

49:21 no, because you never stopped the problem.

49:24 You don't stop a problem by replacing it.

49:27 And so I didn't have a girlfriend, I didn't have all that.

49:29 I just realized that I was truly taking away from something from my future wife.

49:34 And I didn't even know my current wife at that time.

49:36 She was not in the picture.

49:37 I'm not even sure if she was at Montana State University at that point.

49:40 And so it's just that's...

49:43 Once I made that realization, I think it went from my head to my heart,

49:47 which they say is the greatest distance in the universe.

49:50 I finally got it.

49:52 And that's really where things change.

49:56 The ability to say like what's gonna help you

49:58 change and all that, I don't know if there's,

50:00 I don't think there's silver bullets, right?

50:02 If someone could offer you a drug...

50:04 I forget who says this phrase,

50:05 but there's this really interesting phrase that goes something like.

50:08 He was a very depressed man and he was struggling

50:12 with suicide and he writes about this in this memoir.

50:15 And he goes to these doctors and the doctors effectively say,

50:18 "Well, here's antidepressants, it's gonna help you." And he says that, "Well,

50:21 the problem was is that scientists told me that I could

50:24 just touch my brain and make myself happy, and that's it.

50:27 They could reach in, they could configure some

50:28 stuff and I'll be happy." He's like, "For me,

50:31 it was a lot like going out into a field

50:33 and being able to take a drug to see the rain.

50:35 I could look out, see the rain, it would fall down, it'd be silvery,

50:39 it'd be beautiful, but all the crop would

50:41 still die because there's not actually any rain.

50:42 I had to discover how to be happy myself." And so for me,

50:46 it's like the reason why I looked at porn is because I was unhappy.

50:49 I was trying to find meaning.

50:50 I was trying to find value in something, right?

50:53 Something that was supposed to finally give me this ultimate satisfaction.

50:56 And it just does not, no matter how hard,

50:59 and no matter how much you think it will, there is no escapade,

51:03 there is no pornography that will ever

51:05 give you that satisfaction you're looking for.

51:07 That's the reason why it's addicting.

51:10 And that's my call to why you shouldn't do it,

51:12 but how to get out of it, I only got out of it by realizing.

51:17 I think that's really brilliantly described.

51:23 You knew that this thing you're doing is preventing you from finding

51:27 your future wife and future wife could mean more even broadly,

51:34 this path to a flourishing, to a beautiful life.

51:39 I think there's a lot of choices we make that are

51:41 just preventing us from opening the door to whatever future.

51:47 I think what's really nice to do is to imagine,

51:51 just like we said with high school,

51:53 that there are a bunch of trajectories in life

51:57 where you'll be truly happy and you need to construct your life in a way where

52:01 you have the chance to travel down those paths.

52:04 And there's a bunch of addictions,

52:06 there's a bunch of choices that prevent us from traveling down those paths.

52:09 So just believe that you're gonna have an awesome life and remove

52:14 from your life the things that are preventing you from walking down that path,

52:20 which is essentially what you did.

52:21 It's a leap of faith that if you let go of porn,

52:26 that a better life is waiting for you on the other end.

52:30 Yeah.

52:30 I definitely can't say how long it will take, a better life.

52:33 But for me, there's no way in the universe

52:36 I could have had the relationship that I have without

52:38 first making those steps because I couldn't value my wife

52:44 in the way that was proper for who she was.

52:49 I would have valued her through the index

52:51 or the lens that I currently was looking through, so.

52:55 Got to ask.

52:56 So I've never done meth.

52:59 I've never done meth.

53:01 That was a great segue by the way.

53:03 (Lex and ThePrimeagen chuckle)- Oh, man.

53:05 I don't know what the fuck I'm doing, honestly, with this interviewing thing.

53:08 But yeah, meth and LSD...

53:11 I did ayahuasca.

53:12 I did shrooms a bunch of times.

53:15 And this topic, I should say that there's a lot

53:18 of, on Twitter and in the tech community in general,

53:22 people speaking negatively about ayahuasca and some positively.

53:27 I think it's such a roll of the dice.

53:30 I had incredible experiences,

53:32 but I don't think I want to recommend it to anyone.

53:35 It's a risk, it's a serious risk.

53:37 It really is a roll of the dice that you could meet your demons

53:41 and they could destroy you or you can meet your demons and let go of them.

53:45 Or you could have experiences like I did, which is never...

53:48 Apparently I don't have demons.

53:49 I'm pretty sure they're somewhere in the basement,

53:52 but I've never met them on drugs.

53:55 I'm always really happy.

53:57 I'm a happy drunk.

53:59 I'm a super happy on ayahuasca, just full of love.

54:02 I don't understand, I don't understand where the demons are,

54:05 but that's my biochemistry, whatever that is.

54:07 And for some others, one trip could be amazing and the next one

54:12 could just completely destroy you and wreck your life.

54:14 So I don't know what the recommendation from that is,

54:17 maybe avoid it, but then all of us die and life...

54:22 I tend to lean into adventure but drugs is...

54:28 If you fuck with the biochemistry of your brain,

54:31 you can really destroy yourself in a way that it's gonna torment you.

54:35 So I would generally recommend that people avoid drugs altogether,

54:42 probably, unless you're a crazy motherfucker.

54:47 Hunter S.

54:47 Thompson.

54:50 What an intro to this topic.

54:52 [Lex] I'm sorry.

54:52 What's meth like?

54:54 That's a great intro.

54:55 I like...

54:56 You are very correct in the sense that there is,

54:59 at least when it comes to hallucinogens,

55:01 there is a wild variance to what you're going to experience.

55:04 And there is no guarantee, there's no...

55:07 Just because you buy the product,

55:08 it doesn't mean you're going to have a good time, right?

55:10 There's a lot of...

55:11 Personally, I find that stuff to be very...

55:16 I believe in the spiritual realm, right?

55:18 I believe demons and angels exist.

55:20 I believe God exists.

55:21 And that whole realm is like...

55:23 I don't know what it opens you up to, but it's much, much different experience.

55:26 Now, some people will be like, "Oh,

55:28 it's just a bunch of chemicals in your brain.

55:28 They all get mixed up.

55:29 LSD just takes all of your pathways and they all go...

55:32 They all get kind of scrambled up in your brain." And it's just like,

55:35 yeah, the experiences are profound.

55:37 I had some really bizarre, very cool, very awful...

55:42 I've had all the experiences in them all.

55:44 I can just tell you that I personally always say the same thing.

55:47 It's like, choices that I made I can never take back.

55:49 I would never take that away from myself because I don't know if I

55:52 would be who I am today without all those experiences going up to it.

55:55 But if you have not had that experience, I'm on your team,

55:58 or at least partially on your team,

55:59 maybe more severely, I don't think you need those experiences.

56:02 I don't think they're gonna...

56:03 You don't have to put yourself through that to make

56:06 a good decisions or to realize that people have value, right?

56:12 You don't have to do that.

56:13 So as far as what is meth like?

56:14 Meth is like...

56:15 If you've ever done cocaine,

56:16 cocaine starts off with like a 15-minute dance party.

56:19 Just (beatboxing) It's just so intense.

56:21 It's so great.

56:22 And then it just followed up with like a five hour, just feeling wiggly, right?

56:26 I don't know how else to describe it.

56:28 Meth is like that except for I didn't

56:30 get as much dance party or any dance party,

56:32 but instead I just got that part for like 12 hours.

56:37 Yeah.

56:38 So did a lot of skateboarding, did a lot of running around, staying all night.

56:44 Would you say it's a pleasant feeling or is

56:46 it more like an escape from the loneliness of life?

56:51 Is it pleasant or negative in the actual moment?

56:56 Not the consequences but in the moment.

56:58 So I mean, this is just a very interesting kind of area, which is that not...

57:05 Universally, you can't say that.

57:07 Often you'll find that there's kind of these two groups of drug addicts.

57:12 There's those that like the opioids and those that like the uppers.

57:16 They typically don't like...

57:17 There's very few people in the drug world that do both.

57:20 They're really just like find their side and they go for it.

57:22 So is meth a thing that everybody's gonna enjoy?

57:25 Well, categorically, as you can see,

57:27 and just how people experience drug addiction, no.

57:31 But for me it's just I had a really...

57:33 It kind of feeds into the ADHD nature of this...

57:37 Because you know you're kind of high energy, you're like always in the moment.

57:39 So it's just like you're in the moment, but it's just like,

57:42 "Oh, I'm in the moment!" Everything's just so intense!

57:45 You just want to really be in the moment.

57:48 And so it's just experiencing that constantly.

57:51 And so was that great?

57:53 Well, some people...

57:55 My wife always tells me this, being nervous or...

57:59 I forget, the anxiety of a situation can also be the same thing as like thrill.

58:04 I forget the exact way.

58:05 She's probably super disappointed that I messed this up.

58:07 But it's like you could perceive those two experiences in very different lights.

58:10 Some people get in front of a crowd and it's thrilling.

58:14 Some people get in front of it

58:15 and it's just the worst experience of their lifetime.

58:17 They would actually literally rather die,

58:19 which is a crazy thing to think about than stand up and speak.

58:22 And so for me, meth was that thrilling side, but at the same time,

58:28 it still didn't quite give me that thing I wanted, whatever I was looking for.

58:34 I'd use it to help try to get that thing I want,

58:37 but it was never giving me that thing I wanted.

58:40 Yeah.

58:40 For me, I've had all really wonderful experiences.

58:43 Do not recommend them.

58:45 But like with shroom-- That's a YouTube policy

58:47 by the way that you have to say, "By the way, do whatever you do, do not do

58:50 a illegal activity."- I-- But I had great experiences,

58:53 but whatever you do, don't do it.

58:55 Mr.

58:55 ThePrimeagen, I have no master.

58:57 I don't have YouTube or whatever.

58:59 I'll say whatever the fuck I want.

59:02 I'm just-- But seriously, you do.

59:05 No.

59:05 No.

59:07 I don't give a shit about YouTube or anybody, honestly.

59:09 I'm just careful about the words I say because,

59:13 just because I had positive experiences, I don't want young people listening

59:18 to this think they should try the experience.

59:20 I think the much more powerful message

59:23 is that life is awesome even without that.

59:25 That's something I definitely experiment with on the alcohol side.

59:31 So for me, I'm an introvert.

59:33 I'm afraid of the world.

59:35 Social interaction fills me with anxiety.

59:37 Alcohol is definitely a thing that helps with that sometimes,

59:41 but I think honestly it's not even the alcohol,

59:44 it's like having to do something while a person is talking to me.

59:48 I could just drink a liquid.

59:50 "Yeah.

59:51 Mm-hmm." There's a social thing.

59:52 With a beer, it's like, "Yeah.

59:55 Uh-huh.

59:55 Yeah, we're having fun." And I think it's...

59:59 For me, it works the same as...

1:00:01 If the liquid actually looks like alcohol,

1:00:05 it does the same purpose often because alcohol...

1:00:10 If you have a whiskey or a beer looking thing,

1:00:14 it kind of sends a signal that we should be having fun.

1:00:17 So we're socializing, right?

1:00:19 We're fucking getting crazy.

1:00:20 And then that mean...

1:00:21 You don't actually need the alcohol.

1:00:23 You can get fucking crazy without the alcohol substance,

1:00:27 but there is some kind of social signaling

1:00:33 that happens when you have a drink in your hand.

1:00:36 So I've been to get-togethers where I'm not drinking,

1:00:39 but just doing a fake drink situation and I can also have fun.

1:00:43 So I've been...

1:00:44 But that said, traveling across the world,

1:00:47 there are times when you get to be able to down a bottle of vodka.

1:00:50 That's very essential for my line of work,

1:00:53 but that's almost like a cultural experience versus a necessary component

1:00:59 of a successful social interaction and one that brings you happiness.

1:01:02 So not drinking...

1:01:04 I think you can have fun and not drink too.

1:01:06 So all of this...

1:01:08 Man, I'm so careful saying drugs have had a good

1:01:12 effect on my life because I think for most people,

1:01:16 no, for majority of people, they will in the long term have a negative effect.

1:01:24 So I think if you were to choose one or the other,

1:01:27 just no drugs and no drinking means one day

1:01:32 you can be the President of the United States, kids.

1:01:37 And I should say...

1:01:38 Oh, man.

1:01:39 That is his funniest line.

1:01:40 That means Diet Coke- Diet Coke is great.

1:01:42 That's his funniest line, which is,

1:01:43 "You would hate me if I drank." Which I just like...

1:01:46 To me, that tickles me to no end.

1:01:47 Just like, "Oh my gosh, that is such a funny line."- Self-awareness

1:01:50 and humor is wonderful there, but yeah.

1:01:52 But I am on your team.

1:01:53 All of the reasons why I used drugs and all that, it's some level of escapism.

1:01:58 I'm sure that's like would be the archetype or the box I'd put

1:02:01 that into or the pursuit of trying to feel something that cannot come from them.

1:02:06 It's like trying to find meaning in your job.

1:02:08 You can find satisfaction in what you do.

1:02:10 That is a very good thing.

1:02:11 You can find satisfaction and be happy with what you've created.

1:02:15 You can be thrilled by the experience, but you cannot find...

1:02:18 I doubt you can find purpose.

1:02:21 Maybe some people in specific jobs.

1:02:23 This obviously have very broad strokes, I'm painting with.

1:02:25 Like if you're an EMT and you save someone's life,

1:02:27 maybe there can be purpose in that whole experience, right?

1:02:30 So I'm not saying all things, but as programming goes,

1:02:33 most programmers, you cannot just simply find your purpose.

1:02:36 And same with drugs, you cannot find that thing you're looking

1:02:39 for, but they are a very great distraction.

1:02:43 And then at some point that distraction comes with a heavy cost.

1:02:46 I think Dr.

1:02:47 Faust would probably know the best about the heavy cost,

1:02:49 but it's just you're making one trade for another and at some

1:02:52 point the bill comes due and that bill can be very, very large.

1:02:57 The other moment you mentioned that I think

1:02:59 is really inspiring is that you failed pre-calculus.

1:03:03 You really struggled in school.

1:03:04 You realize that school is really hard and then eventually

1:03:08 you're able to sort of persevere and, I don't know,

1:03:14 break through that wall of struggle.

1:03:16 Can you, by way of advice, figure out what happened and what kind of advice

1:03:20 you can give to people who are struggling?

1:03:23 Yeah.

1:03:23 I'll paint it in a more clear picture,

1:03:25 or a very fast speed run of it is that I took pre-calculus, failed.

1:03:29 I took pre-calculus again, failed, took pre-calculus again and got a C.

1:03:33 So I took it three times.

1:03:35 Then I took Calc over the summer, so Calc 1.

1:03:39 In that one at the end, the final...

1:03:42 The final was a two-hour final.

1:03:43 I finished it in 30 minutes and that was the highest score in all of the school.

1:03:47 And I proceeded to be the highest scorer in all calculus and Diffy Q.

1:03:50 I was the only person out of 400 people to finish the Diffy Q final.

1:03:55 And I got the highest grade.

1:03:56 And so I was like, I got really good.

1:03:58 So I somehow went from really bad to really good.

1:04:00 And my only...

1:04:01 The thing that I did is that I had to win.

1:04:05 It was not a option.

1:04:06 It was not like, "Oh,

1:04:07 this would be really great." It's like, "I will not graduate,

1:04:10 I will not finish my stuff if I cannot

1:04:13 do this." And so every single day I got up,

1:04:16 I went to my however many hour class it was.

1:04:19 Right after that, I went straight

1:04:20 to the math learning center, did those problems.

1:04:22 When I got home, I just got the book and it had the odd answers in the back.

1:04:26 And I would try to walk through the problems over

1:04:28 and over and over and over again until I absolutely got it.

1:04:31 And it just became this thing where it's just I...

1:04:34 Just simple rote memory took over and the ability

1:04:38 to just effectively have the times table,

1:04:39 but for calculus, all stuck in my head.

1:04:42 Inverse trig substitution, trig substitution, doing Taylor and MaClaurin series.

1:04:45 All those things, kind of, just over and over and over and over again.

1:04:48 Eventually they became easy.

1:04:50 They became very easy.

1:04:52 It's just that I had to cram it in there.

1:04:54 And some people, you hear these stories, whether they barely show up to class

1:04:58 and they get As, I've never been that person.

1:05:00 I've always been the person that has to sit down,

1:05:02 read through everything, and I'm bad at abstract concepts.

1:05:06 I like the concrete into the abstract, not the abstract into the concrete.

1:05:10 Very bad at talking about things theoretically, then trying to apply them.

1:05:13 But if I can do it once literally,

1:05:15 then it's really easy for me to go into the abstract.

1:05:17 And so it's just like...

1:05:18 For me, it's just I had...

1:05:20 There's no substitute for the hours.

1:05:23 So if I were to give advice, it's just that you have to have time in the saddle.

1:05:29 Hour after hour will make you slowly better.

1:05:31 And at first, it's crushing.

1:05:33 It's defeating and it's not fun because you are bad at it.

1:05:37 But then at some point you're just not bad

1:05:39 at it if you can just do it long enough, and you'll start getting okay at it.

1:05:42 And then at some point you might even get good at it.

1:05:44 And when you get good at something, it feels amazing.

1:05:47 There's like an exploratory thing.

1:05:49 If you've ever played a musical instrument,

1:05:51 you stop having to think about all the little teeny things

1:05:55 you have to do to be able to play something correctly.

1:05:58 And you start thinking about how you can explore that space.

1:06:01 It's like it's a completely different problem.

1:06:03 And same with programming, programming has an identical kind of feel to it.

1:06:07 It's just like you'll cross that barrier

1:06:09 and it becomes magical as opposed to a chore.

1:06:12 Yeah, once you cross that barrier, somehow other things become easier.

1:06:16 But then if you want to have a truly successful life,

1:06:18 then you find the next barrier.

1:06:20 Yeah.

1:06:20 The next barrier.

1:06:21 Yeah, I've always been the same.

1:06:22 Everything's come really hard.

1:06:25 Yeah, I've had no free lunches.

1:06:27 Everything's just been a lot of, a lot of pain and struggle.

1:06:32 I think somebody said that, on this topic,

1:06:36 that you think work smarter not harder is a phrase that you dislike.

1:06:43 Somebody on Reddit told me this.

1:06:44 Yeah.

1:06:44 I don't just dislike it.

1:06:45 I hate that phrase.

1:06:47 Okay.

1:06:49 Tell me about your hatred.

1:06:50 How do you feel?

1:06:52 The reason why I dislike that is

1:06:54 that there is kind of a hidden suggestion there,

1:06:57 which is that you already know what smarter is, so just do that.

1:07:01 That actually things should be easy.

1:07:03 You should just not have to try that hard.

1:07:05 You should just do the quick, easy, obvious path and boom, it's done.

1:07:09 It's like I've never experienced that in anything I've done.

1:07:13 Everything is actually really hard and most

1:07:15 of the time I don't even know what I'm doing,

1:07:17 so therefore I don't even know what smart looks like.

1:07:20 And so for me, the only way I can learn how to work smart is by working very,

1:07:25 very hard and knowing that there's no shortcuts.

1:07:27 And then when I finally figure out what smart is,

1:07:31 when I work smart and work hard, it is that much better.

1:07:36 I think there's a deep profound truth to that.

1:07:39 There's a lot of these phrases that just drive me nuts in our society.

1:07:42 But that one is...

1:07:43 Sorry, that one is really accepted if you can just

1:07:45 linger on it because it really bothers me as well.

1:07:48 So one, which is a really nice thing you said,

1:07:51 the presumption there is things should be easy and you're

1:07:55 a failure if you don't see the easy path.

1:07:58 That's kind of the implied thing.

1:07:59 Just work smart, daug, why are you putting in all those hours?

1:08:02 And so it makes a lot of people that struggle

1:08:04 feel like they're a failure because I don't see it.

1:08:08 And then the choice they have, I'll just go with the...

1:08:12 I'll just be lazy and then maybe the profound truth will come to me somehow.

1:08:16 And yeah, I don't think I've ever, and I don't think I've met great engineers

1:08:23 that find the smart way without the extremely hard work.

1:08:28 The annoying thing about those great engineers is then looking back,

1:08:32 they forget the hard work because they remember all

1:08:35 the joy they now are experiencing from all the efficient,

1:08:39 smart work they figured out how to do.

1:08:41 They forget...

1:08:42 So when they give advice they give the stupid advice of, well,

1:08:46 just do it like the easy way.

1:08:50 And here's the easy way.

1:08:51 But no, no, no, no, no.

1:08:52 You have to put in the hours.

1:08:56 Musical instrument is a beautiful example of guitar and piano.

1:08:59 I've put in, I don't know how many thousands of hours.

1:09:03 And now when I'm explaining stuff jiu-jitsu as well,

1:09:10 I sound like one of those people just relax in jiu-jitsu.

1:09:14 By the way, just relax is a really wonderful

1:09:17 thing for physical endeavors like piano and so on.

1:09:19 But to learn how to relax your hand, how to relax your mind,

1:09:24 your body and use whatever the biomechanics

1:09:30 of your body to apply the correct kind of leverage and the timing and all

1:09:34 that, that takes thousands of hours of learning.

1:09:37 Just to learn how to relax takes a lot of really hard work.

1:09:40 In jiu-jitsu that takes many months of getting your ass

1:09:46 beat over and over until you ride the bus home crying.

1:09:52 Your ego completely shattered and destroyed.

1:09:56 And then a little element is figured out late that night or next morning.

1:10:04 And from the depression,

1:10:06 there's this little plant that grows this flower of insight.

1:10:11 And you use that insight to then get

1:10:13 your ass kicked again all next month and year.

1:10:18 And then you grow and grow and grow.

1:10:19 And from that you discover how beautifully simple jiu-jitsu is or Judo is,

1:10:24 just speaking for myself, or piano or guitar.

1:10:27 And then yes, the profound truth or the mastery

1:10:33 of a skill feels simple when you finally arrive to it,

1:10:38 but the path for most people is going to be a hard one.

1:10:42 I think I should make an addendum to the phrase,

1:10:45 I think the phrase should be "Work hard, get smart."- Nice.

1:10:48 That's a t-shirt.

1:10:50 That's what it should be.

1:10:51 Yeah, agreed.

1:10:52 Okay, that was a tangent of a tangent.

1:10:54 Can I say one more phrase, cultural phrase that I absolutely hate?

1:10:57 [Lex] Yes.

1:10:58 "The journey is better than the destination." Everyone's heard this.

1:11:03 Just take one second to apply what that means.

1:11:06 That means forever starting from now,

1:11:09 you are only going towards a place that's worse.

1:11:12 (Lex laughs) Right?

1:11:13 That literally is what it means.

1:11:16 Powww.

1:11:17 Enjoy the journey, celebrate the destination,

1:11:20 that should be what it would be but no.

1:11:22 People say these phrases, they're everywhere.

1:11:23 There's these very shallow phrases that have no logical bounds to them.

1:11:27 You're just like, what does that, why would

1:11:29 the journey ever be better than the destination?

1:11:32 I think this might even be a C.S.

1:11:34 Lewis quote is that C.S.

1:11:35 Lewis was like, nope, this is terrible.

1:11:37 The journey is not in fact better than the destination.

1:11:41 I love the demotivational posters.

1:11:44 "Progress, moving forward is better than moving backwards

1:11:48 even if you're still going nowhere." There's a lot-

1:11:51 (ThePrimeagen chuckles)- I feel that one so much being

1:11:53 in California for a few years, that is painful.

1:11:57 [Lex] Positivity, if it doesn't break you today,

1:11:59 don't worry, it will try again tomorrow.

1:12:03 It's just a lot of really great posters.

1:12:04 I didn't even know this was a thing.

1:12:06 [Lex] This is a thing.

1:12:07 Oh my gosh, I want that.

1:12:09 Yeah.

1:12:10 Hey.

1:12:10 Hi, this is ThePrimeagen.

1:12:12 One thing that I forgot to mention in this podcast,

1:12:15 which feels just so foolish to me for forgetting,

1:12:17 is just what a big role my mom played in my life.

1:12:20 She had to work 18 hours a day after my dad died.

1:12:23 She really made her house be able to survive.

1:12:26 I always looked up to her and I always thought her amazing.

1:12:28 And she really was the reason why when I

1:12:30 decided to get my butt kicked back in gear, she's just someone who I looked

1:12:34 to as an internal inspiration for me to continuing,

1:12:38 to keep on going because I really wanted to make her proud.

1:12:40 And all those years of just high energy effort,

1:12:43 I really wanted to make sure that she knew

1:12:45 that I was just so dang appreciative for it.

1:12:48 So hey, I just wanted to say thank you.

1:12:51 Love you, mom.

1:12:52 For people who don't know, you worked in Netflix.

1:12:57 By the way.

1:12:58 By the way.

1:12:59 Now, how did you go from there,

1:13:01 from the hardship that we mentioned, from the struggle,

1:13:04 from the addictions and so on to a place where you

1:13:09 were working at this incredible engineering

1:13:11 company and building cool shit there?

1:13:15 So tell the Netflix story.

1:13:18 Yeah, so I kind of alluded to it earlier that I wanted

1:13:21 to do my own startup so for, I forget how long it was,

1:13:24 one or two years or two and a half years, built a startup.

1:13:28 PHP, jQuery, everyone's favorite languages all put together.

1:13:32 You can solve math stuff with jQuery.

1:13:34 So I just was totally into just non-stop doing that.

1:13:37 This is the height of Stack Overflow.

1:13:39 I was asking really dumb questions on Stack Overflow like what is more pythonic?

1:13:43 And then you get a bunch of up votes and try to steal a bunch of karma away,

1:13:47 all the fun stuff to do.

1:13:49 Good times.

1:13:50 And I was just so into it breathing and I just breathe it in, breathe it out,

1:13:55 and that's what I do all day every day.

1:13:56 And so it's just like non-stop building of a startup.

1:13:59 Ultimately that startup failed and so I had to go get a real job.

1:14:03 Can you say what the startup was?

1:14:05 It is so wild thinking about it in the past.

1:14:08 Before I tell you what it is, I want to tell one quick thing about my dad.

1:14:11 My dad in the early '90s, like '91, '92,

1:14:15 was building kind of a phone card company

1:14:18 where you'd be able to pre-purchase long-distance minutes.

1:14:21 Now, if you remember the '90s at about what '97,

1:14:25 '98, '99, 10-10-220, all those different things down the center,

1:14:29 all those companies where you can pre-purchase long-distance minutes

1:14:33 kind of came out and were very, very big.

1:14:35 And so my dad was six years early

1:14:38 to that notion and ultimately his startup failed.

1:14:41 But he was just really early to something that would catch on really,

1:14:45 really big specifically in the telecommunication space.

1:14:48 Me as I grew up and did my own startup,

1:14:51 I did a startup where was text message marketing.

1:14:52 This was in 2010 where you could receive,

1:14:55 say texts about various deals, all that kind of stuff.

1:14:58 And of course, 10 years later now you don't stop

1:15:02 receiving texts and text message marketing is all the rage.

1:15:05 And so I also, much like my father had a startup

1:15:08 in the telemarketing space in which was just like a half decade too early.

1:15:12 So is it fair to say you're almost always ahead of your time,

1:15:15 that you're a visionary of sorts?

1:15:17 No, in fact, I am not ahead of my time.

1:15:19 I just got, some would say I got unlucky on that situation.

1:15:23 But it seems so obvious to me at that time when I was doing it,

1:15:27 80% of phones were dumb phones.

1:15:29 Most people had flip phones.

1:15:31 When I went and sold Via Text, is what the name was of that specific product.

1:15:36 And we had the short code via text too, so it was pretty clever, six digits.

1:15:42 When I went out and sold it, I only had a flip phone during that time.

1:15:45 I didn't even have a smartphone because they

1:15:48 were kind of untenable for a lot of people.

1:15:50 So it's kind of just wild times to think about.

1:15:53 But then after that, obviously had to get a real job.

1:15:56 We were living in an apartment right next to campus, Bozeman, Montana.

1:16:01 And the guy below us must've been on some amount of drugs.

1:16:05 He threatened to kill us several times,

1:16:06 would just scream and just lose his marbles all the time.

1:16:10 Very unhinged man, angry downstairs man is what we call him.

1:16:13 One time my wife dropped a battery, double A.

1:16:16 Okay, so we're not talking about a B battery or D battery.

1:16:19 We're just talking about a double A, drop it, pa, land on the ground,

1:16:22 "I'm going to kill you." Like crazy, absolutely unhinged behavior down there.

1:16:27 So I had to go get a real job, we needed to move out of there.

1:16:30 We were gonna start our life.

1:16:31 And so I worked at a small place Schedulicity,

1:16:34 which I kind of talked about the boredom there.

1:16:36 Got to go to a place called WebFilings

1:16:38 where I'm working just tons and tons of hours.

1:16:40 During all that time I'm still trying to figure out startups.

1:16:42 Did one where you could pre-wish your friend's birthday messages,

1:16:46 and then it would automatically send it via Facebook beforehand.

1:16:50 We called it Greet Feed.

1:16:51 It was pretty clever.

1:16:52 Nonetheless, I say all that story because

1:16:56 everything that I was doing was exploring,

1:16:58 building, finishing things, working, learning about corporate life,

1:17:02 learning how to communicate in corporate life,

1:17:04 being able to be successful at a job,

1:17:07 learning about a bunch of technologies that we're about.

1:17:10 And one of the big technologies during that day, specifically 2013 was RxJS,

1:17:14 if you remember that one, RxJS,

1:17:16 that's a link from C-sharp kind of ported over to JavaScript.

1:17:22 And for people who don't know, I guess C-sharp, what is its closest neighbor?

1:17:25 Java, is Java-- They obviously just took Java and ripped it off at one point,

1:17:29 but now it's such a dynamic, interesting language that it seems like it could be

1:17:34 a really cool bounds of practical versus not practical.

1:17:37 It's just I'm not really into wearing pleated

1:17:39 pants and programming at a Microsoft house, so.

1:17:42 Is pleated pants a requirement?

1:17:44 [ThePrimeagen] I think so.

1:17:44 Okay.

1:17:45 We'll get back to this.

1:17:45 Can we just get back-- All right.

1:17:49 Triggering me here.

1:17:50 WebFilings.

1:17:50 So anyways, WebFilings was that's where I had to do all

1:17:54 the matrices stuff and build systems and just kind of all that.

1:17:57 And it really pushed me because they also wanted me to do 60 hours a week.

1:18:01 It was not very healthy work-life balance.

1:18:04 It was very hard work.

1:18:05 And kind of that really hard work going to cutting edge stuff,

1:18:08 really understanding the world,

1:18:09 really made it so that I was able to just be able to talk about stuff very

1:18:14 commandingly because we had to build really complex

1:18:16 state machines for the UI for what we're building.

1:18:18 And so when I went and started getting

1:18:21 a LinkedIn and all that, inevitably just due

1:18:24 to the fact that I've touched all these technologies

1:18:26 and I had some sort of paper trail saying,

1:18:29 I've touched these technologies or Microsoft.

1:18:31 Dang it, Lex.

1:18:33 Pleated pants.

1:18:34 Pleated pants reached out.

1:18:34 No, Netflix reached out and said, "Hey, I see you've done RxJS.

1:18:39 We do a lot of it.

1:18:41 You want to come and interview with us?" And I was always told

1:18:46 that you should never reject kind

1:18:48 of a handwritten personal invitation to interview.

1:18:51 This was way before bots and even the bots

1:18:53 were pretty obvious to tell they were bots.

1:18:55 This was a manager at Netflix, Jeff Wagner, first manager ever.

1:18:59 And he just wrote a really nice note and just like,

1:19:01 "Hey, I see you're doing a lot of these things.

1:19:03 We really need help with JavaScript.

1:19:05 I would love for you to come interview.

1:19:07 We're even using a lot of RxJS if you're interested in that." And so I was like,

1:19:10 all right, I can come and I'll interview.

1:19:12 And lo and behold, interview went on and I called my wife

1:19:17 I think halfway through the interview and I was just like defeated,

1:19:22 absolutely crushed because I said...

1:19:25 And she might remember this but I said, "We now have to make a decision.

1:19:29 Are we actually going to move to California or not?"

1:19:31 Because I already knew I had the job at that point.

1:19:33 I was just knocking them out of the park.

1:19:36 I was doing a great job on that.

1:19:37 And so I just knew for a fact, I'm getting a job at Netflix.

1:19:42 There's this thing that people always get so freaked

1:19:44 out about when it comes to interviews and all that.

1:19:46 And I luckily somehow avoided this.

1:19:48 I don't get test anxiety,

1:19:49 I don't get any of that because when I go into these situations,

1:19:53 my only goal is to show the things I already know.

1:19:56 And so it's like I walked into this situation,

1:19:58 I've been preparing for this 80 hours a week for the last five years.

1:20:02 So just walk in and I'm just showing the things I know.

1:20:05 And it was perfectly fitting for Netflix at that time period in the 2013,

1:20:09 early JavaScript days on television.

1:20:11 And so it was just awesome, just worked out perfectly.

1:20:15 Got hired there.

1:20:17 So we're in California with Netflix.

1:20:18 This is San Francisco.

1:20:19 Los Gatos.

1:20:20 So if you're familiar,

1:20:22 so classic symbol people do which is this is San Francisco, Oakland, San Jose,

1:20:29 Los Gatos is just like a little bit, kind of a little bit below,

1:20:33 little bit south of San Jose, same mega contiguous city.

1:20:36 Yellowstone is in Montana, Yellowstone, the show.

1:20:38 Yeah, yeah.

1:20:39 Yeah.

1:20:39 So is it basically like that, Kevin Costner riding on a horse?

1:20:43 Were you riding on a horse to campus?

1:20:46 No, but I love those stereotypes.

1:20:48 Actually to be completely fair, when I was 15 years old,

1:20:51 I was driving around on what is now a very busy populated

1:20:56 street shooting gophers out the window of our car with a 22.

1:20:59 So it's like Montana was a different place at one point than it is today.

1:21:04 And there's plenty of parts of Montana that's still very rural,

1:21:06 still kind of more of that old world.

1:21:09 So yeah, a little bit, you know, you can get whatever you want from Montana.

1:21:12 As far as culturally goes, I'm not really sure the best way

1:21:16 to put the difference between California and Montana.

1:21:19 It's just different expectations.

1:21:21 One thing I can really appreciate about California,

1:21:24 or at least when I say California, I mean the Silicon Valley.

1:21:27 Because obviously LA and the Silicon Valley,

1:21:30 very different attitudes, very different mindsets.

1:21:33 You can't really compare one to the other.

1:21:35 One thing I can say that's really positive about the valley is

1:21:38 that everybody is operating on this idea of trying to build or create something,

1:21:43 and there's an energy to it that's very exciting.

1:21:46 You meet somebody and they have a startup and they're working on the startup.

1:21:49 And it's very exciting.

1:21:50 And there's a lot of negative aspects to that, and we can all

1:21:54 agree that our entire life being

1:21:56 commercialized has probably not been that great.

1:21:58 But the kind of the experience of being

1:22:00 there and everyone's excited to build something, it's a really cool experience.

1:22:03 Yeah, it's great.

1:22:04 It's really great.

1:22:05 The excitement, the energy.

1:22:06 Yeah, Montana doesn't have that.

1:22:08 I have an admiration,

1:22:10 a romantic admiration for the shows like Yellowstone being out on nature.

1:22:13 It's beautiful.

1:22:14 I like riding horses.

1:22:15 Somebody also said...

1:22:16 Reddit is full of wisdom about you.

1:22:19 Some of it could be fake news,

1:22:20 but something about horses and this kind of thing.

1:22:23 You like horses, you like riding horses?

1:22:24 We have horses on...

1:22:25 Our neighbor had much more hilly land and one of the horses broke its leg,

1:22:32 so they had to put it down.

1:22:33 And so we just said, "Hey, we are on much flatter land.

1:22:35 You can just have your horses in our property."

1:22:38 And so we just have horses that run around on our...

1:22:41 What about milking cows?

1:22:43 Somebody asked about cattle and cow.

1:22:47 So I've only had open cows.

1:22:49 If you don't know, cow means girl,

1:22:51 open means that, hey, they've tried to get the cow pregnant.

1:22:54 The cow did not get pregnant first try.

1:22:56 And so they're calling that gene, they're getting rid of that gene.

1:22:58 The open cow is gonna now go out to pasture, pasture for the year and then get

1:23:03 turned into delicious T-bone steaks and various things.

1:23:06 And so we would house open cows on our property.

1:23:10 So no, there's no milking of open cows.

1:23:13 [Lex] Okay.

1:23:14 They'd be very upset if you tried to milk

1:23:16 an open cow because they're not milking cows.

1:23:17 You have to get that cow pregnant.

1:23:20 And then once you get it pregnant,

1:23:21 you have to kind of put it into this permanent state of milking and all that.

1:23:23 And it's a little bit more complicated than say what we did,

1:23:27 which was just cows on eating grass and I didn't have to touch them.

1:23:32 Okay, well, that's wonderful.

1:23:34 Reddit is not a great place for wisdom about me.

1:23:36 They're gonna give you the craziest answers.

1:23:39 We'll return to Reddit time and time again, my friend.

1:23:43 So yeah, you took the leap into Netflix.

1:23:45 So what was that like?

1:23:47 It was, you know...

1:23:49 This is one of those things where when you talk about it,

1:23:51 people love to trivialize this because it's like,

1:23:54 oh, you're taking a leap of faith by going into a FANG company.

1:23:57 And in 2013, sounds super risky.

1:24:00 My wife was 36 weeks pregnant.

1:24:02 We had to travel to a place where we knew not a soul.

1:24:06 We were about to have our first kid.

1:24:07 We didn't even have a doctor.

1:24:09 If you don't know what having a baby does,

1:24:10 you kind of want a relationship with a doctor.

1:24:13 There's a whole thing that goes on there.

1:24:15 So it was a really hard and great experience.

1:24:20 So I went to a job in which their culture deck...

1:24:22 So during this time,

1:24:23 this is where Netflix still had kind of that old generation X feel to it.

1:24:29 Their culture deck was hire fast, fire fast.

1:24:32 It was very in your face about like, "Hey, this is how we operate.

1:24:34 You don't meet the standards,

1:24:35 we kick you out." So it's like I'm leaving a place where

1:24:38 it's more secure to go to a place I don't know anybody,

1:24:41 to a job that's bold in its claims about firing

1:24:45 everybody with a wife that's just about to have a baby.

1:24:48 And I'm from Montana and every Montanan's

1:24:51 born with a natural dislike of California.

1:24:54 So there's all these things kind of flowing

1:24:56 into it where it's just going to be like,

1:24:57 wow, this is a very intense experience.

1:25:01 And it was hard for sure.

1:25:04 It wasn't just some easy simple experience that we were just like,

1:25:07 oh, well, I work now at FANG.

1:25:09 We had to kind of work through that.

1:25:10 Having a kid was very difficult.

1:25:11 Our first kid was very difficult.

1:25:14 Not having any family around to ever help you took

1:25:17 a much larger toll on my wife than me, for sure.

1:25:21 What was the technical learning curve for you?

1:25:22 You showed up in your plaid pants, dressed up?

1:25:26 [ThePrimeagen] Yeah.

1:25:27 What did you have to learn about the Stack?

1:25:28 Because Netflix, I imagine is this incredible infrastructure.

1:25:33 It has to deliver just a huge amount of data.

1:25:36 I'm just blown away by Netflix but also YouTube.

1:25:42 These companies that have to deliver, serve a huge amount of bits.

1:25:52 Netflix has it easiest.

1:25:53 Out of all the companies Netflix by...

1:25:54 Even though you could say maybe we beat YouTube in view hours,

1:25:58 I'm not sure if we do,

1:26:00 but let's just pretend Netflix has 5X more view hours than YouTube.

1:26:05 Whatever it is, Netflix has a fundamentally

1:26:07 easier problem than all other companies.

1:26:09 And let's get back to that.

1:26:10 I'm gonna first tell you about the Stack,

1:26:11 but I'll tell you why it has a fundamentally easier problem.

1:26:13 So when I first got there, they gave me my PlayStation three.

1:26:18 My boss said, "Go learn some code.

1:26:20 Come back to me in a couple of days and tell me what you've learned.

1:26:22 And then I'm going to start giving you bugs to fix."- Wait,

1:26:24 wait, PlayStation three, what are you talking about?

1:26:26 Well, I was on the TV team.

1:26:27 I had to go plug in a PlayStation and start launching programs onto

1:26:31 the PlayStation three and figure out how to work Netflix on a television device.

1:26:36 Oh, so you have different kinds of devices.

1:26:37 Why PlayStation three, is other different-- It's just 2013.

1:26:40 That's what you have.

1:26:41 Any devices that plug into the TV?

1:26:42 Okay, cool.

1:26:44 Yeah, not as many TVs had Netflix,

1:26:45 let alone what they called their Darwin app, which is their new application.

1:26:49 So if you bought a VIZIO earlier that year, you'd get their older one there.

1:26:52 It's called Plus UI.

1:26:53 You get their older version.

1:26:55 And so not many had the newer version.

1:26:57 We no longer supported Plus or we never actively developed on Plus,

1:27:00 we only did stuff on Darwin.

1:27:01 And so I had to learn that whole stack, the backend or the middle end,

1:27:06 the middle layer between the actual back-end

1:27:08 and the front-end was written in Groovy.

1:27:10 And as I went around, Groovy is if you're not familiar with Jenkins,

1:27:14 then you've probably never interacted with Groovy.

1:27:17 But Groovy is a JVM language.

1:27:20 It's a very interesting language, but here's how it got started at Netflix.

1:27:27 Oh, it's Apache.

1:27:28 Apache Groovy is a powerful object-oriented programming language

1:27:30 that runs on the Java virtual machine released in 2007.

1:27:34 It has evolved to become a versatile language

1:27:36 that combines both static and dynamic typing capabilities.

1:27:40 All right, so the AI is kind of lying to you.

1:27:42 Groovy is not a powerful great language.

1:27:45 That statement makes it seem way cooler than it actually is.

1:27:47 You'll meet one out of 100 people that have touched Groovy that said,

1:27:51 "Oh yeah, Groovy's great." The other 99 will be like, "Heavens forbid,

1:27:55 you ever have to touch that language." So when I got there, nobody,

1:27:59 not a single soul at Netflix,

1:28:01 those 40-some engineers had any idea how Groovy pretty much worked.

1:28:06 Somehow people just hacked together these scripts

1:28:09 and put them all on there and it worked.

1:28:11 And this was before there was a Groovy RX port.

1:28:16 We wrote our own version called WX.

1:28:18 It was a nightmare, observables, all these things.

1:28:21 I remember one time they told me that, "Oh yeah, with RX it's really easy.

1:28:25 You just say what you need to do.

1:28:26 It maps out and boom, boom, boom,

1:28:27 everything will run and all that." And I was like, "Oh wow,

1:28:30 really?" So all I did was go like observable.sleep one because I

1:28:36 just wanted to see it sleep and then do the next thing.

1:28:38 And it turns out when a thread sleeps itself, no thread can wake it up.

1:28:42 And I just turned off all of staging because I ran it like 10 times.

1:28:45 Like, oh, it's not responding.

1:28:45 Oh, it's not responding.

1:28:46 Oh, now it's not even coming back.

1:28:48 Broke all of staging for everybody.

1:28:50 So no developer could work for the rest of the afternoon

1:28:52 because I locked up all the instances because it turns out no,

1:28:55 it was in fact not multi-threaded.

1:28:57 Every assumption we've been told is a lie.

1:28:59 No one had any idea what they were doing.

1:29:00 It was a wild time.

1:29:03 And so I just simply naturally gravitated towards

1:29:06 that because I'm good at print off debugging.

1:29:08 I'm good at doing those things.

1:29:09 So I was like, yeah, I'll just figure this out here.

1:29:10 I will do this.

1:29:11 So I had the rewrite how we do the data structure

1:29:14 on the front-end for the TV from what is called a LoLoMo,

1:29:18 list of list of movies into LoLoRoMo,

1:29:20 which is a list of list of recommendation objects for movie.

1:29:24 Why would we need to do that?

1:29:24 Think about this.

1:29:25 You have two lists, one has Live Free Die Hard,

1:29:28 Bruce Willis because you love Bruce Willis.

1:29:30 The other one has Live Free Die Hard

1:29:31 because you want tough men doing tough jobs.

1:29:34 Well, during those days we'd only have one

1:29:36 way we could show evidence why you wanted it.

1:29:38 So we couldn't say, "Oh, because you liked this other movie." You'd go

1:29:41 to that one and say the same thing.

1:29:42 So we had to add one level of indirection

1:29:44 where we could decorate the video with the recommendation information.

1:29:49 Okay, so you can abstract away into the space

1:29:51 of recommendation versus the space of movies directly.

1:29:53 Yeah, so you can't hang it off the video because obviously then

1:29:56 it would be the same for everything that shows that same video.

1:29:58 [Lex] That's amazing.

1:29:59 I had to do all this and I wrote it in Groovy,

1:30:01 and I just did it-- Such a funny name.

1:30:04 And people were like,

1:30:04 "How did you write this in Groovy?" And I was just like, "Well,

1:30:08 I read the language reference for a day

1:30:10 and then programmed it." Well, what do you mean?

1:30:13 It was a very radical language, shall we say.

1:30:16 And so I just simply became the person that knew these things,

1:30:19 so they just give me more and more jobs with that.

1:30:20 And so that's kind of how I excelled,

1:30:22 being the person that was willing to do the thing that no one else was.

1:30:25 Yeah.

1:30:25 Can you actually speak to the print off debugging.

1:30:27 You walk into a system and there's a lot of systems in the world like this.

1:30:32 Twitter was like this, when Elon acquired Twitter and the rolls

1:30:37 in and there's this old junky code base that's just like a giant mess,

1:30:42 and you have to basically do print off debugging.

1:30:44 What's the process of going into a code base and figuring out what the fuck?

1:30:48 Well, how does this work?

1:30:48 What are the flaws?

1:30:49 What are the assumptions?

1:30:50 You have to reverse engineer what all these other engineers did

1:30:53 in the past and the mess across the space of months and years,

1:30:57 and you have to figure out how all that works in order to make improvements.

1:31:02 The reason why...

1:31:03 I've always just been good at print off

1:31:04 debugging because one of my first kind of side

1:31:06 quest jobs that I got was writing robots

1:31:07 for the government when I was still at school.

1:31:10 And so I'd kind of do this contractually for so many hours a week.

1:31:15 And my boss, Hunter Lloyd, great professor by the way, he just said,

1:31:19 "Hey, here's your computer, here's the robot, here's how you plug it in.

1:31:23 Here's how you run the code.

1:31:24 Can you write the flash driver, the ethernet driver.

1:31:26 Can you write the planetary pancake motor?

1:31:28 Here's some manuals, I'm missing some.

1:31:31 Just figure it out, I'll be back." So that was government work for me.

1:31:34 So I was like, okay, I'll figure all these things out.

1:31:35 And I figured them all out and the only way

1:31:38 to really get anything out of the machine was to print.

1:31:41 And so it's like I had to become

1:31:43 really good at printing my way through problems.

1:31:46 And so that kind of became this skill I guess I adopted is that I

1:31:50 can just kind of print off debug my way through a lot of these problems.

1:31:53 Obviously I'm not a game developer,

1:31:54 probably a different world probably should use...

1:31:56 I think John Carmack was on here and talked

1:31:58 to how great the debugger is, different world.

1:32:00 Because when I was at Netflix,

1:32:01 there's machines that exist somewhere on AWS, I'm not logged into them.

1:32:05 I don't even know how to log into them.

1:32:06 I'm not even sure if I have credentials to log into them.

1:32:09 They run once somewhere and I have

1:32:10 to figure out what happened and why it's happening.

1:32:12 So it's like I'm gonna become...

1:32:15 This is what I've trained for.

1:32:16 I'm a print off debugging champion.

1:32:17 So it's just like I could just run through these things

1:32:19 really quickly and figure out why they're happening the way they're happening.

1:32:23 You're a special human.

1:32:24 I think that's an incredible skill set to have

1:32:25 to be able to drop in into any code base,

1:32:28 drop into any situation, and do print off debugging.

1:32:31 Meaning you're in a dark room and you're feeling around

1:32:34 that room to try to figure out what the room is.

1:32:37 Well, I had the code so it's like I can kind of blueprint what's happening.

1:32:40 I don't understand the services or anything,

1:32:42 but you can start guessing pretty quick as to what's going wrong.

1:32:46 Right, but then the print side of that helps you confirm your intuitions,

1:32:52 test your intuitions and build up more and more information.

1:32:55 And then you start to accumulate this bigger picture from that, what

1:32:59 the edge cases are that break the system and not.

1:33:03 I think that just that kind of space,

1:33:07 that kind of situation is intimidating for a lot of engineers.

1:33:11 They break down at that point.

1:33:13 I think it really is a powerful thing to be able to come into a code base,

1:33:17 that's generally a skillset of like, very few of us start from scratch.

1:33:23 [ThePrimeagen] Yeah.

1:33:23 And actually this is the fundamental problem

1:33:25 of web development and in general where they're like,

1:33:30 I don't know what's going on.

1:33:31 I'm going to write my own thing from scratch.

1:33:34 As opposed to actually doing print off debugging on the space of languages,

1:33:39 on the space of problems,

1:33:41 because there's a lot of wisdom and solved problems already in this code base.

1:33:47 It's a much more important skillset to understand,

1:33:50 to learn from the mistakes and the wisdom of the past,

1:33:54 of the ancestors that came before and build on them

1:33:58 as opposed to throw it all out and start from scratch.

1:34:01 This is something obviously you see a lot with a JavaScript

1:34:03 framework that comes out and you won every single day.

1:34:06 I have a very great story about that, that this is what

1:34:09 I think has shaped me the most about my perspective of other devs.

1:34:13 There's this dev and he always just wrote things in just

1:34:16 what I thought was such a bizarre and weird way, and this had to do with Falcor.

1:34:20 So our data fetching library for Netflix.

1:34:23 This would run on mobile.

1:34:24 So I had to write in Objective-C.

1:34:26 It had to run on television and it had to also run on web.

1:34:30 So it ran on everything.

1:34:31 And me and one other person were responsible for this thing working.

1:34:34 And the request side where we'd have

1:34:37 to de-dupe the information that we already have,

1:34:40 the requests that were pending and the new data.

1:34:42 So I had to figure all that out based on what someone's requesting,

1:34:44 and then just only optimally request the stuff that we don't have.

1:34:49 He wrote in such a goofy way and I'm thinking, man, this guy is just...

1:34:53 What a goofball.

1:34:54 So I delete it all and I start writing and I'm like,

1:34:57 look at how much nicer this is.

1:34:58 It's looking so good.

1:34:59 I'm like, ooh, there's that one edge case.

1:35:02 Okay, I can see why he wrote it this one way.

1:35:04 That's not a big deal though.

1:35:05 The rest of my code's really great.

1:35:06 By the end of it, I'm like,

1:35:08 I literally almost line for line just reproduced what he already wrote.

1:35:12 It's slightly different towards my style, but I just wrote the same code.

1:35:15 I'm like, I'm an idiot.

1:35:17 I am the idiot in this situation because it was already a solved problem.

1:35:21 I just didn't take the time to learn what he did.

1:35:23 Instead, I relearned what he did by rewriting the entire thing.

1:35:26 I think that's a skill set that is extremely important for people to learn.

1:35:30 I see that in myself.

1:35:31 That's a constant struggle for myself.

1:35:33 When facing a code base, for example, but this applies generally in life,

1:35:39 where somebody did a lot of work to do a thing,

1:35:42 you should invest a huge amount of time and get really

1:35:45 good at figuring out what they did, why they did it.

1:35:49 Do a lot of print off debugging to understand what they did.

1:35:52 It's a much more efficient way to understand

1:35:55 a problem deeply than to start from scratch.

1:35:57 Even though there's a constant temptation to start from scratch,

1:36:01 because starting from scratch is fun.

1:36:03 You do get the puzzle solved and all that kind of stuff.

1:36:07 It's just not going to be the right thing to do.

1:36:11 Usually pain is the right thing to do,

1:36:13 and it is for most people painful to understand other people's code bases.

1:36:18 I highly recommend starting from scratch if you want to understand a concept.

1:36:22 You don't know how an HTTP server works,

1:36:25 create a TCP socket, learn how to parse HTTP.

1:36:29 It'll become very easy and you'll go,

1:36:30 this is the reason why whenever I get a request, I have to await the text.

1:36:35 I now understand why the text is for whatever reason not there.

1:36:39 I get it.

1:36:39 I now understand it.

1:36:40 And so you kind of gain these new

1:36:43 perspectives just by simply parsing something out.

1:36:47 All right.

1:36:47 Back to the wisdom of Reddit.

1:36:49 Apparently there are memes and legends about your programming arc in Netflix.

1:36:55 This Falcor system you mentioned, somebody, I think it was Teej,

1:37:00 how do you pronounce his name by the way?

1:37:01 [ThePrimeagen] Teej.

1:37:02 Okay, Teej.

1:37:03 TJ would be his name, but we call it Teej or Telescopic Johnson.

1:37:07 Oh wow, so many names.

1:37:10 DDoS, distributed denial of service attacks,

1:37:13 you apparently were able to accomplish

1:37:15 the simplified version of that of just DoS.

1:37:18 That's a legend.

1:37:19 So you basically broke down the system somehow.

1:37:23 Yeah.

1:37:23 Yeah.

1:37:23 Can you tell the story of that?

1:37:24 I'd be glad to.

1:37:25 So this Falcor, so there's this Falcor business,

1:37:28 and I kind of, I did discover the bug before anybody else

1:37:32 and I did report it to security and it was so bad.

1:37:36 It actually got its own name, Repulsive Grizzly Attack,

1:37:39 and they even give examples of how to do it.

1:37:43 Effectively what it means is that there is a request

1:37:45 that targets both memory and CPU and will destroy.

1:37:48 There you go.

1:37:49 Look, how Netflix...

1:37:50 The next one down was the article that was actually written.

1:37:52 I don't get mentioned, which is a little bit upsetting considering I was the one

1:37:55 that discovered it and told everybody how bad it was.

1:37:58 Anyways, and had the right to fix for it or the first fix.

1:38:02 So this is how it works,

1:38:04 is that you can do something pretty similar, I believe with GraphQL as well.

1:38:09 It has the same kind of danger.

1:38:11 Any of these kinds of RPC request as much

1:38:14 or as little of the data as you would like frameworks,

1:38:17 are vulnerable to this kind of attack.

1:38:19 So with Falcor, what you do is you give it an array.

1:38:22 That's an array is called a path, and that's the path to the data.

1:38:25 But sometimes you don't want to have to write out, I want movie,

1:38:28 I want row zero or list zero or row zero column zero title.

1:38:33 I want row zero column zero description.

1:38:37 You don't want to have to write out all that.

1:38:38 So instead you could just be like,

1:38:42 I want rows zero through 10, columns zero through 10, titles and descriptions.

1:38:48 So you can write in a very compact,

1:38:50 nice little format and it'll give you all that data.

1:38:52 It'll go to the server.

1:38:53 The server will fill that all in and give it to you.

1:38:55 Oh, dang it, list three, it only had three videos in it.

1:39:00 So what happens when I try to re-request the data?

1:39:02 Well, I need a way to be able to tell

1:39:04 my system that you'd have requested the data and there's nothing there.

1:39:08 So call this like a boxed value.

1:39:11 So it's gonna be like type, something, value, there's nothing there.

1:39:15 We've already requested it and there's nothing there.

1:39:16 It's like a sentinel value, if you will, a boxed value.

1:39:19 And we have this little special flag weed pass called materialize.

1:39:24 Meaning that when you ask for a path,

1:39:27 we will make sure we fill it out so we don't accidentally erase anything.

1:39:30 And at the very end we'll say okay, the thing does,

1:39:33 the request you've made has already been made and there's nothing there.

1:39:36 Well, what happens if I request rows 0 through 10,000 columns through 10,000,

1:39:41 one more item through 10,000 and then a whole

1:39:44 bunch of properties and then ask it to materialize?

1:39:46 Well, I'm about to go create billions of objects in the JVM,

1:39:51 and what happens to the machine?

1:39:53 It stops running.

1:39:54 And then if we try to JSON...

1:39:55 Even if it could create a 'em all,

1:39:57 we then ask it that JSON serialize, it's not gonna do it.

1:40:01 It's impossible.

1:40:02 And so that was the attack vector, is a simple wild loop would've taken down

1:40:08 and held down Netflix for a very long time.

1:40:12 Because one request would kill one machine on AWS.

1:40:16 And so that means it would just turn it all off.

1:40:18 And this was on the website?

1:40:19 This was on TV, this was on mobile.

1:40:23 This was profound.

1:40:24 And here's the worst part,

1:40:26 it was in production for years so we couldn't even roll it back.

1:40:29 There was no like, "Oh crap,

1:40:31 let's just roll back to two weeks ago and we'll fix forward and figure out." No,

1:40:34 it's like we could roll back to 2011.

1:40:37 That's our option is 2011 and that's it.

1:40:40 So we had to figure out a way forward and all that.

1:40:42 And so it was like...

1:40:45 The amount of problems that would've happened

1:40:48 if someone would've discovered this is unstatable.

1:40:52 Just to be clear, the infrastructure that's serving the videos would shut down.

1:40:57 Yeah, the UI, you couldn't perform any actions in the UI.

1:40:59 You surprisingly could still stream video but you would

1:41:02 never be able to get to a video to stream.

1:41:03 Because every action you would take would be completely shut down.

1:41:06 And so it wasn't a DDoS because you didn't need a bunch

1:41:09 of computers to try to overwhelm the system by making a bunch of requests,

1:41:12 one request, one machine.

1:41:14 If we had 50 machines serving the millions of requests,

1:41:17 it'd only take 50 requests to shut down the entire UI.

1:41:20 Isn't it possible to do DoS or DDoS on basically any software system.

1:41:25 Like defending against all the, you know,

1:41:28 closing all those attack factors is probably really difficult.

1:41:31 If you take any sufficiently complicated software system,

1:41:36 there's probably so many ways to overwhelm it.

1:41:40 Yeah, I mean, this is why people use CloudFlare.

1:41:42 I think DHH said it best, which is like,

1:41:45 we have our website and we have a strong bodyguard on the outside.

1:41:48 So CloudFlare has a bunch of utilities all built in.

1:41:51 Because obviously this is why everyone hates all

1:41:54 these Bluetooth devices that connect to the internet

1:41:56 because they just turn into attack vectors where

1:41:58 people use those to DoS or DDoS other sites.

1:42:01 And so you don't need something sophisticated,

1:42:03 you just need a bunch of requests to come in and you can take down websites.

1:42:06 And so that's why these fronts are

1:42:07 really good at discovering where these problems are.

1:42:10 But DoS is a bit different, because it doesn't have to be overwhelming

1:42:14 by using resources with a whole bunch of requests.

1:42:17 It really just means simply that there's a denial of service attack.

1:42:20 One of them could be there's a RegEx attack that existed

1:42:22 where CloudFlare actually did it to itself and shut itself down,

1:42:26 which is there's a RegEx expansion attack where given the right RegEx,

1:42:29 if you know someone's running a specific RegEx,

1:42:32 you can actually provide input that is maximally

1:42:34 bad and that thing goes to super processing.

1:42:37 It takes 10 seconds to process a single request,

1:42:40 then you only need to make hundreds

1:42:42 of requests and you shut down the whole service.

1:42:43 It's not like you need some giant machinery to make one trillion requests.

1:42:47 You only need just some small amount to completely destroy a service.

1:42:50 And so there's...

1:42:52 The web is an extremely difficult place to do it correct.

1:42:56 This is super fascinating.

1:42:58 I do also wonder how many ultra competent, what is it,

1:43:04 black hat hackers there are, versus the good guys versus the bad guys.

1:43:10 How many bad guys there are and what is the average...

1:43:15 What is the distribution of skillset on the bad

1:43:17 guy side that are constantly trying to attack?

1:43:20 I assume there's probably a huge number of just really simple ones,

1:43:23 script kitties, right?

1:43:23 Just people trying to just do things.

1:43:25 And then there's a huge amount of social

1:43:27 engineering that just goes in where hacking's done,

1:43:29 not with a computer but just by one of the classic ones.

1:43:33 Kevin Mitnick had this one in his book which was,

1:43:35 you'd call up somebody pretending to be like,

1:43:37 "Charlene, we're doing some auditing and I think your pin's out of date on file.

1:43:43 Is it 2323, still?" And they're like, "No,

1:43:46 it's 4747." You're like, "Oh, thanks Sharon." Boom.

1:43:49 You just hacked him, right?

1:43:50 The classic.

1:43:51 People love correcting bad information.

1:43:54 This is like a standard.

1:43:55 So there's all these ways people hack.

1:43:57 And so my assumption is that there are really great white hat hackers,

1:44:01 there's really great black hat hackers.

1:44:03 But the vulnerability space, the harp,

1:44:05 the thing is that discovering a vulnerability and you don't let anyone know,

1:44:12 the white hat hacker still has to make that same discovery.

1:44:15 And that's where I think the real thing is

1:44:17 that black hat hacking in some sense has a fundamentally

1:44:20 easier job or at least a job in which they

1:44:22 can take advantage of for much longer periods of time.

1:44:25 One's the process of discovering who's breaking the system.

1:44:28 The other one's trying to figure out how to break the system.

1:44:30 And it seems like most software is held together by toothpicks

1:44:34 and glue and there is a lot of dangers in every piece.

1:44:37 And also the social engineering aspect, that's a real attack vector.

1:44:42 I think that's the attack vector that will do

1:44:43 in the longterm the most damage in the world.

1:44:47 Especially as AI tooling becomes easier and easier to convince people at scale,

1:44:52 sort of do that email Grandma.

1:44:55 I think that's a really serious attack vector,

1:44:57 like human psychology and all that.

1:44:59 I assume whenever there's a girl that approaches me,

1:45:02 it's some kind of social engineering project,

1:45:05 some attack vector, some intelligence agency.

1:45:08 In fact, I'm pretty sure-- We're back to A Beautiful Mind, aren't we?

1:45:11 Beautiful Mind?

1:45:12 Yeah.

1:45:12 I have a whiteboard upstairs that I calculate everything,

1:45:15 everybody's trajectory and move.

1:45:18 You're not wrong though with the attack vector, especially in the day of AI.

1:45:21 One thing that I don't think a lot of people

1:45:22 are talking about as we integrate more and more AI is

1:45:26 that prompt injection is an extremely hard thing to defend

1:45:31 against because it's not really clear how you defend against it.

1:45:34 If it's just a, at the end of the day word calculator make word come out.

1:45:38 If you can figure out the proper word calculator input,

1:45:40 it might just break its bounds and start

1:45:43 doing something it's not supposed to do.

1:45:44 And there's a whole future word.

1:45:46 There's all these products that are going

1:45:47 to be vulnerable to things they never thought about.

1:45:51 It's one thing where you forget an edge case while you're programming.

1:45:54 Now you have to guess what people might be able to think

1:45:56 of making something that has access to a system be able to do.

1:46:00 And you don't have a way to reason about it.

1:46:02 Its reasoning came from Reddit,

1:46:03 and other words that it's read and how to put things together.

1:46:06 This is a very...

1:46:07 It's a massive space that's gonna be happening.

1:46:10 It's why I'm personally thinking don't give too many powers yet.

1:46:14 We don't know the attacks that are about to happen.

1:46:18 Yeah, the more power we give to software systems, the more damage they can do.

1:46:21 That certainly is the case.

1:46:22 But the more awesome they could do, and that's the knife's edge that we all walk

1:46:26 along as a human civilization together, hand in hand.

1:46:30 Will we flourish or destroy ourselves?

1:46:33 Question mark.

1:46:35 Folks on Reddit, the good folks on Reddit,

1:46:38 demanded that I ask you about the time you broke production.

1:46:42 Is this related to Falcor?

1:46:43 Did you break production?

1:46:44 Is this fake news?

1:46:45 I've broke production quite a few times.

1:46:46 I've broken productions for so many stupid reasons.

1:46:48 One time I broke production because I came up in the PHP.

1:46:52 And PHP Static means static for the lifetime of the PHP

1:46:56 and PHP was the lifetime of every request, right?

1:46:59 That's why PHP was so inefficient was that every request was its own instance,

1:47:03 and therefore static memory was for the lifetime.

1:47:05 I guess I never put that together.

1:47:07 And so I had some objects that I made static because I was like,

1:47:10 oh I just need this for the lifetime of the request.

1:47:12 And lo and behold, those weren't lifetime.

1:47:15 A whole bunch of bad data got all over the place.

1:47:17 People were showing up saying they were from all

1:47:18 these different countries and everything was all wrong because I just...

1:47:21 Whoopsie-daisies.

1:47:22 I just made a whole conundrum with that.

1:47:24 So that was one time I did it.

1:47:25 Another time is I took down,

1:47:27 if you were on the homepage on the website waiting for Lady

1:47:32 Gaga's video to come out and you were watching the countdown go down,

1:47:36 if it reached zero, the billboard would freeze and it wouldn't work.

1:47:40 If you refreshed it, it would work.

1:47:42 But the reveal, (chuckles) the big reveal,

1:47:46 I screwed that up and my boss got real upset

1:47:48 and so did other people in Hollywood got upset about that one.

1:47:51 That was like a, "My bad.

1:47:53 Sorry, Jeff Wagner, again." I remember that one.

1:47:55 I remember that one specifically.

1:47:56 One time I released a bug where again on the billboard,

1:47:59 if you pressed add to my list, I accidentally programmed in an infinite loop,

1:48:05 and your whole webpage would just freeze.

1:48:09 Are some of these bugs difficult to discover until you

1:48:11 started-- That one seems really easy looking back at it.

1:48:14 [Lex] Infinite loop?

1:48:14 Yeah.

1:48:15 And we actually, during those days we had

1:48:17 manual QA that are supposed to go through everything.

1:48:19 So I didn't feel as bad because my manual QA counterpart also missed it.

1:48:24 We all missed it.

1:48:25 But it was just so simple.

1:48:26 Just press that button, boom.

1:48:27 It just completely freezes the website.

1:48:30 Polluting the code with global variables that are holding values,

1:48:35 SPHP I think allows you to do,

1:48:37 that's a tricky one to discover, because you rely on it,

1:48:41 then there could be somebody else assigns a value to it.

1:48:44 Yeah, it's a data race everywhere.

1:48:46 And I just didn't understand...

1:48:48 In my head static was like, "Oh,

1:48:49 this is for the life." I was just so locked into the PHP world

1:48:52 at that time that I just made just such a, looking back on it's so obvious.

1:48:58 But during the time, it's hard.

1:49:01 So in general, pushing to production, I talked to Pieter Levels about this.

1:49:04 He, I mean, obvious he's operating as mostly a solo developer,

1:49:08 but he often on the website said thousands,

1:49:12 not, hundreds of thousands of people use.

1:49:15 He often ships to production, pushes to production,

1:49:20 meaning just no testing, just like push to fix.

1:49:24 What are the pros and cons of that approach in general to you?

1:49:27 What do you think?

1:49:28 It's obviously much easier the smaller your organization is.

1:49:31 I think no one would argue that sentiment.

1:49:34 If it's just you working on a singular project,

1:49:37 it is obviously much easier for you to push

1:49:40 directly to production because you are the only one working.

1:49:43 You know all the ins and outs and if something were to break,

1:49:45 you would discover it.

1:49:46 So to me that makes sense.

1:49:48 I think the way he operates is perfect for what he does.

1:49:51 You couldn't take what he does and move it

1:49:53 to say Microsoft or Netflix or Google because that would obviously...

1:49:56 It would just be a disaster,

1:49:57 just due to the amount of people all pushing to production.

1:50:00 And so I personally love that.

1:50:03 I think that you have to gauge both the application

1:50:07 you're building and its complexity and what you're pushing,

1:50:10 and how many people are working on it.

1:50:11 I think those all go into how you can do that.

1:50:14 Because not all applications are created equal either.

1:50:17 That application I was making was zooming and scrolling

1:50:19 where we had all of our own everything.

1:50:21 It was a very deep heavy logic app,

1:50:25 and that was regardless of what was happening on the website,

1:50:27 most of the code was library code.

1:50:30 And that becomes way harder if you don't have a good

1:50:33 test suite and stuff to run before you push it out.

1:50:35 Because when you squeeze that ball,

1:50:38 different things come popping out in different areas.

1:50:41 And that's a very harder problem than say if you're doing

1:50:45 more of a heavy visual one because a heavy visual one,

1:50:48 you're affecting just this one area's visual stuff and you

1:50:51 can test it and that's normally the end of it.

1:50:54 Whereas, you know...

1:50:55 So it depends on the coupling and everything.

1:50:57 So I love his approach by the way.

1:50:59 I have such mad respect for anyone that operates

1:51:01 that way because I think is a great way,

1:51:04 it just is so good because it breaks this notion that tech Twitter has that, oh,

1:51:09 well, you have to use all these expensive services,

1:51:11 you need to use all these things because if you don't use all this stuff,

1:51:14 if you're not using the latest version of React,

1:51:15 if you're not using the latest version of this, you're

1:51:18 simply not going to make it as a startup.

1:51:20 It's impossible.

1:51:20 And it's just like, no, no, that's not software.

1:51:23 Most of software isn't the new stuff.

1:51:25 Most of software is old crappy software that someone has to maintain,

1:51:30 and it actually is really, really great and has lots of really hard problems.

1:51:32 And if you look at it differently, it's actually fantastic.

1:51:35 For people who don't know his tech stack,

1:51:38 in terms of web development is PHP, jQuery and SQL.

1:51:42 Yeah, all great stuff.

1:51:44 I'm just surprised he still uses jQuery just given

1:51:46 the fact that at this point on the modern web, everything is, I mean,

1:51:49 you have document query selector and ad event listener click, right?

1:51:53 It pretty much has everything you already need.

1:51:55 It had DOM content load, all the reasons I used jQuery back in the day

1:51:58 was adding a click on a button was hard.

1:52:02 You had to deal with IE7, IE8, IE9.

1:52:05 Those are hard differences.

1:52:07 Whereas now, it's just so easy.

1:52:08 I'm just surprised it's even that.

1:52:10 That's definitely a trade-off I have, I still use the exact same stack,

1:52:14 PHP, jQuery and different flavors of SQL.

1:52:18 But the question there is,

1:52:22 you keep using jQuery because you can get the job done

1:52:25 really fast and there's no significant performance hit that you detect.

1:52:29 So like why swish to something else?

1:52:31 But it's always probably, as we'll talk about, good to explore and to learn.

1:52:36 Not all tools are great at solving all problems.

1:52:39 And so what you think is really...

1:52:42 The problem is you run into this trade off,

1:52:45 which is you have some tool belt that you're

1:52:48 very adept with, you know all the ins and outs.

1:52:51 There's no unknown unknowns, but there's no surprises in this.

1:52:54 You know what you're building, you know what you're getting into.

1:52:57 You will go through and you'll be able to solve the problem.

1:53:03 But if you ever use a different language or a different experience,

1:53:06 you can find that some things are able to represent states way easier,

1:53:09 in a way more efficient way.

1:53:11 And you can solve problems really efficiently in some versus the other.

1:53:15 And so it's like, if you don't take the time to explore as well,

1:53:17 you could be missing out on something that makes you

1:53:19 twice as good on this one specific problem like subset.

1:53:22 And so I value being able to look at all problems.

1:53:26 And so I don't want to get stuck on one thing,

1:53:27 though, I see why people do, which is for the efficiency sake.

1:53:31 Let's just return to the infrastructure

1:53:33 of the platform of Netflix and, speak more generally, Netflix, Twitch, YouTube.

1:53:37 Anytime I use any of these services,

1:53:39 I'm just blown away by the infrastructure it takes to deliver this service.

1:53:45 YouTube and Twitch are unique,

1:53:47 versus Netflix where the creators can roll in themselves and upload stuff.

1:53:52 So on the consumption side, YouTube has over 100 billion views a day,

1:53:57 over one billion hours watch time.

1:54:00 But on the creator side, one million hours of videos are uploaded every day.

1:54:05 One million hours.

1:54:07 It's like you have to service both and you have to deliver everything.

1:54:15 It's just incredible to me.

1:54:16 Can you maybe speak to your own intuition, just zooming out on it,

1:54:19 what it takes to deliver that kind of infrastructure?

1:54:23 For me, the thing that I find vastly

1:54:26 complicated and I can't imagine the engineering hours,

1:54:29 is how do you even create an edge in that situation?

1:54:32 And what I mean by an edge, when people say this phrase,

1:54:36 if you're unexperienced, an edge is where you deliver data.

1:54:39 You want that edge to be as close

1:54:40 to the customer as possible because that's where the data lives.

1:54:42 And then the communication between the customer

1:54:44 and what you're doing is really, really small.

1:54:46 Obviously the speed of light adds up, the amount of hops adds up,

1:54:49 the amount of services that you have to remotely call adds up.

1:54:51 They all add up and they all add inefficiencies to the system.

1:54:54 So something like YouTube,

1:54:55 they want to be able to serve that data as quick as possible,

1:54:59 but their data changes constantly and relevance is

1:55:02 almost directly tied with the newness of the item.

1:55:06 So it's like how do you even cache these things out?

1:55:08 How are you doing this?

1:55:08 So they must have such an incredible caching network that I can't even...

1:55:13 I can't even fathom what it takes to do that.

1:55:15 That just to me is just so impressive.

1:55:16 A million view hours in how many different resolutions with how much data?

1:55:21 What is a million view hours?

1:55:22 Is it 4K million view hours,

1:55:24 along with 1080p, along with 720p, along with 1440p?

1:55:28 That number is an insane number.

1:55:31 Actually, it is brilliant what you said, which is for YouTube often the new

1:55:35 thing is extremely important to show to everybody.

1:55:40 And so, you can't rely on caching or trivial kind of caching.

1:55:45 Yeah.

1:55:45 You have to deliver the new thing as quickly as possible.

1:55:49 Yeah, I mean, it's incredible.

1:55:51 So there's the entire system,

1:55:54 the recommendation system that knows each individual human watching YouTube

1:55:59 and it has to integrate into that the new thing,

1:56:02 while also caching this incredible cluster

1:56:06 of possible videos that you're potentially interested in.

1:56:10 And integrate into that ads in the case of YouTube and so on.

1:56:16 It's a really tough problem because you have

1:56:18 to think what is the cash hit rate on this?

1:56:21 Because the problem now actually comes down to space,

1:56:24 space actually becomes a real problem.

1:56:26 How many hundreds of petabytes do they have that they have for like,

1:56:31 "Okay, what do we cache and where do we cache this?" The number,

1:56:34 I think in the terms of gigabytes or maybe megabytes,

1:56:38 they have to think in probably versions of bytes

1:56:41 I don't even know the name for right?

1:56:43 It's such a different problem and that's why I said Netflix.

1:56:45 Netflix has a much easier job when it comes to caching.

1:56:48 So if you've never looked it up,

1:56:50 it's called OCA and that we know what videos we're releasing,

1:56:54 we know what videos are hot in specific areas.

1:56:57 It's a very limited set.

1:56:58 We're not going to all of a sudden get, "Oopsies,

1:57:00 we got a million new view hours." We don't

1:57:02 even have to worry about that as a problem.

1:57:03 So it's like, "Okay, we know Stranger Things season five's about to drop,

1:57:07 we're gonna pre-cash Stranger Things season five in every single

1:57:11 OCA across the world because that thing's about to get hammered."

1:57:15 And so it's like it's able to do such a different

1:57:17 decision-making than what you have to do with something like YouTube.

1:57:21 And then Twitch is even more wild because now you're actually ingesting video

1:57:25 and trying to make it go out all at the exact same time for all

1:57:28 video and you have to transform that video from whatever format and whatever

1:57:32 the bit rate is into something that's more efficient in the system like that.

1:57:36 Hats off to Twitch engineering, because that's some serious work.

1:57:41 And here's some asshole, Lex, coming out and tweeting about YouTube features.

1:57:46 So like, (chuckles) Listen...

1:57:51 You're not wrong on the features you asked for, though.

1:57:53 I think this is an engineering problem of how do you allow fast iteration

1:57:59 and addition of features that shouldn't have

1:58:02 to be integrated or impact the whole code base.

1:58:05 So at the edges of the code base improve on certain features,

1:58:10 without having to consult the mothership of the code.

1:58:16 It's the large team, right?

1:58:17 That's the fundamental problem.

1:58:19 When you get into YouTube size,

1:58:21 there is the team/organization that deals with data warehousing.

1:58:25 There's the team/organization that deals with delivery.

1:58:28 There's a team/organization that's like the middle layer, how you even...

1:58:32 They're gonna be like the little micro-surfaces to talk to these places.

1:58:35 Then you have this front-end engine...

1:58:36 So for a small feature, you have to get middle team,

1:58:41 you have to get back-end team, you have to get all these things.

1:58:43 Quick example, Netflix.

1:58:45 Are you familiar with the dystopian, Black Mirror?

1:58:49 Yeah.

1:58:49 Okay.

1:58:49 Season one, episode one.

1:58:50 Do you know season one, episode one?

1:58:51 Everyone who watches Black Mirror typically knows this episode.

1:58:54 Okay, yeah.

1:58:54 I don't remember what it is.

1:58:56 Forgive my language, but they call it the pig-fucker episode.

1:58:58 Oh yeah, of course.

1:59:00 [ThePrimeagen] Once you've seen the episode, you will then know this episode.

1:59:03 Well, when Netflix adopted it, I got pulled into a room,

1:59:05 there's like a VP, a VP, a product designer, a VP,

1:59:08 and they said, hey, we're about to release our own version of Black Mirror,

1:59:13 season three, I think at that time.

1:59:15 We need episode one, season one to not be the first thing people see.

1:59:20 So let's just reverse the season order.

1:59:24 That required me...

1:59:26 I had like 20 engineers I had to gather together to be able to have this happen.

1:59:30 And that's just the problem of big companies is

1:59:32 that eventually every little thing has to become its own team.

1:59:36 And so even small...

1:59:37 There's no such thing as a small feature.

1:59:39 Reversing the order of the dropdown that selects the seasons

1:59:43 is a meeting with a bunch of VPs and engineers.

1:59:46 That's really interesting.

1:59:47 Yeah.

1:59:48 There's got to be a way to accelerate that.

1:59:49 The natural scaling of a company and the bureaucracy that grows,

1:59:53 yes, slows that down.

1:59:54 But just having seen Elon work a lot,

1:59:56 his teams are able to still keep it very fast, even as the company grows.

2:00:01 There's got to be a process to doing that, especially for, yeah,

2:00:10 for the pig-fucker episode.

2:00:13 I don't know where that's in the priority list,

2:00:15 but for important things like that, you should be able to do that quickly.

2:00:18 I don't know.

2:00:19 Can you speak to how would you do that?

2:00:22 Well, I can tell first how it was done.

2:00:24 Remember, so at a place like Netflix, there would be...

2:00:26 I think that at that point it's called, a product called Dexter.

2:00:29 I can't remember.

2:00:30 There's our actual movie metadata warehouse

2:00:34 that's gonna be highly integrated with Hollywood,

2:00:36 that's gonna be, where that side is able to manage all that.

2:00:39 So I'm like, "Hey, you need the ability to mark things that need

2:00:42 to be reversed because we're gonna run into this a bunch." And we did.

2:00:45 We ran into quite a few topical shows that all need to be reversed and all that.

2:00:48 And so it's like, "We need to be

2:00:50 able to reverse episode numbers, season numbers.

2:00:51 We need to be able to hide season or episode

2:00:54 numbers." Like in the case of the Chelsea Handler Show,

2:00:57 it was like a daily show,

2:00:58 so it's like you don't need episode numbers, you just need the latest one.

2:01:01 And so there's this whole problem that exists.

2:01:03 And so it's like, okay, you need to work on that for your UI over there,

2:01:07 then you need to be able to store that data.

2:01:08 Then we need to be able to go to the people that can actually

2:01:11 get the video data out of that and provide it to our service layer.

2:01:16 I need to go talk to them and convince them they need

2:01:18 to be able to give me the new methods and everything to do that.

2:01:20 Then I need to be able to go write the methods to get it down,

2:01:23 and then I need to go to the UI and make that accessible.

2:01:25 Now I need to go to the website people,

2:01:25 I need to go to the mobile people, I need to go to the TV people.

2:01:28 And so it's like...

2:01:29 Yeah.

2:01:30 You can see this thing like snowballing.

2:01:31 And for us, the big thing that Netflix did that was so well is

2:01:35 after I met with these people that were high level, I was the captain.

2:01:39 "I'm the captain now." So I went to all these teams and said,

2:01:42 "Hey manager, I need an engineer.

2:01:43 We need to get this done within the next couple of months

2:01:45 because we got Black Mirror coming out." So she would go, "Okay,

2:01:48 here you go." The map team, I need someone to help me with being able

2:01:51 to get data out of the LoLoMo for this.

2:01:54 And so it's like, "All right,

2:01:55 you're working with this engineering." I'd go to the BMS team,

2:01:57 "Okay, I need this engineer." I'd go to the billboard team,

2:02:00 "I need this engineer." I go to all these little

2:02:02 places to get all these little pieces of data.

2:02:04 And then I was the captain, I was like,

2:02:05 "You're working on this, you're doing this, you're

2:02:07 doing this, you're doing this, I'm doing this.

2:02:08 Let's go." And so it's like that worked.

2:02:11 And we were able to go pretty fast for a big company.

2:02:13 And the fact that it required 20 engineers to do such a simple task,

2:02:17 we were able to do it in, gosh, I'd say about three weeks worth of effort.

2:02:21 But that was still...

2:02:23 I thought that was amazing, comparatively, to how many people move.

2:02:26 Well, because you have the freedom of the agency to do it.

2:02:28 You said the captain of the ship.

2:02:30 That's really powerful.

2:02:30 For big companies, that's a risk.

2:02:32 Because you can fuck it up.

2:02:34 You might not see the bigger context legally or any,

2:02:39 the bigger context of the impact on the industry

2:02:41 or all the contracts that are made, all that.

2:02:43 So it's a risk, it's a risk, but it's a risk you have to keep taking.

2:02:46 And then when you fuck up, you fix,

2:02:48 and then maybe pay the cost legally for that, whatever.

2:02:51 But the long term, that risk pays off because

2:02:56 you're going to keep creating a better and better product,

2:02:59 evolving where the industry is going,

2:03:01 constantly innovating ahead of where the industry is going and so on.

2:03:05 Yeah.

2:03:06 And not only that, I think one thing that is just so important is that, yes,

2:03:09 the product will get better,

2:03:11 but the people that you hire and the people that you

2:03:14 keep around are better because they're the ones that show maturity.

2:03:17 They're the ones that can just...

2:03:18 You give them something and they can rally the troops and make something happen.

2:03:22 That's a very great group of people to hire.

2:03:25 And so you also naturally select out great

2:03:27 engineers that aren't just simply good at coding,

2:03:29 they're good at coding and they're good at explaining

2:03:31 and they're good at convincing, and they're good...

2:03:33 And you have to create a very lean audience that can move fast.

2:03:38 And I think for great engineers, having to wait for like, "Okay,

2:03:44 let's schedule a meeting for next Wednesday

2:03:46 with the VPs and..." That destroys their soul.

2:03:50 And they either don't want to contribute anymore

2:03:51 or they leave the companies or they just tune

2:03:54 out and take the golden handcuffs and just

2:03:57 buy a nice house and focus on a family.

2:04:01 And I feel like I would die under that...

2:04:03 Honestly, that is my death sentence is where

2:04:06 it's just that there's no reason to try, there's no reason to do anything.

2:04:09 I'm just gonna go in there, effectively zombie through my day and call it...

2:04:14 I don't want to live like that.

2:04:15 I want to feel like I'm trying to do something.

2:04:19 I should also mention on top of that, so you've brilliantly

2:04:22 laid out how incredible the challenge that Netflix has to solve.

2:04:25 On top of that with YouTube, the metadata thing,

2:04:30 because users are able to upload video and there's an API where

2:04:35 they can upload automatically and change all this kind of stuff automatically.

2:04:38 Every one of those things is an attack vector, as we mentioned.

2:04:43 That's something they have to consider seriously on the engineering side.

2:04:46 And on the legal side, they can get into trouble all kinds of ways.

2:04:51 So they have to consider all of that, which is fascinating.

2:04:56 The legal side is obvious, but it's not really like...

2:04:58 I would never have initially thought someone would, say,

2:05:01 upload images that you're not allowed to own or have.

2:05:04 But that guarantee you that happens.

2:05:06 Then you have the whole kid side, right?

2:05:08 I think about when you mark something as kid-friendly,

2:05:10 how many times have they snuck porn into a Taylor Swift video or whatever?

2:05:13 That was like a few years back, there was that whole Taylor Swift or whatever.

2:05:16 I forget what it was, I thought it was Taylor Swift.

2:05:18 But there'd be these mock videos that'd come up and then, boom.

2:05:21 It's like, that is such an awful problem and I'm so happy

2:05:25 that is not a problem I have to try to figure out.

2:05:28 Yep.

2:05:29 Okay.

2:05:29 So yes, YouTube and Twitch and Netflix are doing an incredible job.

2:05:34 You eventually chose, the madman you are, to leave Netflix and to start on a new

2:05:43 journey of being a wolf pack of one, start streaming.

2:05:46 What was that?

2:05:46 What was the story of that?

2:05:49 So I was streaming for almost seven years now.

2:05:53 It started actually at Netflix.

2:05:54 We did a charity, Extra Life,

2:05:56 shout out to Extra Life for starting my streaming career,

2:05:58 effectively is just you stream and whatever money you raise,

2:06:01 it goes to Kids with Cancer research.

2:06:03 They are a great charity in the sense that they take no

2:06:07 overhead and they raise their own donations for their website and everything.

2:06:09 And so it's a very great, straightforward charity.

2:06:11 Really love what they've done.

2:06:14 It was super cool because I live in South Dakota now,

2:06:17 but I actually could choose a hospital directly where the money goes to.

2:06:20 So there's a direct impact from A to B.

2:06:24 So it's a pretty cool organization.

2:06:26 And so my friend, Guy Cirino, Nice Try Guy is what I like to call him,

2:06:30 he was probably the single greatest engineer I've ever met in my lifetime.

2:06:34 And he was just like, "Hey, come do this.

2:06:36 We're going to all do this." So I played Fortnite.

2:06:37 And so before I did that, I was like, oh, I better learn how to stream first.

2:06:41 I better get affiliated so I can take subscriptions.

2:06:44 And then if anyone gives me a subscription, I'll also pay that forward.

2:06:47 So June 2018 or something like that, I start,

2:06:51 I start streaming and I start streaming some Fortnite.

2:06:55 End up getting affiliated, end up doing the whole extra life thing.

2:06:58 I end up really enjoying it.

2:07:00 I'm like, "This is a lot of fun." I'm playing Fortnite at that point.

2:07:02 Okay?

2:07:02 So mind you, I'm a Fortnite streamer at that point,

2:07:05 and I start really enjoying it.

2:07:06 I keep doing it and then one day I decide I'm gonna do some programming.

2:07:09 Because I really love Vim and I think I'm fast at Vim,

2:07:13 and maybe people think programming is kinda cool.

2:07:15 Because there was no really programming section at that point.

2:07:19 And I did it.

2:07:21 I had like 30 people show up, which was just...

2:07:23 And it felt like incredible numbers at that point.

2:07:25 So I was like, "Oh my gosh,

2:07:27 there's like 30 people watching me program." And so it just kept

2:07:30 on going and it kept on happening and it just kept on growing.

2:07:33 And I did it for year after year.

2:07:35 I would do my job, I would come home, I'd eat dinner with the kiddos,

2:07:40 I would read them Lord of the Rings and the Hobbit during that time,

2:07:43 I'd read to them for a half an hour, then I'd set that down.

2:07:45 And then three nights a week I would program until like 2:00 in the morning

2:07:49 or play video games until 2:00 in the morning

2:07:50 streaming and building up this whole side thing.

2:07:52 And I did this for a long, long time,

2:07:55 and then eventually it just kept working out

2:07:57 so well and I started making YouTube videos.

2:07:59 And then that started getting better.

2:08:01 And it was just a long, long grind until April of last year.

2:08:05 I went to the Streamer Awards and I

2:08:08 got to announce the programming category and Pirate SoftwareOne.

2:08:11 It was awesome.

2:08:12 It was a great time.

2:08:13 And during that time he gave me a challenge coin and just said,

2:08:16 "You just got to go for it.

2:08:17 Just go full time." And so I just sat there and my wife can attest to it.

2:08:22 It was like an emotional turmoil thing and it just

2:08:26 took a lot of, it was pretty awful because I didn't...

2:08:32 Netflix is very safe option.

2:08:34 It was both very fun.

2:08:36 It was challenging.

2:08:37 I liked a lot of the people worked with It was overall a really great thing.

2:08:40 I had a really great boss, really appreciated him.

2:08:43 I still have text him now and then he's really great guy.

2:08:46 So it's just like I'm leaving all these things for something that's unsure.

2:08:50 And the reality is that streaming and all these things, you know,

2:08:54 people love you one day, they could hate you the next day.

2:08:56 There's all this stuff that goes into being on the public side.

2:09:01 And I had Netflix as the backing,

2:09:02 so it's like if public hated me the next day I'd be like, deuces, I'm out.

2:09:05 I don't care.

2:09:06 Now it's like, now I'm gonna do this as a job.

2:09:08 And so there's a whole huge turmoil to this whole

2:09:11 thing that I kind of went through it.

2:09:13 And eventually I just said, okay, I'm gonna make this.

2:09:17 It resonated with me when I first made the decision to join Netflix.

2:09:22 I'm getting older.

2:09:24 There's not a lot of chances to do something unusual.

2:09:27 Those chances go down constantly as you get older.

2:09:30 This might be the last crazy thing I get to do.

2:09:33 Let's just try it.

2:09:34 So in April I went full-time and I guess I haven't looked back.

2:09:39 I'm only not even a year into doing this as a full-time gig.

2:09:42 And it's just been a lot of fun.

2:09:44 And the biggest thing is just being able to really explore

2:09:49 and do these things on stream where people really enjoy watching and engaging.

2:09:53 It's been a great, hard, fun, amazing, difficult experience.

2:09:59 It's a really inspiring leap.

2:10:00 It's a really hard one to take for many reasons, like you outlined,

2:10:04 but also the loneliness of it, I think it's a pretty lonely pursuit.

2:10:11 It is.

2:10:12 Yeah.

2:10:12 Just you and the camera and the audience and the ups and downs of that.

2:10:16 And there's not really a team.

2:10:18 I do have one lucky thing I'd say that, my editor, Flip, shout out Flip.

2:10:22 Flip, shout out.

2:10:23 He said it would mean the world to him if I said,

2:10:25 "Shout out, Flip."- I love you, Flip.

2:10:27 I love you, Flip.

2:10:27 We all love you.

2:10:28 Oh, man.

2:10:30 He had, as he would say, he had nothing going for him.

2:10:33 He had a really hard growing up.

2:10:35 A lot of rough life decisions have gone

2:10:38 into his life and he's crawling back out of it.

2:10:40 And he just said, "Hey, I'll edit full-time for you." So I just said,

2:10:44 "All right, like 50/50, whatever I make on YouTube, you get.

2:10:46 We're gonna do this together." And we did that for years,

2:10:49 making $0 a month pretty much.

2:10:51 And so it's just like that was an incredible

2:10:54 jump and now we get to work together.

2:10:56 So I do get that one team aspect that I think is really nice.

2:10:59 But it's not like it was at Netflix

2:11:02 where I could hear about stuff people are building, I don't have a team,

2:11:05 I don't have product or cycles,

2:11:07 I don't have a manager that I have to try to make happy.

2:11:09 It's just like...

2:11:10 It is very lonely.

2:11:11 And I don't think a lot of people realize how lonely it actually can be.

2:11:16 Yeah, so combine that loneliness with, in my case,

2:11:19 I don't know how many people attack you.

2:11:23 I have a shockingly low amount of attack rate, I feel like.

2:11:26 Yeah, people generally...

2:11:28 I mean it's sometimes fun sort of teasing,

2:11:30 that kind of thing, but it's mostly just really...

2:11:33 You give so much love to the world and inspire so many people,

2:11:36 even when you're making fun of stuff, yeah.

2:11:39 But with me taking the loneliness of it

2:11:42 combined with just really intense attacks, it's tough.

2:11:44 It can be rough.

2:11:46 Psychologically, really a tough journey.

2:11:50 You miss working with a team, just from even a software engineering side,

2:11:55 where you can share code or talk over code?

2:11:59 [ThePrimeagen] Yeah.

2:12:00 Or the collaborative aspect of it?

2:12:02 Yeah, multiple things there.

2:12:04 One, hey, we love you Lex, so don't let the things get you down.

2:12:09 Thank you.

2:12:10 Thank you.

2:12:11 I love you too.

2:12:12 Thank you.

2:12:13 Hey, little bonding moment here going on.

2:12:15 But one thing I really miss-- Not in a sexual way, just to be clear.

2:12:18 The tension is a little tense here.

2:12:21 I'm getting uncomfortable.

2:12:21 Yeah.

2:12:22 Anyway, team.

2:12:24 It's just the one thing I really miss is just,

2:12:27 even when I hated how people did it, just seeing how other people solved things,

2:12:31 it's really amazing just the raw creative power so many people have,

2:12:36 and just being like, oh, wow, I would've never done it this way.

2:12:41 Crazy, right?

2:12:42 Wow, this is awesome.

2:12:44 And then you kind of internally process this and you're like,

2:12:46 oh, I now have a new little tool in my tool belt.

2:12:49 Because at some point it's really hard to find a mentor when you're first,

2:12:53 young and you're just starting out programming.

2:12:56 I mean, anyone with a couple years of experience

2:12:58 will be not just a little bit better than you, but infinitely better than you.

2:13:02 It feels like crazy how much better people are.

2:13:05 And so you have to get mentors and you learn from people.

2:13:07 And then as you get better, that amount of availability gets really small.

2:13:11 And so it's something that I really do miss

2:13:13 is kind of that forced hard problem solving together.

2:13:17 I think there's also a skill to mining the wisdom from other people.

2:13:21 I generally try to approach even junior people, young folks.

2:13:27 It's just mentally, at least for me,

2:13:29 it works as a hack to assume they're the smartest person in the world,

2:13:35 way smarter than me.

2:13:36 And so I take every single word they say as potential wisdom,

2:13:40 and that helps me sort of mine for potential wisdom there.

2:13:44 Because it's so easy once you get older to judge, to be like, yeah, okay, okay.

2:13:49 I've been through that.

2:13:50 I remember feeling like that.

2:13:51 I remember thinking that.

2:13:52 That's incorrect, whatever.

2:13:53 But just kind of assume that I don't know what the fuck I'm doing,

2:13:58 and the other person is this sage.

2:14:00 And in that kind of interaction, I think you could actually learn a lot.

2:14:04 And my favorite interactions is when we both think that way.

2:14:09 So from there, I think that's a catalyst for a great,

2:14:14 great collaboration and interaction.

2:14:16 It just also makes everything much nicer.

2:14:19 It really stinks to work with someone that's combative and negative.

2:14:23 I don't mind combativeness if it's like I'm trying

2:14:26 to figure out what's best to do right now,

2:14:29 versus combativeness just because you're a negative person

2:14:32 and things have to be this one particular way,

2:14:33 because if they're not this one particular way, it's the end of the world.

2:14:36 And that's actually really hard for me to work with.

2:14:41 What's the origin story of ThePrimeagen name?

2:14:45 The origin story of ThePrimeagen name was,

2:14:48 are you familiar with a video game called Turok?

2:14:50 Nintendo 64.

2:14:52 Yeah- So Turok had Turok I and then Turok II.

2:14:56 Turok II was a brutally hard game.

2:14:58 This is back when first-person shooters,

2:15:01 they would only give you a certain amount of health,

2:15:03 and you had to go discover health and get that health.

2:15:06 And you had to beat the whole game without effectively dying.

2:15:09 That's an old, that's like the first version right there.

2:15:11 That's like Turok I and Turok II.

2:15:14 Turok is a renowned first-person shooter video game series featuring dinosaurs,

2:15:18 action, and sci-fi elements.

2:15:20 The franchise has evolved significantly since its inception in 1997.

2:15:24 There you go.

2:15:25 So in 1998, there, you can see it right there.

2:15:27 Turok II, Seed of Evil followed in 1998 featuring larger levels,

2:15:31 more challenging puzzles, and deadlier enemies.

2:15:34 The notable difficulty, it was very, very, very difficult.

2:15:38 So I spent, when I got it, it came in a black cartridge,

2:15:41 not like your standard gray Nintendo 64, the black cartridge.

2:15:45 Badass game.

2:15:46 And I got it and I put it in and I played,

2:15:50 and I played every day for 10 hours a day, for a month straight.

2:15:54 And I beat it.

2:15:55 And it was such an incredible, great experience.

2:15:57 And the last leader of Turok II is called the Primeagen.

2:16:01 And so when I was a kid, when you're in fifth grade,

2:16:04 that's super cool, named after the bad guy.

2:16:06 And so for a long time on any internet thing,

2:16:09 like Graal Online that I mentioned earlier, the name was ThePrimeagen.

2:16:12 It was great.

2:16:13 And then I became an adult eventually, and it's just like, okay, I'm an adult.

2:16:18 My name's Michael Paulson underscore.

2:16:20 And that's what I was on the internet for a long time was that.

2:16:23 And I remember it was like 2017, 2018, somewhere in there.

2:16:32 I remember just how bad the tech world had kind of become.

2:16:36 It was just like this super pretentious place,

2:16:40 tons of dick measuring, just everything that just was the worst.

2:16:44 Ken Wheeler got canceled over playing the Circle game.

2:16:47 It was just like, it is so hard to describe to people that weren't there,

2:16:52 but it was just the worst place to be.

2:16:54 Tech was extremely unfun.

2:16:56 It was extremely awful.

2:16:58 Everything was just so, it wasn't academic because it was research.

2:17:02 It was like we're building the most sophisticated things,

2:17:06 and this is for the smart people and everyone else is the dumb people.

2:17:09 Don't worry.

2:17:09 We'll design for you, dummy.

2:17:10 We'll show you how to make the perfect architecture.

2:17:13 And I remember changing my Twitter handle because I got

2:17:16 so upset and just went back to my video game name.

2:17:18 I was like, I want things to be fun.

2:17:21 I want this to stop.

2:17:22 And so when I started streaming tech,

2:17:26 my goal became to destroy whatever that tech mentality was,

2:17:30 because it includes nobody.

2:17:32 Everyone thinks that they're the smart people and they design for the dummies.

2:17:35 And it's just like, no,

2:17:36 I want tech to be this place where people feel like they can be creative,

2:17:41 and excited, and actually build something.

2:17:43 And if you're new, it's okay to be dumb and ask dumb questions.

2:17:46 Learn from your dumbness.

2:17:48 No one's expecting you to be smart.

2:17:50 Pick whatever you want.

2:17:51 Actually do something and have fun and build your crazy ideas.

2:17:54 Oh, you're going to reinvent the wheel, reinvent the wheel,

2:17:56 understand what you're doing, learn it really good, and interact and stuff.

2:18:01 And it was just so different than what was out there.

2:18:03 And the name...

2:18:05 Arnold Schwarzenegger talks about this thing where,

2:18:07 when he first started acting, his name was the thing that people hated.

2:18:11 As he once said, you have a strange voice,

2:18:14 you have a strange body, and your name, your name's unpronounceable.

2:18:16 No one's going to Schneitzinfinitzel, no one's going to remember that.

2:18:19 Yeah.

2:18:19 And he said, but now the name is the strong part.

2:18:22 And for me, I've always felt akin to that, though my name's not nearly as cool,

2:18:26 nor am I as popular as Arnold, nor am I as tough or good-looking or successful.

2:18:30 But nonetheless, it's just the name

2:18:32 represented this counterculture movement within myself,

2:18:36 in which I just hated what was there and I wanted to defeat it.

2:18:40 And so this has been the thing.

2:18:41 And now people remember me so well because of how weird my name is.

2:18:46 And so it's just like for whatever reason, it became its own thing.

2:18:50 And so that's the...

2:18:52 Now I would never change it, and back then I would never change it because it

2:18:55 was my rage against the machine moment, if you will.

2:18:59 Yeah, I love that as a symbol of rage

2:19:01 against the machine and the rage being fun.

2:19:05 Yeah.

2:19:05 I just want people to be creative and have fun again.

2:19:07 It's okay.

2:19:08 What about the mustache?

2:19:10 It's an epic mustache.

2:19:11 It's an epic stash.

2:19:12 It has a life of its own.

2:19:14 Is there an origin story or did you guys discover each other at some point?

2:19:18 Or did it emerge from the darkness of the struggle that is your life,

2:19:24 or where does it come from?

2:19:26 Well, the original mustache is that it

2:19:29 was no-shave November back before it became Movember.

2:19:32 It was no-shave November back in the day.

2:19:34 And after no-shave November, you had all this hair.

2:19:37 And so what's the natural thing you got to do?

2:19:39 You got to sport a mustache for a day.

2:19:40 Right?

2:19:41 So whenever I'd forget to not shave for a long time,

2:19:43 and then I'd let it start growing out really big,

2:19:46 I just go, oh, this is kind of funny.

2:19:47 I'll have a mustache.

2:19:49 So one day when I was streaming,

2:19:51 it's just one of those times I just didn't shave,

2:19:53 and then I started just letting it go,

2:19:54 and then I got kind of a beard, and then I just had a mustache.

2:19:57 When I did it, people were just like, yeah, it's mustache time.

2:20:00 And I was just like, heck yeah, it feels like a lifestyle decision.

2:20:04 This is the fun times.

2:20:05 And so all of a sudden it was just exciting to have a mustache.

2:20:08 And I shaved it off and I was like, oh, okay.

2:20:11 But then part of me is like there's

2:20:12 this weird energy that comes from just having a mustache.

2:20:15 So I was like, I'm going back.

2:20:17 Told my wife, forgive her.

2:20:19 She was very not as thrilled about my decisions to have a mustache long-term,

2:20:23 but I just decided to have it back and it was the right thing.

2:20:30 It's always been the energy that I had was the mustache.

2:20:33 It was always been there.

2:20:34 It just never was visible until later on it feels like.

2:20:37 Yeah, we're chatting offline how one

2:20:39 of the components of a successful relationship is sacrifice

2:20:41 and your wife was willing to take

2:20:43 the sacrifice of allowing you to have a mustache.

2:20:46 I clearly was not willing to sacrifice not having one.

2:20:48 So.

2:20:50 You do this incredible thing where you tried

2:20:54 a bunch of different programming languages when you stream.

2:20:57 You have like...

2:20:59 You go all out on certain programming languages like Rust

2:21:03 and then go and then try to pick a new one,

2:21:06 but also are experimenting constantly.

2:21:08 So maybe one question I could ask is about learning.

2:21:14 What's your approach to learning a new programming language,

2:21:17 and maybe what's your advice on learning

2:21:19 a new programming language when you begin that journey?

2:21:23 So I've kind of done a bunch

2:21:24 of different ways to go through this learning process,

2:21:28 and I've tried a lot of different ones.

2:21:30 Something that is obviously successful is just start building something.

2:21:35 Just put your hands on the keyboard,

2:21:38 especially if you already know how to program.

2:21:40 You're like, okay, I'm now using Zig.

2:21:42 How do I do a main function so I can just run the program?

2:21:44 Okay, now I know how to build.

2:21:45 Okay, how do I do an if statement?

2:21:47 What does it look like?

2:21:47 Okay, how do I declare my own functions?

2:21:49 How do I do modules, right?

2:21:50 You just kind of Google your way through it,

2:21:52 if you will, to get to the end product and build something.

2:21:56 It's a great way to do things because I find that repetition,

2:21:59 rote learning is obviously the best way to do this.

2:22:02 You have to kind of go over it a bunch and you

2:22:04 can definitely get out and build a lot of stuff with that.

2:22:06 I like that initial kind of get used to things.

2:22:09 But on top of it, I find that, by doing that, you also fall into traps.

2:22:14 You kind of Google and you try to solve a problem

2:22:18 in the language based on all of your previous experience.

2:22:21 And so you don't have what makes that language special.

2:22:25 You have what all the other languages make special.

2:22:27 And so you end up kind of not really being able to use it very effectively,

2:22:31 but you can certainly kind of learn it and get kind of good at it.

2:22:34 And so the second approach I've been doing lately,

2:22:36 and this has been inspired by the creator of Ghosty,

2:22:38 Mitchell Hashimoto, is to just start

2:22:40 by reading the language reference, the whole thing.

2:22:42 And so lately I've been just kind of going

2:22:44 through and just reading the entire manual for these languages.

2:22:47 Like Zig, I'm almost done with that one.

2:22:49 It's like 8 to 10 hours of just sitting down reading,

2:22:52 and I'll whip out my computer and kind of practice

2:22:53 a couple of the things from the actual docs,

2:22:55 and that way I can learn all the things.

2:22:58 So then when I start building again, I'll remember,

2:23:00 okay, I know there's a thing over here, let me go reread about it because now I

2:23:04 have it indexed in my brain somewhere that will remember.

2:23:07 And so I don't think there's a right or wrong way.

2:23:10 I mean at the end of the day,

2:23:11 the right way is always that you have to build something eventually.

2:23:13 You cannot just read about it.

2:23:15 You have to put your hands on the keyboard, you have to build something out.

2:23:18 And then once you do that, that's where you really

2:23:19 discover what makes it painful or what makes it great.

2:23:22 And if you don't have the breadth of what the language offers,

2:23:24 you just may make it painful by simply being bad at it.

2:23:28 Where exactly are you reading this-- [ThePrimeagen] Language reference.

2:23:32 The language reference.

2:23:33 [ThePrimeagen] So it just goes through every feature top to bottom.

2:23:35 That's a lot.

2:23:36 Yeah.

2:23:36 [ThePrimeagen] Every way it's described, all the different things.

2:23:39 I think Zig's is, it's a decent size, but it's not just simply read the words.

2:23:44 You want to internalize each concept as well.

2:23:46 So it takes a long time.

2:23:47 So I'm a slow reader.

2:23:48 So you're building, in AI terms, like a background model.

2:23:55 'Cause I don't think you can just start building once you're

2:23:57 done reading because you probably forgot how to do a for loop.

2:24:03 You kind of forget the specifics.

2:24:05 You just are building up the design choices, the set of features available,

2:24:10 what are the strengths and weaknesses, all that kind of stuff.

2:24:12 And then you start building.

2:24:14 That's really interesting.

2:24:15 Probably not the thing you would recommend to a junior developer,

2:24:19 somebody who's just starting out at first.

2:24:21 If you don't know what an if statement is, that's not a good way to learn.

2:24:23 To me, the best way to learn then is

2:24:25 really hands on the keyboard and building extremely simple things,

2:24:28 and slowly growing in complexity.

2:24:30 Because understanding what a class

2:24:31 and methods and instances versus the blueprint,

2:24:33 which is the class versus functions versus modules versus all that stuff.

2:24:38 That just takes time to learn.

2:24:39 And so that's a completely different style of learning.

2:24:43 I wonder because for me, learning right now,

2:24:46 AI is a huge help, but I already have a lot of experience.

2:24:50 I wonder, if you're starting from scratch, whether that's a good idea.

2:24:53 But I still think it's probably a really good idea,

2:24:55 but basically generate some code using AI and figure

2:25:00 out what it's doing by playing with different parts.

2:25:05 Maybe can you comment on that aspect,

2:25:07 like the use of AI as part of the learning process?

2:25:12 This is where I have both the hopeful

2:25:13 and the doomer take at the exact same time.

2:25:15 Yeah.

2:25:18 And it's the same thing with Google or Stack Overflow,

2:25:21 it's all the same kind of take,

2:25:23 which is it's just making things more democratized in some sense.

2:25:27 I get to ask questions in probably

2:25:29 the most personal possible way with my own voice, in my own words, and it's able

2:25:34 to produce out answers and hopefully help guide me.

2:25:37 Now, regardless of just say the errors and the incorrectness of it,

2:25:40 ultimately just using it as a learning tool and being

2:25:44 able to just formulate and read answers in your own voice,

2:25:47 I think is super powerful.

2:25:48 And I think it's super amazing.

2:25:50 But the part that I think is gonna be really difficult

2:25:55 is that we don't value remembering things anymore as a society.

2:26:02 Since the internet came about, I can just look that up.

2:26:05 I can just look that up.

2:26:07 You don't need to memorize your times tables.

2:26:08 Right?

2:26:08 You can just use a calculator.

2:26:10 You can just do all that.

2:26:11 I remember I just was sitting on the airplane and I watched someone

2:26:15 do the world's most simple addition

2:26:16 and subtraction like 10 times on their phone.

2:26:18 And why are you not just...

2:26:21 You should already know, you should be able to do these things.

2:26:23 And I realized that we kind of offload our brains, right?

2:26:26 Oh, I don't need to know these things because I can look them up.

2:26:29 And that's not a bad answer in some sense.

2:26:31 I can understand that.

2:26:32 I don't need them to remember every last thing,

2:26:35 but then it also makes me realize

2:26:36 that you kind of develop this learned helplessness, that a new error comes up.

2:26:41 I'll just ask the AI.

2:26:43 AI says, oh, okay, I got to fix this line.

2:26:44 I fix the line.

2:26:45 You didn't actually learn anything.

2:26:46 You kind of just used it as a quick means to get something out and move on.

2:26:49 And so you sacrifice knowledge for speed, which is a great thing in some...

2:26:54 We have to make those trade-offs all the time in engineering.

2:26:57 Sometimes you have to move fast at the sacrifice of knowledge,

2:27:00 and I'm totally on board for that, but I worry that what we'll create

2:27:06 is an entire generation of incompetent programmers

2:27:09 who can do some amount of things well, but anything that is unique, bespoke,

2:27:14 or requires some extra like little elbow grease, might become very difficult.

2:27:19 It might cause a whole chasm where juniors remain juniors forever.

2:27:23 And I don't want to see that.

2:27:24 I want to see people grow.

2:27:25 I want to see people actually be able to take this as a craftsmanship thing.

2:27:29 And so that's both my hope and my worry is that AI think can do both really.

2:27:36 If you could ask whatever question you want and you don't have to rely on, say,

2:27:39 a book to give you that exact answer.

2:27:41 And if the book just said it wrong and you can't understand it,

2:27:43 it's just like, sorry, you don't get to learn what this is.

2:27:45 Like recursion for me, I spent way too much time until someone

2:27:48 gave me the right problem to understand recursion.

2:27:50 You could imagine AI could have solved that for me way faster because

2:27:52 it could have gave me the right problem and walked me through much better.

2:27:56 But what happened if I just always have recursion

2:27:58 solved by them and not actually learn it myself?

2:28:01 So if I ask AI to generate code to do a certain thing,

2:28:05 actually a large percentage of time,

2:28:08 most of what AI generates is going to be correct for me,

2:28:11 but some percent of time it's not, fundamentally not.

2:28:16 And for me to recognize the difference between those two,

2:28:19 I think it takes a lot of experience.

2:28:21 I think to learn that skill of knowing, no, no, no,

2:28:25 a different new out of the box solution

2:28:29 is needed here than the one you're providing.

2:28:31 You're missing the point.

2:28:35 That's a skill, and how do you learn that?

2:28:36 You learn that by building from scratch.

2:28:39 So both are probably really necessary.

2:28:41 But I think as a first step of learning how to program,

2:28:46 it's pretty nice to generate a function,

2:28:48 to generate for loops and all that kind of stuff,

2:28:50 and then just fuck with the different lines and modify

2:28:54 them to try to adjust the behavior of the program,

2:28:57 and from the way the behavior of the program adjusts or bugs are created,

2:29:03 you learn about the syntax of the language,

2:29:05 the behavior of the language, all that kind of stuff.

2:29:08 So I think it's a super powerful way to learn.

2:29:11 But yeah, you need to also write from scratch.

2:29:15 At some point you have to take off the training wheels,

2:29:17 because I think what you're really spotting

2:29:19 is the difference between reading and writing code.

2:29:21 I can read a lot of languages very well.

2:29:24 I can see what's happening.

2:29:25 I can understand it, but I would not be very good at writing it.

2:29:28 I can understand a lot of things about C++ and I can read it,

2:29:31 but I'm just not that because I just don't, I haven't done it in so long.

2:29:34 I can't remember where all the semicolons,

2:29:35 and colons and you do public and private,

2:29:39 and how should you do naming conventions?

2:29:41 All those things kind of add all together, and then you're just like,

2:29:44 oh, I'm really bad at writing it, though I can read it.

2:29:46 And so there's a skill gap chasm that exists between those two.

2:29:53 All right.

2:29:53 Well, let me talk about the various languages.

2:29:56 The cheesy, ridiculous question of what's the best programming language?

2:30:04 Let's say, what's the best programming language that everybody should learn?

2:30:07 Maybe let's go with the top five.

2:30:09 I'm gonna pull up the Stack Overflow developer survey,

2:30:13 because I think we have....

2:30:14 Yeah, those are...

2:30:15 You don't like them?

2:30:17 You gotta remember, because I mean, you're a data guy.

2:30:19 You know about biases and data.

2:30:22 What does Stack Overflow naturally bias towards?

2:30:25 Well, they have the different slices of professional developers,

2:30:28 junior developers, they have different slices.

2:30:31 Okay, what is the bias?

2:30:33 I hear you, but who fills out a Stack Overflow survey?

2:30:35 Someone who participates on Stack Overflow.

2:30:37 Who's participating on Stack Overflow?

2:30:39 Largely very, very new people, and that one guy that loves answering questions.

2:30:43 And so I'm not sure if Stack Overflow is a great place to get data.

2:30:47 It could be a very biased set of data.

2:30:49 Is it really only new people?

2:30:52 I mean that's who's using Stack Overflow.

2:30:55 All right.

2:30:56 Most popular technologies.

2:30:57 On this...

2:30:59 JavaScript, HTML, Python, SQL.

2:31:02 SQL is the more general kind of...

2:31:04 I'm sure they're not doing the individual sort of flavors of SQL.

2:31:10 By the way, pronounce SQL versus SQL?

2:31:13 It's SQL.

2:31:14 SQL?

2:31:14 You SQL?

2:31:15 SQL, I think is the correct way.

2:31:17 SQL.

2:31:17 I did SQL because I didn't know the audience.

2:31:19 I don't know if they can handle the truth,

2:31:21 which is its SQL- The squeal of joy, squeal...

2:31:25 SQLite, MySQL, PostgreSQL.

2:31:28 By the way, I had a lot of joy from earlier saying pig-fucker, for some reason.

2:31:31 It's such a dig...

2:31:32 I mean, can you believe- I had so fun

2:31:34 to say-- that was a real conversation that I had?

2:31:35 Yeah, that was.

2:31:37 TypeScript, BAS, Java, C Sharp, C++, C-PHP.

2:31:42 It largely kind of aligns with the world you'd expect,

2:31:44 but Assembly, why is Assembly more popular than Ruby?

2:31:47 Who's writing just Assembly by...

2:31:50 No one writes Assembly by hand other than maybe that one guy that's developing

2:31:54 TLS 1.3 and hand rolling a cryptography

2:31:57 algorithm to be the fastest possible algorithm.

2:32:00 Yeah.

2:32:00 Assembly is a weird one.

2:32:01 Maybe people write it maybe in school, but even in school now for a operating

2:32:07 systems course or something like that, or system engineering.

2:32:10 I don't know if they write Assembly anymore.

2:32:12 I don't think so anyway.

2:32:15 And Swift and Ruby being less popular than Assembly seems ridiculous.

2:32:20 But nonetheless, okay,

2:32:21 so you get my ideas behind that, but as far as top five languages go,

2:32:24 that's probably too broad because you could just name so many.

2:32:27 I think you should probably archetype it by what do you want to do?

2:32:30 So if you want to get into game development,

2:32:33 perhaps C Sharp, C++ could be good choices.

2:32:37 Or JavaScript and doing Canvas games, I could see that also working.

2:32:41 But you're limited by doing JavaScript obviously,

2:32:44 because you can't do as much because the language

2:32:46 is just not fast enough to do as much.

2:32:48 So it's like a good thing to remember.

2:32:51 If you're gonna be doing backend stuff,

2:32:53 if you want a job, if you're looking for a job,

2:32:56 maybe C Sharp slash Java, or JavaScript, or Go would be great choices.

2:33:02 If you're looking to do embedded, you probably want to do C,

2:33:05 C++, like that would probably be a good choice.

2:33:07 And so you kinda have to...

2:33:08 I think you have to first determine what do you really want to get out.

2:33:11 If you're just curious about programming,

2:33:12 which I talked to a lot of people who are, yeah, you can consider jobs,

2:33:16 but basically their question is, okay, what's the first language I should learn,

2:33:19 and maybe what are the several languages I should explore?

2:33:25 Can I say something that's gonna make a lot of people angry?

2:33:27 Yeah, sure.

2:33:28 I think the first language people should learn

2:33:29 if they have no idea about anything is JavaScript.

2:33:32 Yeah.

2:33:32 Why would that make people angry?

2:33:34 Oh, because people just, first off,

2:33:36 I'm not supposed to say anything nice about JavaScript.

2:33:38 Yeah, usually that's the meme, that you hate JavaScript, right?

2:33:41 Yeah.

2:33:41 No, JavaScript's a beautiful language.

2:33:43 And it has a lot of things that are very great for it,

2:33:45 and one of them is that you can express anything with very little effort.

2:33:49 And so someone that's new,

2:33:50 I think it's really great to be able to draw a box and move a box.

2:33:56 That's great.

2:33:57 You get to see it visually.

2:33:58 I think that's one thing that's really great

2:33:59 about JavaScript is that you can do that.

2:34:01 Then you can go, okay, I want to learn about the backend.

2:34:04 I want to make a request now.

2:34:05 You can write a quick backend in it.

2:34:06 Now you're starting to get familiar with programming a little bit.

2:34:08 I can save this to a database.

2:34:10 I can bring it down.

2:34:11 I can put it on a screen and I can animate it all around,

2:34:13 and I can even put it on a canvas and render it in 2D or 3D.

2:34:17 So it's like there's so much variety of what you can do with JavaScript.

2:34:21 It's a great way to get introduced into programming.

2:34:24 But then at some point you have to go, okay,

2:34:25 I now need to learn more about this whole thing.

2:34:29 I mean, yeah, just like you said, you can make games,

2:34:31 you can do front end, backend for web development.

2:34:34 You can even do embedded.

2:34:35 They actually have...

2:34:36 Like there's Wes Bos is building his Roomba

2:34:39 or something and programming it with JavaScript and React,

2:34:42 which is just the world's worst language to choose for embed,

2:34:45 but you can still do it.

2:34:48 Also, we mentioned sort of in terms of applications,

2:34:51 anything that relates to data or machine learning,

2:34:54 Python is the sort of the leader there, so that's a great one.

2:34:58 It seems like Python,

2:35:00 CUDA stuff and C++ would be a dynamite in that, because a lot

2:35:03 of these Python libraries are assumed you're just

2:35:05 smuggling in C++ underneath the hood or C.

2:35:09 Okay, so JavaScript.

2:35:10 I'll say Python.

2:35:11 Python's a great one too.

2:35:12 You can get quite far with it, but you can't write the front end.

2:35:15 What happened if you love the front end?

2:35:17 What happened if you really just want

2:35:18 to design things and you just didn't know that?

2:35:21 Well, it's okay.

2:35:22 So for that, JavaScript.

2:35:23 But Python's a good choice because you can't

2:35:25 do the ML stuff in JavaScript nearly as easy.

2:35:27 Do we count HTML and CSS as programming languages?

2:35:30 I think there's some technical definition that it is.

2:35:34 If you use this certain amalgamation of CSS plus HTML,

2:35:37 it actually has, it can be a Turing complete language.

2:35:40 But I mean for practical purposes, no.

2:35:42 HTML is not a language.

2:35:46 For me, yes, the Turing test is a good one,

2:35:48 but for those that are just not wanting to be as academic,

2:35:51 if I can't write a function and an if statement, I don't feel like that's...

2:35:55 If I can't loop, if, and function,

2:35:57 I don't feel like that's a good, that's a programming language.

2:36:00 Although modern HTML has a lot of features.

2:36:02 It's crazy how much it has, but it's more of a specification than anything else.

2:36:06 I specify it to be a pop-up.

2:36:08 I specify it to have this kind of accessibility, this kind of look.

2:36:14 Under these conditions look like this, transform like this, move down here.

2:36:18 I don't know.

2:36:18 I kind of like these popular programming languages in this list.

2:36:21 I like JavaScript.

2:36:22 You like Bash?

2:36:23 Oh, yeah.

2:36:24 I like Bash a lot.

2:36:25 Yeah.

2:36:25 Why?

2:36:25 Okay, Bash is kind of one of those ones where it's like, do you really like it?

2:36:30 I like it up until I need an array.

2:36:32 Oh, as a programming language, just no, but I like the command line.

2:36:37 Okay.

2:36:37 Do you like Bash?

2:36:38 No, nobody likes Bash.

2:36:39 (Lex and ThePrimeagen laugh) Do you mean-- Someone is so offended right now.

2:36:45 It means do you use it a lot?

2:36:47 Yes.

2:36:49 I mean, it's good to learn, right?

2:36:51 It is good to-- It is.

2:36:52 Be comfortable in the command line because it's a bit of a superpower.

2:36:55 It's like, I think I follow on Twitter, FFmpeg.

2:36:59 Great account.

2:37:00 (Lex chuckles)- There's certain Twitter accounts that are just legit.

2:37:04 And I think FFmpeg, they have all these sort

2:37:10 of parameters that you can add on the command line,

2:37:13 that it's like one of those cryptic

2:37:15 languages that only very few wizards understand.

2:37:19 But once you begin to slowly understand,

2:37:21 and I'm only at the very sort of beginning stage of that journey to mastery,

2:37:25 the powers you gain at every step, it grows exponentially, it feels like.

2:37:31 I mean, FFmpeg is just this incredible, what would you call a library system?

2:37:35 There's just the people behind them must be just brilliant

2:37:39 masterminds because they have to work with all these codecs,

2:37:42 with all these containers,

2:37:43 with all the mysteries of the media codec universe they're masters of.

2:37:50 And they understand compression,

2:37:51 which is another super fascinating technical set of problems that, I don't know,

2:37:58 just FFmpeg just fills me with joy that it exists.

2:38:01 But you need kind of Bash type comfort, command line comfort,

2:38:05 to work with it to really unlock its power, yeah.

2:38:09 I think FFmpeg is probably one of the most consequential libraries of our day,

2:38:14 and the Twitter account is so unhinged.

2:38:19 It is the most amazing thing to see because

2:38:21 I think FFmpeg does not get the love it deserves.

2:38:24 Every single application, OBS, probably FFmpeg underneath the hood.

2:38:28 Everything, FFmpeg underneath the hood,

2:38:31 and yet they do not get the love they deserve.

2:38:34 I just love it.

2:38:35 I just think they're the best.

2:38:37 Yeah, I would say JavaScript, HTML, CSS, Python, SQL,

2:38:40 I mean that is SQL, SQL is a programming language.

2:38:45 It's an incredibly sophisticated programming language.

2:38:48 Yeah?

2:38:49 SQL is interesting.

2:38:52 I believe you can classify it as a programming language.

2:38:54 It does have, if.

2:38:55 You have case statements and it's pretty crazy what you can do with it.

2:38:57 You could do functions, you can do all that stuff.

2:38:59 You shouldn't.

2:38:59 Yeah, for stored procedures, that's how you make your life hell.

2:39:04 I will say that all the top languages right there,

2:39:08 none of them are strict static typed languages.

2:39:13 And so even TypeScript, I don't like this any.

2:39:17 And so for people that are learning,

2:39:18 doing something that's much more strict would be great.

2:39:20 Something like Go, Rust, I mean even C Sharp, C++.

2:39:26 Anything that kind of changes your perspective of types

2:39:29 I think is really helpful to kind of go through.

2:39:31 They're not getting nearly as much love on this most popular language list,

2:39:34 but I think they're very fantastic.

2:39:36 All right, well, if I put a gun to your head,

2:39:38 top five languages, let's list them out.

2:39:41 There's a bright-eyed 20-year-old asking you,

2:39:44 what are the top languages, five languages to learn?

2:39:48 If I were to pick five languages that I think people should learn, or at least,

2:39:53 let's restate it this way,

2:39:54 I'm gonna say a couple languages and you should at least explore some of them.

2:39:58 I think you should explore a loosey language,

2:40:01 so Python slash JavaScript, where there is truly only one type,

2:40:05 which is a boxed value,

2:40:06 which is a multivariate, different types underneath the hood.

2:40:09 What did you call it?

2:40:10 A loosey language?

2:40:11 A loosey-goosey language.

2:40:12 It's a dynamic language,

2:40:14 and so I think it's really good to explore one of those too.

2:40:16 So I'd put Python or JavaScript right there.

2:40:18 Even Lua, throw Lua in the bunch.

2:40:20 I think you should explore a strict language, so I'd do something like Rust, Go.

2:40:26 I think those are both really, really great.

2:40:28 C++?

2:40:29 You can do C++.

2:40:30 You can do some type erasure in C++.

2:40:32 You can do it with Go as well,

2:40:33 but for the most part it's a great language to do that in.

2:40:36 It can get a little wild.

2:40:38 New C++ seems great.

2:40:38 Everyone keeps telling me new C++ is great.

2:40:41 It has every feature you've ever wanted and all the features you don't want.

2:40:44 Yeah, exactly.

2:40:45 I mean there's smart pointers,

2:40:47 there's dumb pointers, there's all kinds of pointers.

2:40:49 There's no memory leaks.

2:40:50 That's not an issue.

2:40:52 Foot guns, face guns, soft beds.

2:40:53 There's everything in there.

2:40:55 Unless you like memory leaks, it has that too if you want that kind of thing.

2:40:58 It's great.

2:40:59 Okay.

2:40:59 How about this one?

2:41:00 Languages that I actually want to really learn,

2:41:03 that at least sit in my curiosity bank.

2:41:06 There's three languages, which is going to be Swift, Elixir, OCaml,

2:41:12 and then I'm going to throw Odin in there, just because Ginger Bill is great.

2:41:16 But Elixir and OCaml,

2:41:17 I don't have a strong functional language underneath my belt.

2:41:21 That's something that I just genuinely lack.

2:41:23 Yeah, I've heard incredible things about Elixir, about Odin, about OCaml.

2:41:27 Obviously, I'm a person, as you know, who loves Lisp.

2:41:30 [ThePrimeagen] I have never done Lisp.

2:41:31 Lisp could be in that category too, just,

2:41:33 or Closure I think at this point is what everyone tells you to use.

2:41:36 So in the case of Lisp, I don't want to speak negatively about Lisp,

2:41:40 but it's important about modern community, what the community looks like.

2:41:44 It seems like there's an excited, maybe small,

2:41:46 but an excited community around Elixir, Odin, and OCaml, so that helps.

2:41:51 Because then you can post shit on Twitter that you're like, I accomplished this.

2:41:55 People get excited and it's nice.

2:41:56 It's a good feeling.

2:41:58 You can post something on Twitter and you'll get

2:42:00 a thousand likes if you do something cool on Elixir,

2:42:02 which is that's a pretty big amount of people

2:42:05 to like a post for such a niche topic.

2:42:08 Programming's already a pretty small topic.

2:42:10 Then you get into functional program.

2:42:11 That's a small topic in a small topic.

2:42:14 Yeah.

2:42:14 I don't get that much.

2:42:15 If I post something about Emacs, I'll get crickets if I post something about...

2:42:19 If I proudly use Neovim, there'd be a lot of people like, good job.

2:42:24 Because it is the best editor.

2:42:27 Yeah, maybe it's just hype.

2:42:28 Come back to the Civil War, Lex.

2:42:30 Yeah, sometimes you have to sacrifice and go from the superior

2:42:34 editor that is Emacs and choose Neovim just to be popular.

2:42:38 You sacrifice integrity and values and quality for just popularity.

2:42:42 It's a choice you made.

2:42:44 Absolutely.

2:42:44 I love how you put it.

2:42:45 Okay.

2:42:46 Anyway, what were we talking about?

2:42:48 I like how you're doing this in bunches.

2:42:50 That's great.

2:42:50 Right now, my kind of side honeys that I'm exploring-- Side honey?

2:42:55 Yeah, side honeys.

2:42:55 They're not my mainstay.

2:42:56 Right now Go's kind of my favorite one to build a web app in.

2:43:00 If I'm gonna build some sort of backend with a lot of complicated logic,

2:43:04 Go's just so convenient.

2:43:05 But I get really frustrated with its ability to express everything that I need.

2:43:09 If you have a list, a heterogeneous list,

2:43:11 a list that contains two types, Go's just really not that fun to use.

2:43:16 And I could see, so the ones I'm exploring is Jai or J,

2:43:21 or the language as Jonathan Blow says, and Zig.

2:43:25 And both of them have a lot of power to them.

2:43:27 They're both very interesting.

2:43:28 They definitely have foot guns in them.

2:43:30 They're definitely more, they don't take it easy on you.

2:43:34 Zig seems like it's a really amazing language, and so does Jai.

2:43:38 They're both very cool.

2:43:40 Yeah.

2:43:40 Actually, I saw Dave Plummer's testing of close to 100 languages for speed,

2:43:45 and Zig came out on top.

2:43:47 Yeah.

2:43:48 That was a mistake.

2:43:49 I mean, when I say mistake, nothing against Dave Plummer.

2:43:51 He's an extremely talented engineer.

2:43:53 It's just that Zig, C, C++,

2:43:56 all those languages that were being tested, they're all LLVM backends, right?

2:43:59 That's the one that actually turns the thing into the executable part.

2:44:02 And if there's a variation in speed, it just means in one language you didn't

2:44:06 quite express what you are supposed to correctly.

2:44:09 There's the language ball test that's been bouncing around on Twitter.

2:44:12 Zig was like sixth or seventh below I forget what language it is.

2:44:16 I played around with the example, added the word "no alias" to the argument,

2:44:21 which means that the piece of memory that's coming into this function,

2:44:24 there's no global pointers, there's nothing to it,

2:44:26 and so the compiler can make these really cool optimizations.

2:44:30 And I made it faster than the C version.

2:44:33 So it just means that it's just not correctly specified is all that means.

2:44:37 Yeah, but it's still exciting.

2:44:39 To me, the competition between Zig, Rust, and C++ is really interesting.

2:44:44 Part of it's for speed.

2:44:45 Part of it's how easy it is to write performant code.

2:44:48 I'll say something that's...

2:44:49 The reason why I think Zig is so interesting comparatively to say C or Rust.

2:44:53 C is the ultimate language.

2:44:55 It can do anything, you have pre-process or macros.

2:44:57 You can do quite a bit with it, but it's also really difficult.

2:45:01 And it's also really simple and you can learn it.

2:45:03 So it's kind of its own unique beast.

2:45:04 And when you get really good at C, C is a magical language and people are really

2:45:08 great at it and people speak very highly of it.

2:45:11 Rust is like this ultra safe language.

2:45:13 What you can do in C, you just can't even express in Rust.

2:45:15 Rust is gonna be the safe man that holds you at night, keeping you warm, right?

2:45:19 It's gonna be just the greatest.

2:45:20 But somewhere in the middle lies Zig.

2:45:22 Zig has optionals.

2:45:23 If you're not familiar with optionals,

2:45:24 that just simply means there's a value here or there's not,

2:45:27 but you first have to check that before you can use it.

2:45:30 So it prevents that whole null pointer dereferencing segfault problem.

2:45:33 And that's not available in C, just by default,

2:45:36 you have to kind of build that thing in.

2:45:37 It is the only option in Rust, but Zig says, "Hey, if you have a pointer,

2:45:42 you can't express it as null unless if you

2:45:44 market that it can be null." There's ways around it,

2:45:46 there's other types of pointers and stuff like that that can do that.

2:45:49 But for the most part, Zig will give you safety for the most part.

2:45:53 So it's like a little bit of safety, but more like C.

2:45:55 So it kind of gives you everything you want

2:45:58 in that region where you can express safe code and unsafe code.

2:46:01 It's very easy to write.

2:46:03 It's very pretty.

2:46:05 Or at least the idea behind it is very pretty.

2:46:07 The language itself is bland, but.

2:46:09 Wow, there's beauty in everything-- Yeah.

2:46:11 Prime.

2:46:12 You've programmed in Rust a lot.

2:46:15 What do you love about Rust?

2:46:16 What are the strengths?

2:46:17 What are the weaknesses?

2:46:18 Maybe you can speak about memory management that you already mentioned,

2:46:22 the challenge of memory management that several of these languages address,

2:46:26 but yeah, what do you love about Rust?

2:46:28 What I love about Rust, I love the ability to free the memory

2:46:34 that you're using is directly tied to the stack.

2:46:36 So whenever you create something,

2:46:38 there's a stack variable or there's some amount of stack memory,

2:46:41 whether it's a pointer off to the heap, a pointer and a length.

2:46:45 So some amount of memory on the stack and then some memory

2:46:48 on the heap because a string is not all on the stack,

2:46:51 it's some on the heap, some on the stack.

2:46:52 And when that stack variable goes out of scope and gets cleaned up,

2:46:56 it also cleans up what's on the heap.

2:46:58 So it kind of simplifies this whole idea of, whoops, I forgot to free my memory.

2:47:03 It just does it for you.

2:47:04 So it's not a garbage collector, which will do it sometime later.

2:47:07 It's not like C where you have to call it yourself, it's somewhere in between.

2:47:11 Now, there's a lot of strategies people use,

2:47:14 arenas and all that that make that C part much easier.

2:47:16 I'm just not even mentioning it, but it just makes it a lot easier.

2:47:19 But Rust does that really beautifully and it's just like

2:47:22 a really cool idea about it and I really like that.

2:47:25 And the second thing that I think Rust does really,

2:47:27 is such a good thing is that mutability of something is you have to specify it.

2:47:35 So you don't just create a variable and then mutate it.

2:47:38 You have to say this is not only a variable, it's a mutable variable.

2:47:41 And I think that just makes code really readable and really understandable.

2:47:45 Because anything that does not have the word mute next to it,

2:47:48 you know for a fact it cannot change.

2:47:52 There's some rules around that, but you get the general idea.

2:47:54 Unlike most programming languages,

2:47:54 you have to explicitly state that this is going to be changed.

2:48:00 [ThePrimeagen] Yeah.

2:48:00 Yeah.

2:48:00 That's really interesting.

2:48:01 I mean it's safe, it's trying to be,

2:48:03 and the safety might be, create limitations.

2:48:08 Let us consult the AI overlords.

2:48:12 Rust is a blazing fast memory

2:48:13 efficient systems programming language that emphasizes performance,

2:48:16 type safety and concurrency.

2:48:22 The language enforces memory safety without

2:48:24 using a garbage collector, as you said, instead utilizing the unique, quote,

2:48:28 "borrow checker" that tracks object lifetimes at compile time.

2:48:33 This prevents common programming errors like null point

2:48:36 or dereferencing and memory leaks and so on, yeah.

2:48:40 So you've also spoken about metaprogramming.

2:48:43 Which of these languages do you like for the metaprogramming?

2:48:46 I love metaprogramming in C++, but it's a giant mess.

2:48:49 At least when I program C++ 17 standard, I believe,

2:48:54 it's just a mess, especially a mess to debug.

2:48:57 Yeah, I would consider myself kind of a metaprogramming newbie.

2:49:00 I have only solved some amount of problems with it.

2:49:04 That's kind of like what this year is for, is for me to really,

2:49:06 I want to see where the ends can go in that.

2:49:09 So I don't have a strong opinion on this one.

2:49:11 Zig, one thing I really like about Zig

2:49:13 is that the metaprogramming is also the language itself.

2:49:17 So you don't have to, there's not an alternative.

2:49:19 So with Rust there's an alternative.

2:49:21 When you create a macro, you have to do the macro syntax.

2:49:24 With Zig, it's just, it is the thing,

2:49:26 you just program it and you add the word comp

2:49:27 time if you want it to be a compile time only.

2:49:30 So you can create the list of prime numbers at compile time in Zig,

2:49:35 which is kind of an interesting, unique thing.

2:49:38 So you have code that executes at compile time and then

2:49:40 you can take advantage of the result of it at runtime.

2:49:43 So neat, right?

2:49:45 That's how I'd look at it.

2:49:47 But again, I haven't used it to the point where

2:49:49 I feel like I can super authoritatively talk about it.

2:49:53 You have been undecided, what language are you going for this year?

2:49:57 I'm gonna keep Go as my mainstay, my two side honeys, Jai and Zig.

2:50:01 I'm going to explore and try to build out a service

2:50:04 in them that can do a bunch of talking to, say,

2:50:07 ChatGPT and ElevenLabs and send stuff down to client and work with web sockets.

2:50:10 And I want to make sure that, I just

2:50:13 want to see how do they perform in this realm.

2:50:15 And I may be using the language incorrectly, like Jai,

2:50:17 it's not really been designed for the web world.

2:50:20 I just got done writing the ability to read

2:50:23 Twitch Chat and it required me to do Berkeley sockets.

2:50:26 So if you're unfamiliar with Berkeley sockets,

2:50:28 it's like the old way of doing it, it's how you do it in C.

2:50:30 So you have to kind of go through

2:50:32 the whole nine yards of creating your own connection.

2:50:34 I had to create my own connection, I have to read from the socket,

2:50:38 then I have to parse out all the IRC, right?

2:50:40 You have to kind of build it from scratch.

2:50:41 There's not like a new TCP connection to this server.

2:50:44 You have to be like, "I'm creating a socket." You're gonna be of the IPv4

2:50:48 family and TCP and you're gonna do, you know,

2:50:50 I'm gonna now have to take your address and go look up your address with DNS,

2:50:53 get that address back and then connect to a TCP.

2:50:56 So it's a lot more manual still.

2:50:58 It's a lot more raw in that area, but it's fun.

2:51:00 What are some epic projects you've built on stream that jump to memory?

2:51:05 My most favorite...

2:51:07 Sorry for interrupting you.

2:51:07 So I'm really jazzed right now.

2:51:11 Let's go.

2:51:11 Okay.

2:51:12 So jazzed.

2:51:13 Jazz hands.

2:51:14 My most favorite project was the one I did last year.

2:51:18 Someone built a Doom ASCII port.

2:51:21 So you could play Doom with ASCII.

2:51:23 So that means you could play it in your terminal.

2:51:25 Very, very fun, very excite.

2:51:27 So I made a Go program that could spawn out the Doom ASCII,

2:51:31 then I took that Doom ASCII and I sent it

2:51:33 to the browser so that people could play Doom ASCII in the browser,

2:51:37 but then I made it so that Twitch chat could

2:51:39 control that instance of Doom ASCII by piping in Twitch chat,

2:51:44 taking the average of the movements over so much

2:51:46 time and replaying it as if it was a controller.

2:51:48 And I had Twitch chat beat level one by spamming it.

2:51:52 But the fun part was I used a bunch of fun encoding techniques.

2:51:55 I used quad trees to be able to take

2:51:57 smaller amounts to use run length in coding.

2:51:59 Tried to create my own compression algorithm because

2:52:02 if you're sending out a bunch of ASCII stuff,

2:52:05 it's still pretty expensive because you

2:52:07 have to represent color, color's not cheap.

2:52:09 On top of it you have to represent what does it look like?

2:52:10 What does the ASCII look like?

2:52:12 Well, I realized there's all these fun techniques you

2:52:14 can do for compression like the shape of the ASCII

2:52:17 you send down in a lot of these engines

2:52:21 are actually just proportional to the lumosity of that pixel.

2:52:24 So you'd use an eight to represent

2:52:27 or a pound sign to represent white, but black,

2:52:29 you're gonna want to do a period or a comma or a bar, something smaller.

2:52:33 So it's like I then developed all these different

2:52:36 compression algorithms that turn a bunch of data,

2:52:38 which would take, I forget how much it would take.

2:52:40 It'd take gigabytes upon gigabytes to be able to send out to thousands

2:52:43 of people to all see the same image at the same time,

2:52:46 to all be able to interact with Doom at the same time.

2:52:48 I turned it from gigabytes into kilobytes by just trying to figure out

2:52:52 how to make it as small as possible and send it all out.

2:52:54 It was super fun.

2:52:55 Absolutely had a great time.

2:52:57 So you're actually sending it to all the people in chat.

2:52:59 So where's that pipeline, how chat is able to control the Doom thing?

2:53:06 Twitch chat.

2:53:07 Yeah, so they would go, people would spam W and if you said W,

2:53:12 it would hold down W for 150 milliseconds if

2:53:15 the majority of people during that time period said W.

2:53:18 Nice.

2:53:19 Okay.

2:53:19 And how are they getting the input of where you are on screen?

2:53:23 So originally I was gonna send that through Twitch,

2:53:25 but Twitch is like five seconds behind,

2:53:27 so that's why I piped it out to a website- Ahhh.

2:53:30 so everybody could see from my computer to the website

2:53:33 and typical lag was right around 70 milliseconds.

2:53:37 So it's like they could mostly see what

2:53:39 was happening in that short period of time.

2:53:40 It was pretty exciting.

2:53:42 So we had 1,000 people,

2:53:43 or I had somewhere between 1,000 to 1,400 people smashing Ws

2:53:47 and pressing F to fire and turning and we killed some zombies.

2:53:51 We blew up the barrel at the very end of level one to kill the Imp.

2:53:54 How are you getting the Ws from the Twitch chat?

2:53:57 Is there an API?

2:53:58 I was using IRC, so just a little TCP socket and then you just parse out IRC.

2:54:03 Okay.

2:54:03 And there's very little lag there.

2:54:05 Okay.

2:54:06 Yeah, I think it's a couple hundred milliseconds though.

2:54:07 It's enough that it actually made it

2:54:09 a little bit difficult because people would often overturn

2:54:11 and then go forward and miss the door and then they had to go back and...

2:54:16 That's awesome.

2:54:17 It was awesome.

2:54:17 So that was my favorite I think project of all time

2:54:20 just because I never got to do a lot of encoding.

2:54:23 Encoding's kind of like, what do you normally do?

2:54:26 Okay, I need to send something down.

2:54:27 I don't know, gzip it, server will just do it.

2:54:29 Server just does the right thing.

2:54:30 I don't need to think about it.

2:54:31 So instead it's like I think about it, I'm gonna send the right thing.

2:54:34 Yeah, you have to think about the compression.

2:54:36 Yeah.

2:54:36 And there you go.

2:54:37 That's some more love towards FFmpeg because

2:54:39 they have to think about that a lot.

2:54:42 Ultimately inspired by FFmpeg and their awesomeness.

2:54:47 So can you speak to just the chat community in general?

2:54:51 A big part of what you do in terms

2:54:54 of streaming is the humans that are communicating with you live.

2:54:59 Can you talk to the different chat communities?

2:55:02 First of all, which is the best chat community, YouTube, Twitch, or X?

2:55:08 This is where I feel bad for YouTube,

2:55:10 because I do think it's technically the worst, but it's not YouTube's fault.

2:55:14 And let me kind of explain why.

2:55:15 And then I will explain why you're wrong.

2:55:17 But go ahead.

2:55:18 YouTube is great.

2:55:19 I know you love YouTube but let explain why,

2:55:21 is that when you go on Twitch, you go to anyone's channel,

2:55:27 they have this cultural human centipede

2:55:30 thing that's happening where as the memes

2:55:33 flow in, all of Twitch reacts and morphs to all those memes.

2:55:37 So every channel you go to has this same culture.

2:55:40 There's a lot of similar emotes and everything, so it's very tight-knit.

2:55:44 So when I stream, I get all the same

2:55:47 jokes that you would pretty much see if you saw,

2:55:49 I don't know, Sodapoppin or some big streamer,

2:55:51 Asmongold, whoever, Portahteh software streaming.

2:55:55 All the same memes would all flow through the exact same kind of pipe.

2:55:58 And so it's a very holistic kind of community.

2:56:01 So every time you're making jokes, you're making jokes that are in the ether.

2:56:05 Twitter kind of has that too.

2:56:06 Tech Twitter kind of has a set of jokes and so you can kind of see it.

2:56:10 The problem with Twitter chat is that there's just nobody there right now.

2:56:14 Typically just to put it into perspective, I have somewhere between,

2:56:19 somewhere between like 1,500 to 3,000 people on Twitch,

2:56:24 somewhere between 800 to 2,000 on YouTube, and like 50 people on Twitter.

2:56:29 So the difference is massive.

2:56:31 But Twitter has that same thing that's developing

2:56:34 where there's memes that are constantly flowing through it.

2:56:37 And so they're very highly connected.

2:56:39 YouTube just doesn't seem to have that.

2:56:42 They're just a bunch of people and people go to YouTube for various reasons.

2:56:45 I'm going to YouTube to learn.

2:56:46 So they come in and they want to learn.

2:56:48 So they're not on the meme train, they're not in this cultural zeitgeist train.

2:56:52 They're just like, "But why would you use this if statement when

2:56:54 a switch statement in this one particular case?" And you're just like,

2:56:57 well, that's not what I'm trying to do here.

2:56:59 Yeah, you want to captain the meme train or you want to ride on the meme train.

2:57:04 Yeah, or you just want to be able to create a culture on your chat

2:57:08 because your chat's gonna be some variation

2:57:10 of that kind of zeitgeist that's flowing through Twitch.

2:57:12 And it kind of is very contiguous between X and Twitch.

2:57:16 It just feels really out of sync with YouTube.

2:57:18 And then YouTube particularly does a bad job.

2:57:21 And some people would argue a good job because you can swim.

2:57:24 Swim being, you can actually change what timestamp you're at.

2:57:26 So all of a sudden you'll be like,

2:57:28 oh yeah, something about driving to soccer in my minivan.

2:57:33 And then 20 minutes later you'll be talking about Zig and then someone's like,

2:57:37 "I personally use whatever to drive to soccer." And you're like,

2:57:40 "What are we talking about?" So YouTube is a very disjointed chat

2:57:43 as well because it depends on where they're at within the video.

2:57:46 Swim comes from Netflix, by the way, call it swim.

2:57:51 The term?

2:57:52 Yeah, people said swim.

2:57:55 Oh, so you're, okay.

2:57:56 Swimming through the...

2:57:57 Yeah.

2:57:57 So you're not just making up the term.

2:57:59 Thank you.

2:57:59 Wow.

2:58:00 Yeah, but it's probably made up and probably only 10 people said it at Netflix,

2:58:02 so no one's gonna know it and they're gonna be like, "Yeah, right.

2:58:04 That doesn't happen on Netflix."- So going back to projects,

2:58:09 what projects on stream or in general?

2:58:11 No, you need to answer why YouTube chat's the best chat.

2:58:15 Well, you kind of convinced me.

2:58:16 Okay, why YouTube is the best chat.

2:58:20 Well, I think I'm just a hater.

2:58:22 That's basically what it boils down to and I'm just talking shit.

2:58:25 Love it.

2:58:26 And I'm probably just from the outside shooting

2:58:29 in because Twitch is such a fun culture of memes.

2:58:34 And so it's just fun to shoot from the outside to egg the house of Twitch.

2:58:41 And then I just sit back on my lawn

2:58:44 chair with the small YouTube community just talking shit.

2:58:48 No, you're absolutely right.

2:58:49 There's a real sense of community that Twitch can form.

2:58:53 But I just like the openness of YouTube.

2:58:55 It's just better at opening to the world.

2:58:59 It's more accessible, it's easier to share.

2:59:04 It's just a more established platform, that's all.

2:59:06 Fully on that team.

2:59:11 For the open world.

2:59:11 I can send it to people that don't usually

2:59:14 watch video game streaming or that kind of stuff.

2:59:16 Yeah.

2:59:16 If you send a Twitch link, they're like,

2:59:18 "I don't like video games." And you're like,

2:59:19 "Well actually it's not video games." That talk happens every single time you

2:59:24 mention Twitch because Twitch does have

2:59:26 a perspective about it that YouTube does not.

2:59:29 I was just on Joe Rogan's podcast and I think it came up,

2:59:34 he asked something like,

2:59:36 "Is Twitch still a thing?" So that just gives you an example.

2:59:41 And then Jamie said, "Yeah, yeah, it's definitely still a thing.

2:59:45 It's still growing and so on." And so yeah,

2:59:48 there's just a big slice of humans that don't participate in the Twitch sphere.

2:59:55 Yeah, I just like talking shit so yeah.

2:59:57 That's a beautiful answer.

2:59:58 But it's cool that you sort of make

3:00:01 it accessible on all these different platforms.

3:00:03 And I have high hopes for X, but yeah,

3:00:05 it's feature-wise still has a lot of growing up to do.

3:00:09 And just why do people use X?

3:00:12 You typically are going there for a text-based

3:00:14 interaction you want to look through.

3:00:15 So I also think they just have a user expectation change that needs to happen.

3:00:20 And that just takes a while.

3:00:21 That's gonna take a little bit before people get to it.

3:00:23 I think their idea of audio first is a great first step

3:00:26 where people can listen to it and have the phone away maybe.

3:00:30 There's a lot of changes that have to happen before X can be successful in that.

3:00:34 I mean, X has this incredible comment section just like Reddit, right?

3:00:38 So it's like...

3:00:40 You said incredible.

3:00:41 That's not Reddit.

3:00:42 Comment section, correct.

3:00:44 Comment, yeah.

3:00:44 Incredibly dynamic and vibrant even if it's...

3:00:50 Yeah.

3:00:50 What is the technological platform?

3:00:55 How does the interface and the technology shape the discourse?

3:01:02 It's fascinating because X has a different style than Reddit,

3:01:08 different style than Facebook, different style than Instagram.

3:01:12 It's interesting.

3:01:13 And all those common sections are different technologically,

3:01:17 like how the sorting is done,

3:01:19 how easy it is to sort of build a community around it?

3:01:24 Because YouTube is not really a community.

3:01:27 Every single video on YouTube has its own mini community.

3:01:31 You're all talking on just that one video.

3:01:34 But you can't jump across.

3:01:37 There's not like, "Hey Bill,

3:01:38 hey George." There's no crosstalk that happens in multiple videos.

3:01:42 Yeah.

3:01:42 But the community is awesome.

3:01:44 I love community.

3:01:45 I love the feeling of community and I guess that's what Twitch really provides.

3:01:49 YouTube also does have it though.

3:01:50 They have an aggregate community.

3:01:53 There's a lot of fun comments and all that on the videos and a lot of thumbs

3:01:56 up and then you see the fun discourse

3:01:58 that happens and it's like that's the community,

3:02:00 it's just only a certain slice sees it.

3:02:03 I think that's even more so on YouTube for live-streaming.

3:02:07 All the same folks show up and they talk shit,

3:02:10 they celebrate, the meme train arrives.

3:02:14 Yeah.

3:02:15 Okay.

3:02:15 So now, what projects shape you as a programmer?

3:02:19 Whether the ones you streamed or offline.

3:02:24 For me, I don't know if there's a one project I can point to, but I can point

3:02:28 to a specific spot where I think it happens

3:02:30 and where I think you can learn a lot from.

3:02:33 Any small program you write will be somewhere between 1,000

3:02:36 to 5,000 lines of code I consider a pretty dang small project.

3:02:40 You can correlate this to any feature within a larger system as well.

3:02:44 A specific feature on a website could be a thousand lines,

3:02:47 a couple thousand lines.

3:02:49 There's a point in which all of your choices add up.

3:02:51 And I typically find that right around 5 to 10,000 lines of code.

3:02:56 The choices you've made either weigh you down or kind of free you up.

3:03:00 And so it's right in that, that I feel like I

3:03:02 learned the most is because I love getting to that point

3:03:05 in a project or in some small part of the code

3:03:08 base because at that point I get to test,

3:03:10 A, how good were my initial gut decisions

3:03:12 about how I designed the software, but B,

3:03:14 now I need to go back and think about how am

3:03:17 I going to do testing across this in a more effective way?

3:03:19 How can I scale this out to 20,000 lines of code?

3:03:21 How can I do all these things with what I've

3:03:23 got or do I need to kind of rethink it?

3:03:25 And I find that that's really where the best learning

3:03:28 happens is that everybody has probably a different number that exists,

3:03:33 and as you go to each one of these numbers

3:03:35 or how well or holistic you want your project to be,

3:03:39 I think that you'll come up with different numbers.

3:03:41 And I think that number should just get bigger as you get more experienced.

3:03:44 Because there's projects that are a million lines of code,

3:03:47 but they're most certainly not holistic, right?

3:03:49 Every part of the code base is some age

3:03:51 at some capsule of time with some sort of programming style.

3:03:55 Some is more functional, more class-based, more,

3:03:58 God help your soul if it's pre-processor macros in C++.

3:04:02 There's all these different kind of things you'll find throughout time.

3:04:05 And so that's why I try to think about

3:04:08 it as the feature or the thing you're working on.

3:04:10 It's usually about 5,000 lines is where I find that things

3:04:14 get kind of, did I make good or bad decisions?

3:04:16 And that's where I do all my learning is, right, on that phase.

3:04:18 I'm trying to get it to the point where I should be able

3:04:20 to shoot from the hip and do 20,000 lines and not be upset about it.

3:04:24 So first of all, just enjoying the thing you create part, yeah.

3:04:28 About there you can sit back and see all the parts dancing together.

3:04:33 For me, also debugging,

3:04:37 you get to see the choices you make materialize as like how easy it is to debug.

3:04:42 I'm a big proponent,

3:04:43 I think you've mentioned this in the past, I put asserts everywhere.

3:04:48 No.

3:04:49 You are the reason why I do that.

3:04:50 You were like the first one.

3:04:52 Keep on going, sorry.

3:04:53 Really?

3:04:53 Okay.

3:04:55 So for me, one of the joys, whether it's try catch box,

3:05:00 whether it's assert, whether it's with the testing,

3:05:05 I get to see the payoff of all the minefield of asserts I've laid out before

3:05:13 me in my kingdom by how quickly I can debug a system as it grows larger.

3:05:17 And I can first of all discover errors before they become

3:05:22 real bugs and also how quickly I can solve those errors.

3:05:26 And that brings me joy.

3:05:28 For me, a lot of the joys of programming

3:05:30 is creating powerful systems that don't break down,

3:05:36 that work correctly, that work correctly in majority of the cases.

3:05:39 And there, sort of the stress testing the system

3:05:43 and getting all of the signals from that system

3:05:47 that everything is working correctly is something that fills me

3:05:51 with joy and makes sure that the system actually works.

3:05:54 So yeah, that, I don't know if it's 5, 10,000 lines of code,

3:05:57 if it's Java or C++ it's millions lines of code.

3:06:00 But yeah, in Python, yeah, I would say 10,000 lines of code.

3:06:05 That's when you first get to see the magic.

3:06:07 But anyway, you were saying?

3:06:08 Okay, so you and John Carmack had a conversation about asserts.

3:06:11 Yes.

3:06:12 You talked about this idea of putting asserts

3:06:13 everywhere that effectively crash the program when you have

3:06:17 some state in your program that should not

3:06:20 be represented and you have made this choice actively.

3:06:23 And so I've never done that before.

3:06:25 And I know this is like an old technique and I obviously must be

3:06:28 too young or too dumb to know that this was a thing people did.

3:06:31 I grew up in Java and I think that's probably why I didn't run into this.

3:06:35 So I saw that and I was like, I'm curious about how to use asserts more.

3:06:38 And then I ran into a person named Joran.

3:06:40 He's the CEO and creator of TigerBeetle.

3:06:42 It's like the world's fastest, greatest financial database.

3:06:46 And it was spawned out of a company

3:06:48 that needed to do a bunch of financial transactions.

3:06:49 And it's written in Zig and what they do is they do deterministic simulation

3:06:54 testing and they just use NASA's kind

3:06:57 of guarantee for creating really great software.

3:07:00 So don't use U size, specify your exact size of int you expect everywhere.

3:07:04 All these kind of things they do to be very specific.

3:07:07 And one of them is that every function should contain two asserts.

3:07:12 Whether it's positive space like these things should happen or negative space,

3:07:16 like this pointer should never be null.

3:07:20 You're programming into things that should never happen.

3:07:22 Normally, you would just never specify that.

3:07:24 You'd never think about that.

3:07:25 So every single function everywhere has all these asserts

3:07:28 and these asserts run both in production and in testing.

3:07:31 They're always on.

3:07:32 And then they take deterministic simulation testing

3:07:37 and run like 200 years of just random data,

3:07:41 just complete slop going through the system and seeing how far it goes.

3:07:44 And when an assert happens, they're like, here's the input that caused it,

3:07:47 here's every last little bit that happened,

3:07:49 and now you can identify where this went wrong.

3:07:51 And it was so cool.

3:07:52 So between you, John Carmack and Joran,

3:07:55 that's where I got like, okay, I got to really...

3:07:57 And NASA, I'll throw NASA a bone as well.

3:07:59 NASA can join in on that one.

3:08:01 I was like, okay, I want to try this.

3:08:02 And I did try it.

3:08:03 I built this big reverse proxy for me trying to do some game development stuff.

3:08:08 And I just went ham on the asserts.

3:08:11 And then I built the whole simulation

3:08:12 testing thing that could do everything deterministically.

3:08:14 So even the result of requests would all come in specific orders.

3:08:18 And I found a bunch of bugs that I just would never have found.

3:08:20 And then I did it for a game I was making.

3:08:22 I found some bugs where my cursor went off-screen,

3:08:24 it would cause all these different problems because I just never tested them.

3:08:26 And it's super fun and it's like a really great way to program.

3:08:30 Yeah, I think it's a skillset you grow over time.

3:08:32 It's not just that you have to specify the preconditions,

3:08:36 everything that has to be true,

3:08:39 it's also adding things that are like, you might not even think about.

3:08:45 You have to sort of anticipate really weird things.

3:08:49 And if you add asserts,

3:08:51 especially in complicated functions or in complicated classes

3:08:54 that are able to catch really weird things,

3:09:00 that's going to save you so many headaches and it's

3:09:03 going to help you learn about your own code.

3:09:07 This is one of the things, I think it was Jonathan Blow that either

3:09:12 in conversation with you or was it in a presentation,

3:09:17 he said that when he's starting in a project,

3:09:19 he usually doesn't know how to implement it, how it's going to work.

3:09:28 And I think he was saying that he wants a programming language.

3:09:32 This might have been a criticism of C++, I'm not sure,

3:09:35 where he wants a programming language that makes it as painless

3:09:39 as possible for him to not know what he's doing, how he's going to implement it,

3:09:44 and to quickly get to a place where he figures it out.

3:09:47 I think there's a fundamental part of programming is building stuff

3:09:53 while not really knowing what the next thing you're doing is.

3:09:59 You kind of have a loose design, maybe a strict design,

3:10:01 but really you're solving puzzles that are not...

3:10:04 It is a dark room in a fundamental sense.

3:10:07 And there you have to anticipate the kind

3:10:10 of weirdnesses that might emerge while not really knowing everything.

3:10:14 Just this full fog, fog of war.

3:10:20 And there that's a real skill to anticipate the kind of issues

3:10:24 that might arise and put a asserts on top of them.

3:10:27 And it's also like spiritually, for me,

3:10:32 been a really nice way of programming a building

3:10:34 of living life as having very strict asserts that say,

3:10:41 "You're gonna fix this problem if it ever arises.

3:10:45 You can't just look the other way." This idea of treating warnings as errors.

3:10:49 Make sure your code compiles without any warnings.

3:10:52 That was a big leap for me.

3:10:53 It's like, but there's so many of them and it's not really that important.

3:10:57 It's like, no, no, no warnings.

3:11:01 Make sure you treat every single problem, even fuzzy problems seriously,

3:11:07 because that's actually long-term is going to create code that's much easier

3:11:12 to work with, much more fun to work with, much more robust,

3:11:15 resilient to all kinds of weirdnesses, all that kind of stuff.

3:11:18 So it's a different way of approaching coding,

3:11:20 probably more NASA-like versus web programming style.

3:11:26 But yeah, it has made programming for me personally,

3:11:30 much more fun because one of the most painful

3:11:33 things about programming is creating when you get past 10,000,

3:11:37 20,000 lines of code and you have to find a bug.

3:11:42 And that bug can take hours, it could take days to find, and that's torture.

3:11:48 Yeah, when your system gets sufficiently large,

3:11:49 some of these bugs are just, they are very difficult.

3:11:54 Bless anyone's soul that's working on million line code bases, because it does.

3:11:58 I can't tell you how many times I've spent multiple days

3:12:01 just trying to figure out the root cause of the bug.

3:12:02 Not even the fix.

3:12:03 Just like why does this happen?

3:12:05 And that's hard.

3:12:06 So I love that.

3:12:07 I just love the asserts because I'm not good at them,

3:12:10 I can see it's definitely a skill that I don't put into practice constantly,

3:12:14 which means it's just not like a muscle memory type thing.

3:12:17 And so it's just one of those things I just love.

3:12:20 It's such a fascinating way to approach a problem,

3:12:23 because I would've never thought, you know what I'm gonna do?

3:12:25 If I'm wrong, I'm gonna crash this thing and I'm

3:12:27 gonna crash it right here because I should never be wrong.

3:12:30 But instead you're like, "Oh, actually that makes perfect sense.

3:12:33 I should crash this thing.

3:12:34 I've done something terribly wrong here.

3:12:35 Why would this ever exist?" And then you're like,

3:12:38 "This is gonna solve a whole class of problems."- Yeah,

3:12:40 and especially if it's in production, it's like,

3:12:42 well a user's going to see this crash.

3:12:44 It's like, yeah, well you should minimize the number

3:12:47 of times any user ever sees the crash,

3:12:50 not by having a nice blue screen or whatever the fuck,

3:12:54 but actually stopping everything.

3:12:57 And that's going to create an incentive for you to never have that happen.

3:13:03 You're actually going to put in the time to make sure it never happens.

3:13:06 And the nice part is with the web and all

3:13:08 that, you can always pop up something and say, "Hey, things have gone very,

3:13:11 very wrong or unable to recover." You can give them a nice

3:13:14 message and then log it off so you can see it,

3:13:16 and then measure how often are you doing it.

3:13:18 I understand that there's a bit of interestingness to a web

3:13:22 project like do you want to always crash a server?

3:13:26 There's a bit of a gamble if you release

3:13:28 a bad version and you crash all your servers constantly.

3:13:31 That's a pain you're going to have to accept.

3:13:33 I think this is more applicable for single systems like robots and so on.

3:13:38 You have struggled with ADHD.

3:13:42 I think a lot of people are really inspired by the fact

3:13:46 that you're able to be productive and flourish while having ADHD.

3:13:52 How'd you overcome it?

3:13:54 Well, there's a lot of things that ADHD affects

3:13:56 and so I'll start with some of the easiest things,

3:14:02 because there's directly applicable,

3:14:03 then these kind of collateral damage applicable things that happen.

3:14:07 So one thing that has really helped me with ADHD is maturity.

3:14:12 I think that's just a thing that everyone needs more of.

3:14:16 Meaning that I found myself getting so wiggly and so out

3:14:19 of control when I would try to sit down and read, and I just couldn't handle it.

3:14:23 I just felt like I'd read a page and didn't read anything.

3:14:26 The part of me that just went, "Oh man, gosh, I just can't even do this." I had

3:14:30 to just simply quit listening to it and said, "Nope,

3:14:32 I'm rereading this page." I remember reading some

3:14:34 pages in college like 18 times in a row,

3:14:37 just like I'm going to force myself to just do this the correct way.

3:14:40 And so there's an aspect of maturity that really helps, no matter what,

3:14:44 I will do the thing I'm going to do and I'm going to do

3:14:46 it well and maybe it takes me a lot longer and that's okay.

3:14:50 That's not the point of it.

3:14:51 It's that I'm doing it and that's the point.

3:14:53 And so that's one thing that I think just generally helps.

3:14:56 And ADHD, no ADHD, the resilience,

3:15:00 emotional resilience is just a really important aspect that just helps.

3:15:04 And so I think that has been a large part that really helps me.

3:15:08 There's things that I still obviously struggle with.

3:15:11 It's clear where I'm really bad at stuff,

3:15:15 and just trying to think through all the different things that I'm bad at.

3:15:24 There's more things I'm bad at than I'm good at.

3:15:26 And so programming obviously has something that just allows me

3:15:29 to remain focused and it's like a strength of mine.

3:15:32 And so I started off where I could just do it

3:15:34 for a little bit and then just through kind of that emotional resilience,

3:15:37 I was able to start doing it more and more.

3:15:38 And so now I can just do it for like 10,

3:15:40 12, 15 hours at a time and I absolutely love it.

3:15:43 And so it's become kind of like a joy.

3:15:46 It's like playing a musical instrument.

3:15:47 I'm really into it.

3:15:48 But then if it came down to, "Hey, you need to go schedule your own dentistry

3:15:54 and go do all these other things or make sure

3:15:56 the kids have this type of stuff ready

3:15:58 for the meals you need to pack throughout the week.

3:16:01 I'm historically very bad at that and will

3:16:05 probably continue to be very bad at that.

3:16:07 And so I must say that one of the reasons why I excel so much

3:16:12 is because I also have a wife who is so good to me and she helps

3:16:16 clear out a lot of the things in my life that cause a lot of me

3:16:20 kind of getting snowballed into a weird

3:16:23 spot where I'm just distracted getting nothing done.

3:16:25 And so she's really helped me.

3:16:27 So it would be foolish of me to claim that I've defeated the ADHD by myself,

3:16:31 but instead I find that the places that I

3:16:35 can really control I've done a very good job

3:16:37 at, and the things that I obviously need to do

3:16:39 much better at, my wife has helped me a whole bunch.

3:16:41 And so I've kind of cheated.

3:16:42 Maybe I found a cheat code, a loving wife.

3:16:44 But that has been the thing that has really helped.

3:16:47 You said a lot of interesting things.

3:16:49 So on the reading and for me it's also audiobook side,

3:16:52 I do the same thing and I've gotten much better at it,

3:16:56 which is I tune out mentally and I read

3:17:01 a page and you don't understand anything on the page.

3:17:04 You didn't actually read it.

3:17:07 And yeah, I forced myself to just reread it or re-listen to an audiobook,

3:17:12 which is a much more common problem for me now,

3:17:15 and forcing myself to really pay attention.

3:17:18 Because I listen to audiobooks often when I

3:17:19 run and it's so easy to just tune out.

3:17:23 It's a skill.

3:17:24 I didn't realize how much of a skill listening to an audiobook is,

3:17:27 especially when there's other sensory inputs like when you run.

3:17:31 So I have to force myself to really pay attention to every single word.

3:17:35 And if I don't, like tune out and don't remember

3:17:39 what I just listened to in the past 30 seconds,

3:17:41 I force myself to re-listen to it.

3:17:43 And sometimes that means five times until, it's like punishing myself to like,

3:17:48 "You're gonna listen to this boring shit over and over until you

3:17:51 get good at that little skill of like zoom in." And you're like,

3:17:56 yeah, there's people, they're doing stuff, there's nature, it doesn't matter.

3:18:00 You're listening to every single word and loading

3:18:02 it in and trying to stay focused,

3:18:05 even there's just so many distractions all around you, yeah.

3:18:08 It's definitely a learned skill and it takes a lot of time.

3:18:10 And when I say, "Oh, I was able to do from here to here," I'm speaking

3:18:13 over the course of like five years of doing this every day.

3:18:16 It's not some small...

3:18:17 There's no...

3:18:19 The nice part about that decision though is you can make that decision today.

3:18:24 You can make it right now.

3:18:25 You're going to be like, "From here on out, I'll never make that mistake again.

3:18:27 I will say I'm going to read 50 pages, I will sit down and read 50 pages,

3:18:31 and when I get distracted I'll go back to the last place I

3:18:33 remember and I'll start again." And like that's a decision you can make.

3:18:36 That's a mature, non-emotional decision to make.

3:18:39 And you can do that, it just may be really

3:18:42 painful for the first couple years of making said decisions.

3:18:45 And then it gets easier and then it gets easier,

3:18:47 and then it becomes more natural to change yourself.

3:18:51 Yeah, and with every medium, with every platform, I think it's like a new skill.

3:18:57 For me, like using social media has been that, just

3:19:00 like I end up like doom scrolling too easily on platforms.

3:19:05 And one solution is not to look at all,

3:19:08 which is kind of what I lean on mostly these days,

3:19:11 but I feel like I should be able to check, just read, okay,

3:19:14 feel a thing, learn a thing, and then put it down,

3:19:18 versus you have this glazed look over your eye and you're not

3:19:23 really paying attention anymore and you're

3:19:25 dead inside and you feel horrible afterwards.

3:19:27 I don't understand.

3:19:30 The horrible afterwards is real serious.

3:19:32 I've definitely...

3:19:33 I can 100% notice that I am a more

3:19:36 anxious person the more time I spend scrolling.

3:19:38 Yeah, yeah.

3:19:39 I can just feel it.

3:19:40 It's like something inside of me that's kind of...

3:19:42 I don't know how to say it other than it like

3:19:44 wants to get out but I don't really know what that is.

3:19:45 It's not anger, but it's not...

3:19:47 It's very anxious.

3:19:49 It's like the opposite of the feeling I have when

3:19:52 I wake up in the morning and I'm feeling good,

3:19:53 and I look out in nature and look at the sun and just,

3:19:58 and there's like a bird chirping and this kind of thing.

3:20:02 Scrolling through social media,

3:20:04 even if it's like super positive stuff or whatever,

3:20:06 it's still not the same feeling as the bird chirping.

3:20:09 Bird chirping on Instagram is a different bird chirping than in real life,

3:20:13 'cause bird chirping on Instagram,

3:20:15 I'll start swiping until there's demons of different

3:20:18 types fighting inside my head and then different anxiety,

3:20:23 insecurity, whatever the hell.

3:20:25 Just the mixture of chaos versus the bird chirping in real life.

3:20:31 That is beautiful.

3:20:31 But again, that's the same thing as with the audiobook.

3:20:34 It boils down to...

3:20:36 Man, these people that talk about meditation, I think that's probably...

3:20:39 They're onto something, because that's what it is be able

3:20:43 to like focus calmly and deliberately on a thing,

3:20:48 whether it's reading or audiobook or existence.

3:20:55 When they sort of observe the breath,

3:20:56 you're able to silent out everything else and remove everything else from focus.

3:21:01 Yeah.

3:21:01 That's a skill.

3:21:02 That's a skill.

3:21:03 I heard it put really beautifully,

3:21:05 which is that we in America really have misunderstood liberty because we

3:21:09 typically have liberty as just the freedom to do whatever you want.

3:21:12 And the argument was that it's not the freedom to do whatever you want,

3:21:15 it's the freedom to be able to do what you will.

3:21:17 And how often is what you actually want to do,

3:21:20 you don't do because you get trapped doing something that you've

3:21:23 convinced yourself in this quick moment you want to do?

3:21:26 And so it's like, "I want liberty.

3:21:27 I want the ability to control my energy and to be

3:21:31 able to do the thing I want to do,

3:21:33 not to get distracted and destroyed in all the millions of distractions."

3:21:37 And some of us get handed a worse deck of cards,

3:21:40 some of us get a better deck of cards,

3:21:41 but I don't think there's anybody that doesn't

3:21:43 struggle with it in the technological age.

3:21:45 Yeah, and that's the skill.

3:21:46 What can you say to the skill of achieving focus in programming?

3:21:51 Do you have a process of how you sit down and try to sort of approach a problem?

3:21:57 So, all the different,

3:21:59 not just distractions but the challenges of starting a project,

3:22:04 of thinking through the design, how to maintain real focus,

3:22:08 because it's really difficult intellectual endeavor.

3:22:12 At this point I'm lucky,

3:22:14 but when I first started I can remember that every last part of programming,

3:22:19 I had to go look up, I had to go read, I had side quests at all time.

3:22:24 Every step was a side quest.

3:22:25 Why is my screen blinking when I'm trying to render this thing out?

3:22:28 Oh, I didn't know about double buffering.

3:22:29 Why is this happening?

3:22:30 How do I even write to the screen?

3:22:31 How do I...

3:22:32 Everything was a question.

3:22:33 I had more questions than answers.

3:22:35 And so I constantly had the problem of side quests,

3:22:38 and I find that to be a very exhausting thing.

3:22:41 But as I learned my instrument very,

3:22:43 very well, I don't have as many side quests.

3:22:46 I become more and more able to just focus on the thing I want to do.

3:22:50 And I find that to be something that is just super, super useful.

3:22:54 So, when I say I'm kind of lucky,

3:22:56 meaning that I've spent so much of my life preparing

3:22:59 for this moment that now when I have the opportunity to do something,

3:23:03 I can just do that thing and I don't...

3:23:04 Like I can be just on an airplane and I can just program for hours.

3:23:07 I don't have to look up a single thing.

3:23:08 I don't have to do anything.

3:23:09 I don't even have to test the code.

3:23:10 I can write 1,000 lines of code on an airplane

3:23:13 and I'm very confident that it's gonna be 98% pretty dang good.

3:23:17 And I'm very happy about that because that allows me just

3:23:19 to be in the moment solving the problem I'm trying to solve.

3:23:22 Then I have 100% of my brain power solving a problem.

3:23:26 And this is why I also...

3:23:27 It's the same reason why I recommend learning

3:23:29 how to type and learning your editor so well you don't even have to think about

3:23:32 the action because the people that have to...

3:23:34 Even if you just look down,

3:23:36 that's still mental processing power you have to spend looking

3:23:39 at a keyboard in which you already know where the key is.

3:23:42 You do.

3:23:43 At this point, if you've been typing for thousands of hours,

3:23:45 you know where the key is, just stop looking down, you'll learn really quickly.

3:23:48 And so it's like this thing where it's like, "I'm not gonna spend all that time

3:23:52 and all that mental effort looking up the thing.

3:23:56 I'm gonna just memorize...

3:23:57 I'm just gonna get it in me, and then I can go fast." And it feels good.

3:24:02 And so that's how I'd kind of defeat that is because now

3:24:04 I get to do something where it's like there's no more questions.

3:24:07 It's now me just expressing myself into this medium and it feels really good.

3:24:12 I'm sure there's still like things that pull at you,

3:24:14 like curiosities, distractions, like, "Ooh,

3:24:17 I wonder how..." Anytime you have access to the internet,

3:24:22 you're gonna get like-- Twitter's a big one on that one.

3:24:24 Yeah.

3:24:25 You're gonna get curious about stuff, including,

3:24:27 I guess you're speaking about everything in the editors optimize,

3:24:31 but, okay, you can always improve stuff.

3:24:33 You can always find better plugins and macros and, "Oh, let me...

3:24:37 You know what, this thing that took this pain point,

3:24:40 I just found this tiny pain point, let me spend the next five days creating

3:24:45 a plugin for my editor or whatever the fuck

3:24:49 to remove that one pain point," when you should

3:24:52 have just kept going as opposed to taking side quests.

3:24:56 So, I have a rule which is I do not

3:24:59 edit my RC other than some kind of cataclysmic thing,

3:25:02 like someone updates a plugin,

3:25:03 I didn't know they updated it and now there's like

3:25:04 a hard error in my editor and I have to move forward.

3:25:08 But I have a rule where I will edit my RC, my Neovim RC or anything once a year.

3:25:14 Something that bothers me, I'll write it down, I'll remember it.

3:25:18 I'll be like, "Okay, I want to change that," but I will just not go back to it.

3:25:21 Now, every now and then I'll break that rule if I know, if like, "Oh,

3:25:24 I want a new remap to be able to do

3:25:26 this one command and that takes literally 13 seconds,

3:25:28 like copy paste, do this, bop-bop-bop, done.

3:25:30 Okay, I have this new remap,

3:25:31 it made perfect sense in this situation, but I don't go plug-in exploring.

3:25:34 I don't try to solve every problem.

3:25:36 I don't want a perfect editor because that is a pursuit that will never stop.

3:25:40 I just go, "This is good, good breakpoint, I won't do it again." So,

3:25:45 last month I probably spent a hundred hours just editing every possible

3:25:49 thing I could about how I start up my system and make...

3:25:54 I can have a computer from zero to 60 in almost

3:25:57 no time now everything the way I exactly want it,

3:25:59 Neovim and everything all perfectly set up.

3:26:02 Happy enough, I'm not going to touch that system again.

3:26:04 Maybe I'll touch it next year.

3:26:05 Maybe I'll take a year off.

3:26:07 It's just I'm fine with that.

3:26:08 I'm fine with not being perfect.

3:26:10 All right, zero to 60, let's talk about the perfect setup.

3:26:15 What's your perfect programming setup,

3:26:17 keyboard operating system, how many screens, chair?

3:26:21 All right, I like all these.

3:26:24 IDE, let's go.

3:26:26 So, keyboard, you're using my favorite keyboard right there,

3:26:28 the Kinesis Advantage.

3:26:30 Saved my career.

3:26:32 Beautiful keyboard.

3:26:33 Concavity and thumb clusters are just so

3:26:35 important because if you really think about it,

3:26:37 especially if you're using qwerty,

3:26:39 when you're pressing the symbols on a standard keyboard,

3:26:42 you're just doing this the whole time: Backspace, Enter, symbols.

3:26:45 You're just doing this, and it just screws up your wrist constantly doing this.

3:26:48 And this when you're constantly doing like Ctrl and Shift.

3:26:50 And it just is like messing you up, so it's just like right here.

3:26:53 That's so much nicer in life.

3:26:54 So, keyboard most important, I'd say.

3:26:57 Get that one done.

3:26:59 For people who don't know, Kinesis keyboard,

3:27:01 I think the thing that you experience the most

3:27:04 is exactly the thing you just said now, which is the backspace is really easy

3:27:09 to press versus what it is on normal keyboards.

3:27:12 So, backspace in general symbolizes you're deleting a thing,

3:27:17 it symbolizes a mistake.

3:27:19 Not symbolizes, it usually means a mistake.

3:27:22 And so not only did you just make a mistake in what you were typing,

3:27:26 you also have to take a physically painful action,

3:27:29 annoying action to fix that mistake.

3:27:33 And for most of us, we make a lot of mistakes,

3:27:35 so Kinesis just makes it pleasant and fast

3:27:39 and easy physically to correct the mistake.

3:27:43 That's probably for me the number one reason of Kinesis.

3:27:45 Everything else, yeah, super plus with the macros and the positioning,

3:27:48 the concavity like you mentioned, but their mistakes are pleasant.

3:27:55 Yeah.

3:27:55 I am on that team, so that's why I love that.

3:27:58 I would say that's one of the most important things.

3:28:00 The next thing that I find to be very, very important is that one monitor.

3:28:04 I'm a one monitor kind of guy.

3:28:06 What?

3:28:06 Really?

3:28:07 So, when I program, when I do anything...

3:28:08 Now, when I stream, I obviously have a second computer

3:28:10 that runs the stream because I sometimes crash my computer,

3:28:12 I have to restart or whatever.

3:28:14 So, I do have a second screen there that I put stuff up,

3:28:16 but most of the time you'll notice that even when I'm streaming,

3:28:19 you've been there, I have to physically switch

3:28:22 to the streaming chat channel for me to read it,

3:28:25 and that's because I'm operating off of one screen.

3:28:27 And so I have this whole style in which I like to navigate,

3:28:33 inspired by StarCraft,

3:28:34 is that I believe in the press one key, go where you want to be mentality.

3:28:38 And so everything about my setup is press one key.

3:28:41 So, when I want to go to Twitch chat, Alt+2, Twitch chat.

3:28:45 When I want to go to my browser, Alt+1.

3:28:46 That's my browser.

3:28:47 Alt+3, that's where I go to my programming.

3:28:49 That's power finger, obviously.

3:28:51 The big middle finger right there, just smash it down.

3:28:53 Alt+6 is going to be gimp, so my GNU image manipulation program,

3:28:57 so if I want to draw, I go there.

3:28:59 When I used to have Slack, it was Alt+5.

3:29:01 If I have a spare terminal where I need to run some extra things, that's Alt+4.

3:29:05 I had all these kind of...

3:29:06 Everything is perfectly mapped out to single-key.

3:29:09 And then when it comes down to using, say,

3:29:11 Tmux, I have all my terminals into one single terminal.

3:29:15 And now I'm able to kind of switch between there.

3:29:18 Prefix one goes to my Vim editor.

3:29:20 Whatever project I'm in, it's always the first Tmux tab, if you will.

3:29:25 I'm not sure...

3:29:25 They call it a session,

3:29:26 but I'm not sure how to describe it if you're not familiar with Tmux.

3:29:28 A tab.

3:29:30 Second one is like my spare terminal,

3:29:32 third one is my long-running process terminal,

3:29:34 my fourth one is a long-running process terminal.

3:29:36 So, I have it all set up,

3:29:37 so every project I go to automatically spawns session one: Vim,

3:29:40 session two: spare terminal, session three will also open it,

3:29:44 so it's like, brrrrr, everything's just ready to rock.

3:29:46 Everything has been optimized to where I do that.

3:29:48 If I want to go to a project, it's Ctrl+F,

3:29:51 and any terminal will bring up a fuzzy find list of every one of my folders

3:29:55 on my operating system in which I can

3:29:57 go to with just a couple keystrokes and, boom, I'm in that one now.

3:30:00 And so it's very oriented to find where I need to be as quickly as possible.

3:30:04 Via keyboard.

3:30:05 Via keyboard.

3:30:05 Then in Vim I developed a plugin called Harpoon,

3:30:08 which is I press one button and I can

3:30:10 pin one of the files to like a temporary buffer.

3:30:14 I think Projectile is potentially close to this in Emacs.

3:30:18 I can't remember if Projectile...

3:30:19 I think Projectile is closer to my sessionizing script.

3:30:23 Anyways, so now I have four pinned files in which I can

3:30:28 go to any of those pinned files with just a single keystroke.

3:30:30 And so now it's just like...

3:30:32 Because every time you develop a feature,

3:30:33 usually you have like three files you're kind of primarily working in.

3:30:36 And I can fuzzy find for the other files and that's that, but usually

3:30:40 I just have like these three power files that I'm always swapping in between.

3:30:43 And so it's like now everything is just,

3:30:45 "I want go to the browser." That's one press.

3:30:47 "I want to go to my workstation." That's one press.

3:30:48 "I want to go to a specific folder,

3:30:50 I need to change folders." Sometimes you work between two different projects,

3:30:54 so in Tmux that's prefix, capital L will swap between your last two.

3:30:59 So, I have alternate projects,

3:31:00 so I can even swap between projects in pretty much one key.

3:31:03 So, it's just like do-do-do, just trying to optimize it,

3:31:06 so I don't think as much,

3:31:07 because I think search fatigue is a massive fail where you have to look for it.

3:31:11 When I see people on a Mac do this and then explode all the different ones,

3:31:17 that gives me anxiety.

3:31:17 I'm like, "Why are you using your eyeballs to search for what you want

3:31:20 to do?" Make it into a key press and never think about it again, ever.

3:31:25 You're making me think a lot whether I can live with your system,

3:31:28 whether it's better because it feels better.

3:31:31 It at least intellectually feels better.

3:31:32 It may not be great for some people.

3:31:33 Well, there's a few profound things you said, which is like really what,

3:31:38 the number of windows or tasks you're switching between,

3:31:41 whether it's programming,

3:31:42 the number of files you're working on, it's small at any one time,

3:31:46 at any one space of 20 minutes or something like that.

3:31:50 So, okay, that's a profound truth.

3:31:52 Sometimes we think like, "Oh I need the full freedom to search," but you don't.

3:31:57 You usually work on a very small slice.

3:32:00 But I guess the trade-off there...

3:32:02 I always have three monitors, not when I'm traveling,

3:32:05 but my happy place is three monitors.

3:32:08 It's like, do you really need all of them to be present there?

3:32:12 So, you're turning your head.

3:32:14 Now, the monitors I have is two vertical ones,

3:32:17 which is just better for certain kinds of content.

3:32:21 They're positioned vertically, so you can read.

3:32:24 You can use your eyes to scan quickly.

3:32:26 Interesting.

3:32:26 So, I don't even do that.

3:32:27 I even have it so zoomed in that I probably only have like

3:32:30 maybe 25 lines of code at any one time on my 27-inch monitor.

3:32:34 Yeah, I think that's...

3:32:37 I think I feel fundamentally constrained when I can't

3:32:41 see more because your eyes are just good at jumping.

3:32:46 Like, okay.

3:32:48 Like you could...

3:32:50 Why not search?

3:32:50 Why not press a couple of keystrokes?

3:32:52 Ctrl+U, Ctrl+D, jump up and down by a half page.

3:32:55 Because the ape visual system was designed to...

3:32:58 You're loading a lot of information.

3:33:02 If every time you have to investigate this table, what's on this table,

3:33:06 you have to press a keystroke, you could develop the skillset

3:33:12 that integrates that information but it's really...

3:33:15 There is an effective thing where if you have

3:33:18 a sheet of paper like this and I'm looking at it,

3:33:22 my eyes will be able to load in the structure of the information,

3:33:31 the topics of the information.

3:33:33 You just can do it faster, I think.

3:33:35 There's a big cost because it's an extra monitor,

3:33:39 but there is some stuff that's vertical when vertically positioned.

3:33:44 See, code is an iffy one code because code, you really,

3:33:47 25 lines at a time, I think you can do a lot.

3:33:50 This is more for like articles and especially

3:33:54 with visual information in them or documentation, you can just jump faster.

3:33:59 But I'm trying to...

3:34:00 As you were speaking so eloquently, I was like wondering,

3:34:04 "Am I just like deceiving myself that I need that?

3:34:09 Can I just keyboard shortcut-ify everything and just have

3:34:14 everything on one monitor?" That's something I should probably

3:34:16 try because I'm a big proponent of just automating

3:34:19 everything with the keyboard because you can just move really,

3:34:21 really fast, and you don't have to think.

3:34:24 Because I also do creative stuff, whether it's recording music or video editing.

3:34:33 It's hard...

3:34:35 Some of these programs still make it super easy for you.

3:34:38 On Windows, with AutoHotkey you can do quite a lot,

3:34:40 but still there's limitations on how much you can do with the keyboard.

3:34:44 So, it really is a pain in the ass to have to use the mouse,

3:34:47 but, man, you're really making me think.

3:34:51 Even the text one, the reading one, fundamentally I think I agree with you,

3:34:55 that you can see a lot more and you can kind of look up and down,

3:34:58 and see those two things.

3:34:58 And probably in articles or things like that, if there's a graph

3:35:03 down here that's really big that take up your whole screen plus text,

3:35:05 I could see why that would be very beneficial to zoom out,

3:35:08 to be able to have all that information, but for me,

3:35:10 I can only look at like a square inch.

3:35:12 Really, that's all my eyes can actually focus on.

3:35:14 So, when I'm reading, I'm right here.

3:35:16 Then I have to structurally try to pattern

3:35:18 match what I think the information looks like.

3:35:19 Then I have to start reading it.

3:35:21 So, I'm not exactly sure if I actually get any

3:35:23 real benefit of having a lot of stuff on screen,

3:35:26 as opposed to I can relax my eyes so much I don't even have to focus.

3:35:30 The words are so big.

3:35:32 I actually program pretty zoomed in.

3:35:34 My text is bigger than this when I program,

3:35:36 and so it's just that it's so comfortable,

3:35:39 I don't even have to exert any effort to read the code.

3:35:43 But you have to kind of train your brain

3:35:44 to know that you can navigate spatially using keys.

3:35:51 Yeah, Neovim by the way.

3:35:53 Oh, maybe it has everything to do with Neovim.

3:35:55 Okay.

3:35:56 All right.

3:35:56 And then Neovim is obviously the next big one.

3:35:58 I love Neovim.

3:35:59 Reason being is that I think you can make all

3:36:01 the arguments that you want about which editor is the best.

3:36:03 I do not think you can make an argument that Vim motions aren't superior.

3:36:07 Here we go.

3:36:08 Can you explain Vim motions?

3:36:09 What is this?

3:36:10 So, Neovim.

3:36:11 Vim is an old school editor.

3:36:13 Neovim-- It's a modern take on an old school editor.

3:36:16 Yeah.

3:36:17 And what's ELI5?

3:36:24 What does it take to work with Neovim?

3:36:26 Oh, okay.

3:36:27 I thought you were talking about a Vim motion there.

3:36:28 That's how...

3:36:30 I know, but you know that meme that's just like, "Hey, Jarvis,

3:36:32 can I tell you about Vim motions?" Because they can't fit

3:36:35 anything else in their head because they only have Vim motions.

3:36:37 You said EL5, explain it like I'm five, but in my head it's like,

3:36:40 "Okay, E is jump to the end of the word,

3:36:42 L is the one more..." Dude, I'm so broken that I'm like,

3:36:45 "Okay, Vim motion," when I hear letters.

3:36:47 Yeah, so, you can think of it like this is that Vim has a language

3:36:53 to describe movements in text because its primary

3:36:57 mode of operation is manipulating or editing text.

3:37:00 So, it is a well-thought through set of movements,

3:37:03 deleting, yanking, pasting, copying,

3:37:06 all that kind of stuff that goes in, motions

3:37:09 that are optimized for working with pretty much code.

3:37:12 A good example, say you have three lines of code you want to delete.

3:37:16 If you're in VS Code, take your little beautiful mouse,

3:37:18 highlight those things, press the backspace.

3:37:20 That's lovely.

3:37:21 Your hand left the keyboard.

3:37:22 Very simple to do though.

3:37:24 It's very beginner friendly.

3:37:25 I was a huge Vim hater, by the way,

3:37:27 so I just want you to know that before we go into this.

3:37:28 I was probably the biggest Vim hater.

3:37:30 If there was Saul to Apostle Paul, I am like the Saul to Apostle Paul of Vim,

3:37:36 just so you can see how big the gap was.

3:37:39 Or you can do something that's like...

3:37:41 I don't know what the VS Code shortcut is,

3:37:42 but I'm sure there's some keys you can

3:37:44 press to delete the current line you're on.

3:37:46 Delete, delete, delete, you can just do that.

3:37:48 In Vim, I can go DAP, delete around paragraph.

3:37:51 All contiguous code in that thing.

3:37:52 I'm going to delete, so D,

3:37:54 then I can choose my motion I want to take, AP, around paragraph.

3:37:58 Or maybe I want to DF, meaning jump up to the next character

3:38:02 that matches the next character I'm going to press.

3:38:04 So, DF opening parenthesis will delete everything

3:38:06 from your cursor up to the first opening parenthesis.

3:38:09 So, you get to describe your motion in these little keystrokes.

3:38:12 And as you get really good...

3:38:14 You've seen people that can master Fortnite,

3:38:16 it's the same thing with mastering Vim motions.

3:38:17 When you get so good, you no longer think about each individual movement,

3:38:21 and instead you're just like, "Get rid of the paragraph,

3:38:22 jump here, jump this, highlight this, yank this, do this," it becomes

3:38:26 so fast that you can superiorly edit text at a very fast rate.

3:38:30 And there comes a point when you know your language really well,

3:38:33 you know the problem you're really working on really well,

3:38:36 where editing text and getting code out

3:38:38 actually becomes one of the many bottlenecks.

3:38:40 People always talk about, "Well,

3:38:41 most of the time I think." Most of the time I'm not thinking, I'm programming.

3:38:44 I know what I want to do,

3:38:45 I want to go as fast as possible because I've been just doing it for so

3:38:47 long and I'm so familiar with the general

3:38:50 space that it becomes a huge problem for me.

3:38:53 I cannot tell you how many times that I've

3:38:54 been purely bottlenecked by the fact that I just

3:38:57 can't type fast enough and I just need to get

3:39:00 it out of my head onto the text editor.

3:39:02 And so that's why I think Vim motions are superior in all aspects.

3:39:06 Keep your hands on the keyboard, on the home row,

3:39:08 and it can manipulate text in very wide and fast ways.

3:39:11 Oh, so, this is not just about writing text, this is about modifying text.

3:39:14 It's primarily about modifying text.

3:39:16 Yes.

3:39:16 And I'm sure that most editors including Emacs,

3:39:19 including VS Code can do all those same things, but there is something...

3:39:25 They just don't encourage you to discover those things.

3:39:28 That's like an important thing about a lot of technologies and programming

3:39:33 languages that a lot of them can do a lot of the stuff,

3:39:38 but it's something about whether it's the community

3:39:40 or the style of the language or anything like

3:39:42 this that encourages you to not be lazy

3:39:45 in the beginning and learn the fast way to edit text,

3:39:50 in this particular example, how to use the keyboard.

3:39:54 That's a fascinating just reality of how technology is used.

3:39:58 You want to be encouraged to find the fast thing as quickly

3:40:01 as possible so that long term it's efficient and fun to use the thing.

3:40:06 It takes a long time for dividends, like a long time,

3:40:09 but on top of that, notice I didn't say Vim.

3:40:11 I'm not saying, "Go use Vim," I'm saying,

3:40:13 "Vim motions." Let me give you one more example.

3:40:17 I'm a big fan.

3:40:18 Let's say you have a line that contains some variable,

3:40:22 some function you're calling something that takes in a string.

3:40:24 And you need to do that again, so you would typically copy that line,

3:40:30 you'd paste that line below,

3:40:31 you'd go into the string and you'd change the string.

3:40:34 Let's say it's calling some sort of configuration,

3:40:36 you need to call it three times with three different configuring strings.

3:40:39 In Vim, I like to do shift-V to highlight the whole line, and then Y.

3:40:43 Some people do YY, but I don't like to do double ones.

3:40:45 I like to be able to do two different fingers

3:40:46 because you can do that way faster than one finger twice.

3:40:50 It's just a little optimization for me because you can't press that as fast.

3:40:54 So, anyways, I'm very optimized in my approach,

3:40:56 so I yank the line, paste the line.

3:40:58 CI double-quotes will delete everything inside the first occurring string.

3:41:02 Then I can type the string, escape, save.

3:41:05 And so it's like so optimized that I can just jump so fast

3:41:08 in between that, whereas the copying

3:41:10 and pasting line is probably the same speed, but the navigating to the string,

3:41:14 deleting what's currently in the string, and then...

3:41:17 That's such a fast motion in Vim, and I just do that all the time.

3:41:21 To backtrack, really dumb question, CI,

3:41:23 what's the difference between typing the letters

3:41:27 and using the letters to navigate and edit?

3:41:29 How do you switch between the two modes?

3:41:31 Okay, so insert mode means that you're just putting in text,

3:41:34 and then normal mode means that you're moving your cursor.

3:41:37 [Lex] And how do you switch between the two?

3:41:39 Escape.

3:41:39 Escape goes from insert mode into normal mode.

3:41:43 And to go into insert mode press I

3:41:45 to take your current cursor and go to the beginning,

3:41:47 A to go to the end of the year Cursor, capital A to go to the end of the line,

3:41:50 capital I to go to the beginning of line, O to put a new line below and then

3:41:53 put your cursor at the proper intended for the language,

3:41:55 Shift+O to shift your current line down, and then put a new line in.

3:41:59 You can see, there's a lot-- So, you're pressing Escape a lot.

3:42:02 Yeah, I mapped mine.

3:42:03 I do Ctrl+C.

3:42:04 Ctrl+C does the same thing except for in one edge case.

3:42:07 People hate that.

3:42:08 I got used to it just due to the fact that I was using IntelliJ,

3:42:11 and I really hate pressing the Escape key,

3:42:13 so I just got used to pressing escapee.

3:42:14 That seems like an essential thing to do

3:42:16 if you're using Neovim to map escape to something.

3:42:19 Cap lock would be your standard go-to.

3:42:21 Oh yeah, I map it too.

3:42:22 Cool.

3:42:23 I got you.

3:42:23 I got you.

3:42:24 Yeah, so then it's just really easy to press it,

3:42:26 and boom, boom, boom, not a big deal at all.

3:42:29 But yeah, I think that if you're willing to learn it, Vim motions are superior,

3:42:32 but if you're not willing to learn it, then they're not superior.

3:42:34 You should just not do it.

3:42:36 If you're willing to endure pain, it's good.

3:42:38 If you're not, it's actually way worse.

3:42:40 It's 100 worse.

3:42:42 Right, so if you like pain, you use Neovim.

3:42:45 Totally.

3:42:45 I understand.

3:42:46 You're totally on-board.

3:42:46 100%.

3:42:47 See, now you get it.

3:42:48 If you like joy, you use Emacs.

3:42:50 Sorry, sorry, did Emacs ever get a good text editor?

3:42:53 I know they're a great operating system,

3:42:54 but I never caught up if they got a good text editor.

3:42:57 Operating system?

3:42:59 I think you've been miseducated my friend.

3:43:01 So, at least 30 minutes on Emacs versus Neovim is what Reddit requested.

3:43:07 Have you actually used Emacs in order to be able to talk so much shit or no?

3:43:11 I used it for a year.

3:43:12 You used it for a year?

3:43:13 Yeah, yeah.

3:43:14 Doom Emacs, Spacemacs and regular Emacs.

3:43:16 But you don't even know Lisp, so did you really use it?

3:43:19 I kind of hacked my way through kind of like, "Okay,

3:43:21 so this is how to configure..." You can kind

3:43:23 of get your way through and do all that.

3:43:25 So, you recommend to mastering Neovim and really learn the depths of it,

3:43:30 but Emacs is okay to just kind of use before making a judgment.

3:43:34 I think everybody...

3:43:35 You got me on that one?

3:43:36 Yeah, no, and what's Neovim written?

3:43:39 It's Lua?

3:43:40 Yeah, so Lua would be the configuration language, but you have...

3:43:43 It's written in C, but you have Lua 4.

3:43:45 And Lua is just a dead simple language.

3:43:46 Anyone can program Lua.

3:43:48 I actually don't know why...

3:43:50 I think it's because my love for Lisp that I went with Emacs.

3:43:52 I think you just choose a path and you walk down that path.

3:43:57 And because there's just such a vibrant,

3:44:02 intense battle between the two communities,

3:44:04 you just start fighting just because everybody else is fighting.

3:44:08 And then one day you're an old warrior on a horse, and you're wondering,

3:44:13 "What was this all for?" And it's quite sad,

3:44:19 in all seriousness, that I haven't to this day tried Neovim.

3:44:24 I think because there is a learning curve.

3:44:26 There's a learning curve to a lot of these editors.

3:44:29 Yeah.

3:44:29 To really learn it.

3:44:31 To really learn it.

3:44:31 And I think this is some of the criticism of maybe VS

3:44:36 Code or Sublime or Atom that it's so easy to not learn it,

3:44:41 to just kind of halfass use it.

3:44:44 And there is a big benefit to having

3:44:47 editors that force you to have some learning curve,

3:44:49 where you take the art, the science, the procedure of editing seriously.

3:44:57 Because you spend so much time in it,

3:44:58 you might as well learn how to use the thing.

3:45:02 My big takeaway really, what I'm trying to say with all these words

3:45:05 is that I honestly don't actually think that...

3:45:08 The editor obviously does not make the programmer,

3:45:10 but I think it says a lot about your character

3:45:13 as a programmer if you don't know how to use your editor well.

3:45:18 There's something about a person who's

3:45:20 willing to commit their life to programming,

3:45:22 and spending literally 50,000 hours doing

3:45:27 an activity over the course of their lifetime,

3:45:29 and never take the time to learn their editor through and through.

3:45:32 It just seems strange.

3:45:34 You'd never see that in another world,

3:45:35 where people would be able to build something or do

3:45:38 something and just completely forget how these things work,

3:45:41 and only just focus on one part of their craft.

3:45:44 And so, to me, it's just like it doesn't matter how you use it,

3:45:47 I want to see the person that just knows how to use it,

3:45:51 and they know how to use it well.

3:45:53 When there's a problem, they can say why the problem exists,

3:45:55 and then go and fix the problem.

3:45:56 To me, that's like, There you go.

3:45:57 You've done it.

3:45:57 You now know your tool, go forth and conquer with said tool.

3:46:01 Especially for tools you use a lot.

3:46:04 (ThePrimeagen chuckles) You have to look at your whole life,

3:46:06 your life, whatever,

3:46:07 if you're a developer or anything, what is the thing you do a lot?

3:46:14 Meetings.

3:46:15 Yeah, yeah.

3:46:17 Sorry.

3:46:17 Keep going, keep going.

3:46:18 Ask a question like: how can this be done a lot better?

3:46:21 Because every single day you do this for hours a day,

3:46:27 how many hours did you spend on thinking how

3:46:30 to do this better or whether to do it at all, in the case of meetings?

3:46:36 People surprisingly just don't do this enough.

3:46:38 I see this, just to go back to jujitsu,

3:46:41 there's a lot of people that show up and do jujitsu or martial arts,

3:46:44 and they do it the same way over and over and over,

3:46:47 and they invest tremendous amount of energy.

3:46:49 And they don't ask like, "How do I do it differently to improve faster?"

3:46:54 In the case of jujitsu or any kind of sport,

3:46:56 same with practicing the piano or the guitar,

3:47:00 they just religiously put in a lot of time

3:47:04 and derive a lot of joy from getting better.

3:47:07 They don't enough ask the meta question of like,

3:47:09 "How can I do this better?" And with editors,

3:47:13 it's surprisingly how often people do just that.

3:47:17 With typing, it's surprising how many people do just that.

3:47:20 Like you said, they're pecking or looking down.

3:47:25 It's like the quality of life improvement

3:47:28 you can have by learning to touch type, by just like typing without looking.

3:47:34 It's immeasurable.

3:47:36 You're bringing a lot of joy to your life because all of us are typing a lot.

3:47:40 And the reason, by the way, I was extremely efficient with Emacs.

3:47:46 I'm sure you know, all jokes aside,

3:47:49 it feels like Neovim has more room for the kind of efficiency I've had

3:47:56 with Emacs to be able to move really fast as you described me to edit.

3:47:59 There is a real joy.

3:48:01 It's not just efficiency,

3:48:04 it's a freedom that you can get when you get really good with an editor.

3:48:09 The reason I chose to go with VS Code is it felt like there's going to be

3:48:16 an acceleration of features to which Neovim or Emacs

3:48:21 will not be able to catch up, in the...

3:48:23 And I don't mean in the next five years, I mean in the next 30 years.

3:48:26 And it felt like I almost wanted to take the pain of learning new editors

3:48:31 constantly and just switching and learning that, because

3:48:33 I was getting so comfortable in Emacs,

3:48:36 with this Kinesis keyboard, everything, all the shortcuts,

3:48:38 I know how to program, and it felt like this is not...

3:48:42 Neovim will not be here in 50 years.

3:48:44 Possibly might be, I don't know,

3:48:46 but it felt like you want to learn these constant different technologies.

3:48:52 Cursor is a great example of that.

3:48:54 I primarily am using Cursor now.

3:48:56 I go back between VS Code and Cursor.

3:49:00 Just the skill of using AI is a real skill,

3:49:06 from the shortcuts to the timing to the layout

3:49:09 of the windows to how I think about where,

3:49:12 when and how to use the AI that doesn't distract me, that it empowers me,

3:49:16 not just for the fuck of it or for the fun of it,

3:49:19 for the actual measure of productivity.

3:49:21 It's a skill.

3:49:22 And I feel like I would be stuck

3:49:25 in a local maximum of comfort if I stayed with Emacs.

3:49:30 And maybe the same should be true for me with Neovim.

3:49:33 I should try it seriously.

3:49:35 I'm sure there's a plugin,

3:49:36 like a copilot type of situation that you could set up with Neovim.

3:49:39 I should possibly consider that.

3:49:41 But Cursor is doing a lot of really fascinating stuff on the IDE side,

3:49:46 not just sort of generate code and edit that code manually,

3:49:54 it's like continuously be able to rewrite code.

3:49:57 It's the idea of tab, tab, tab, tab, move the Cursor around,

3:50:01 but also modify parts of code and do the diff really nicely,

3:50:05 that whether it's Cursor or VS Code that wins

3:50:08 that battle out with Copilot, I don't know.

3:50:10 But that feels like a fundamentally

3:50:13 different experience than the really efficient,

3:50:15 joyful experience that you just described in your selling me on this is Neovim.

3:50:20 That doesn't have an AI in the picture,

3:50:23 obviously immediately, but you can, yeah, absolutely.

3:50:27 I would 100% agree that Cursor seems like such a cool product.

3:50:33 I actually think there's a lot of really

3:50:35 neat things coming down with all of that.

3:50:37 And I could change from Neovim.

3:50:39 I don't use Neovim because I love Neovim,

3:50:41 I use Neovim because I love the instrument I play.

3:50:44 And so it's like if Cursor can meet those needs, I could see myself moving over.

3:50:47 I don't have some sort of obsessed attachment with it.

3:50:51 I am curious though that every time I use AI...

3:50:55 I think I just have skill issues.

3:50:57 I think I'm just so riddled with skill issues when it comes to using AI,

3:51:00 I have yet to be able to use it in a way that I really love it.

3:51:04 We'll talk about it, but before then-- Oh, ball to sit on.

3:51:06 I forgot to say that, ball to sit on.

3:51:08 Desk needs to be properly heighted.

3:51:10 One monitor.

3:51:11 Eyes should be two-thirds way up the screen.

3:51:13 I don't like to turn my head.

3:51:15 I prefer my hands in a pistol neutral position.

3:51:21 And there we go.

3:51:22 A ball to sit on.

3:51:23 Yoga ball.

3:51:23 Yoga ball.

3:51:24 What's that about?

3:51:25 It just helps just maintain good posture,

3:51:27 because when I have something to lean against, I do this.

3:51:31 You're for hours sitting without...

3:51:33 Wait, what are you doing?

3:51:34 I sit on the ball, and then I bounce.

3:51:37 Is your back leaning on a thing?

3:51:39 No.

3:51:39 What the fuck?

3:51:40 Well, how else do you-- You're the only person in the world

3:51:45 sitting on a yoga ball as you program for hours.

3:51:48 You do realize this, right?

Study with Looplines Download Captions Watch on YouTube