In this episode of the Elixir Mentor Podcast, I chat with German Velasco, creator of Elixir Streams and Phoenix Test. We explore test-driven development practices, the benefits of pair programming, and consulting experiences within the Elixir ecosystem. German shares his journey into Elixir development and discusses how adopting test-driven development has improved his coding workflow. He explains the philosophy behind Phoenix Test and demonstrates how proper testing can lead to more maintainable applications while reducing regression bugs. The conversation covers the important distinction between testing behavior versus implementation, practical approaches to achieving meaningful code coverage, and the collaborative benefits of pair and ensemble programming methodologies. We also discuss content creation for the Elixir community and how AI tools are changing programming workflows. This episode provides valuable insights for Elixir developers looking to improve their testing practices and team collaboration. Resources Mentioned: - Elixir Streams:https://elixirstreams.com - Phoenix Test:https://github.com/germsvel/phoenix_test - TDD Phoenix:https://tddphoenix.com Connect with German: - Twitter/X:https://x.com/germsvel - Website:https://www.germanvelasco.com/ SUPPORT ELIXIR MENTOR - Elixir Mentor:https://elixirmentor.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Testing Secure your Elixir apps with paraxial IO. From code analysis and bot defense to dependency checks, they've got you covered. Elixir first design with GitHub integration. Elevate your security at paraxial dot IO. What's up? I'm Jacob Blitzo, your Elixir mentor, and welcome to another exciting episode of the Elixir
Mentor Podcast. This is where we discuss everything related to Elixir, from interviews with enthusiasts, pioneers in the community to innovative projects and library shaping Elixir's future. Today I'm joined by Herman Velasco, creator of Elixir Streams and Phoenix Test. Welcome, Herman. It's exciting to have you here. You wanna just go ahead and give a little brief introduction of yourself. Yeah, for sure. Thanks, Jake. Yeah, thanks for having me, man. I'm I'm always happy to jump on podcasts and chat brief intro on myself.
Yeah, I mean, I'm a a software developer consultant. So I work with a bunch of companies usually one at a time on Elixir projects and I love to share what I learned. So I do a lot of little things here and there. Elixir Streams is 1 one thing I've been doing for about a couple years now, I think short videos usually go on YouTube, Twitter, XI Guess, Blue Sky, all the things. Send it to emails and there's a website, elixirstreams.com. And yeah, do open source when I can.
That's always been near and dear to my heart, I think. And so I finally have a package of my own. I can't remember. Maybe it's been a year and a year and a half or something. It's called Phoenix Test. Sure, we can talk about it. Yeah, you'll see me around the community. I I try to be visible. Yeah, I, I enjoy all your elixir stream content. Like I feel like you do a really good job of just like, you know, short videos of just like awesome tips and tricks or like
some like you learn a lot from your like minute, minute and a half videos and I enjoy that. Thank you. Appreciate it. Yeah, it's it's it's what they say, right? It takes a surprising amount of work to do something short. Oh I know. Yeah, editing is the worst part. That's why I started doing these live, because then I just. I don't have to edit it's. A it's a hack. I know, man, that's, that's a brilliant idea. I know the, the editing always takes a long time. And so, and this is interesting to me because I've never done a podcast live.
How, how, how do you did you always start live or did did you change to live? So the Elixir mentor podcast I started doing live from the start and the only reason that I learned that I wanted to do that was because I, I haven't, I have, I've kind of like let I had an old podcast that kind of drift away, but it was called big app energy and we pre recorded it and, and it was all about like, like bootstraps startups and like just kind of knowledge base for non-technical
entrepreneurs that have to hire technical people. It's kind. Of like what you need to know when you work with developers kind of podcast because you always hear the horror stories of people getting screwed over and dropping 50 grand and having no product to prove it. And so that's kind of like why we so big App energy was a podcast to like a consultancy that I ran and that was kind of that was kind of the point behind it to educate hopefully our future customers, right. Interesting. Got it. Yeah, Yeah, that is.
Cool, and I got so burned out of editing a damn hour hour and a half video. Start. Yeah, I'm going to start doing this live stream and then I I figured it out and actually we were talking right before we started Michael from Paraxial. He was my first guest and talked me into doing a a podcast. And so, yeah, that's. Kind of interesting he. Kicked off Yeah. He he talked you into doing a podcast. How did he talk you into it if you were if he was already a
guest? Well, he talked me into starting the Elixir Mentor podcast. Oh, got it. So he came on, he, he reached out to me because he found my YouTube channel. I was already doing like educational content for Elixir. Gotcha. But I didn't do the podcast. OK, OK, OK, OK. Right, 'cause I've seen you have like courses and stuff on Elixir Mentor YouTube, right? Yeah, I saw that. OK. Yeah, And he reached out. He was like, hey, do you ever do like sponsored videos? Would you do one for paraxial? And I was like, oh, that's cool.
Like I never, I never have been offered this. And I was like, yeah, I'll do it. And then I ended up doing that video. And he's like, you know, I think I might have like, I was like, I'm considering doing a podcast or some sort of live stream something. And he was like, well, you should do it and I'll be your first guest. And then so that's kind of how it started. Nice and invited himself. Nicely done. Nicely. Yeah, Michael's a cool dude. But yeah, before we like dive into your projects, I always am
curious to know where like what got Elixir on your radar and like kind of what was your history that led up to Elixir and then, you know, consultancy and then like all the projects that you started doing. Yeah, yeah, yeah. I, I always have a hard time pinpointing when I started looking into Elixir and I can't remember what brought me into it. I mean, I was in the Rails community, I was in Rails for a number of years before jump into Elixir. So I need Jose from platform attack. I need some of the platform
attack people, I think, and you of him of them, I suppose, cuz they had a couple of open source libraries and but I think ultimately it was Dave Thomas maybe that got me into Elixir that I heard whether it was a talk from him or this was before this book. I think so anyway, it's been a number of years, seven years or something like that ago and I just, I just started looking into it. I started really getting excited about it.
I love the like I love Erlang's concurrency model and sort of the fault tolerance aspect of it. Like that stuff is super appealing to me. The fact that you can, I like to say you don't really just program like the instructions, but you can actually code how you want the runtime to work right. Like that aspect of it is so powerful and I love that aspect of it. So like when I first got into Elixir, a lot of the things I was really interested where the Super like supervision trees. And you know, I remember doing a
a talk, I was living in Boston at the time. It was like my first talk in Elixir or something and at a meet up and it was all about provision trees because I just like love that stuff. That was, that was so cool. But anyway, so I, I got into Elixir and I was, I was still doing rails, right? I was sort of learning on the side and then I joined a consulting company called Thoughtbot back in the day. I also don't know, this must be like a while ago as well. But anyway, they were, they're, they're a big rail shop, but they were doing many other things and they were doing more Elixir at the time.
So I joined and I started working more on Elixir projects and stuff like that. And I got into open source there too, because they do, they used to maintain Ex Machina and bamboo and a couple of other like smaller Elixir libraries. And so that's kind of how I got started with consulting. Like I, I got my, my kick out of there and I really enjoyed it, but then thought about started going more rails again. So I ended up just leaving and doing solo. And I've been doing that for three years now, I think 3-4 years. And it has been great.
I'm very thankful that to, to, you know, to have been able to have a lot of clients and work on more on Elixir and again, keep kind of keeping that, that DNA of, of the, the way I do consulting is very thought. But like so, and one of those things that they have is investment time. So they would dedicate like every Friday to do an open source or, or other things like that. And that's why I have that DNA of like I, I gave, I gave myself investment time. So I build my clients four days
a week or the equivalent across five days, that kind of thing. And I save time to to just get back, which is why I do Elixir streams or I do open source work and stuff like that. But yeah, yeah. So anyway, that's that's a consulting DNA and the how I got into Elixir, but it's been a it's been a long time, so I don't quite remember exactly what was the first thing that brought me in. No, that's awesome. I love it. And you've, you just dove straight in and I think I speak for everyone that's probably listening.
Just we appreciate your content and one of the things that I want to be better AT, and I feel like you write you write about this, but so you have a book called TDD Phoenix or I should just say it's TDD phoenix.com and it's just a free online book. Can you buy it? I'm not even sure. Is it just online? You can't. There's a story behind that, ironically. So I, it's, it's a little outdated now. Actually, part of me wants to
you'll learn this about me. I, there's I there's too many things I want to do, which is why so many don't happen. I want to update that book, maybe make it a course. I don't know. Maybe I shouldn't make it a course. I should update it with with Phoenix test. So that book uses Wallaby. It's still great. I mean, it still works, but I haven't looked at it in a while. I'm not I don't even remember what version of Phoenix it is. I don't know if it uses like 313 directory structure or not. And I don't know if I I don't
know how long you've been in the Elixir community. I don't know if you were working with Phoenix before 1/3 where you got models and all that stuff, right? Yeah, I first like I started dabbling an elixir in like 2020. OK. Oh, recent. Yeah, more in 2020. OK, so five years. So I feel like I like and I really only did Elixir. I got talked into starting to well, I used Phoenix, the framework, but not like live view and things 'cause I was mostly just I and I still am mostly just a back end
developer. But my YouTube channel, I basically my subscribers bullied me into doing a live view course. And so I learned live view as I made the course and like I like, I think it's good, right, Because I'll like always disclose like as I know my Tailwind is probably just hacked together. Just go with me like. All of our tailwinds is hacked together. Don't worry, that's. So like that's pretty much all my all my videos, but like what I really enjoy was just like learning the life cycle of live
view and like how that all works. And like I feel like that part of it, the more technical end of the front end development is what I really enjoyed. And I think that's what I probably did the best teaching in that course, not front end, because I think front end is just like you just have to go through these steps until it looks the way you want it to look, right? No, I mean, I, I, you know, there's something about it. I, I love, I love the ability to craft an experience for users. Like, I don't do a ton of it because I'm not a designer, but
I always love working with designers who can code a little bit so we can pair a lot on full end to end kind of implementation. So I, I love that aspect, but I think there's a lot to that. Yeah. I don't know, I, I, I totally get what you're saying. And creating a course as you're learning live view makes total sense. Like there's, there's, there's some cool stuff. It's a really interesting model. I mean, I think we've kind of taken it for granted now. Maybe not. Maybe it's sort of what is that the curse of knowledge where you just assume everybody knows what
you just learned. You know, you learned something. You're like, I guess you know, everybody knows this and you, you forget that you didn't know it 10 minutes ago or whatever. But I think I take it for granted, I guess the, the, the live view model until other people are like trying to let other communities, I mean, are trying to reimplement those things, right? Or have implemented some poor, I, I would call them poor man versions of live view because they don't have sort of the, the statefulness of Elixir and Erling. But anyway, it's it's super cool. Yeah, it is. And like actually like it is. It is hard to remember your
learning curve. So probably learning it as I went was a good thing like because that's why I originally like at first my YouTube channel is just going to be back end development and like strictly focus on that because I just remembered when I first learned Elixir, it was a hard learning curve because I came from, you know, really. Yeah. Well, once I like grasped, so I had a really hard time learning object oriented programming. My brain did not work. But then it finally clicked right. And I, I did that for, you know,
eight years and then I started picking up functional programming and it, it hurt. But then when it finally clicked, I was like, this is the way our brains and programming is supposed to be done. Like. If I would have started with a functional like immutable language, I think it would have been a lot easier. Yeah, honestly, yeah. But basic, basically, if you've had any math right, it feels like functional programming is a lot more natural because that's how functions work. Like that's what you're doing with functions of the term function, I think. Yeah, yeah, I get.
I get it. Just forces you to break down. Like every big problem you have to break down into steps and I feel like functional paradigm forces that. Yeah, that's true. That's true. I think that to a large degree, what was your background? What? What was the O language you were writing? Oh, I was in. So I have AI started as like a a civil engineer and then ended up doing more like electrical mechanical engineering work for like 10 years. And I didn't like being I like
remote work and I didn't like being stuck to a physical brick and mortar building. So I taught myself how to program nice. And my first, like my first like taste of a real job was basically Swift. I was an iOS developer. Oh, cool. OK. Yeah. And it was right when Swift came out because I hated objective CI. Don't know, I just couldn't, I couldn't wrap my head around it. And then Swift came out and it was like the training wheels that I needed to finally like fully grasp it. OK.
And so I did that and I joined a like a learn to code startup and I feel like I, I was like so eager to like learn and improve my skills. I, I really like, grew quickly and like became a back end engineer like node JS. It was our API. So I started like working now on the back end and swift projects, so back and forth. And so it ended up being like Node JS and Express and just, you know, Restful API stuff is kind of where I started.
And then I had AI had a buddy in my ear for like 3 years telling me to check out Elixir that I think he's like, I think you'll really like it. Good buddy, that one. Yeah. And I was like, yeah, I'm sure it's awesome, but I don't have time. And it took me 3 years and then I finally had my own pet project I wanted to work on and it was like a marketplace. And I was like, you know, Elixir is probably the perfect fit. Like I knew all the selling points, but I didn't actually know how to apply them. So I just started like learning the syntax and playing around with it, but I didn't even start
using like OTP or Genservers for like a year and then and then I slowly started growing into it as I needed those tools. Makes sense, yeah. So that was like my little baby step and sorry for everyone that has heard that story. Yeah, sorry me asking you questions, I know. Yeah. But it's interesting that it came from node JS though, because I'm always curious where people are coming from. I have a lot of, I know a lot of people even back at when I was working and consulting with, with a lot of rails who were testing out Phoenix 'cause I was
sort of an easy jump. And in fact it was. And I think the transition from Ruby to Elixir might be easier in some way because of Syntex. The Syntex looks very similar, right? Super heavily inspired by that. But it because of that and because Phoenix at the time, this was again, before the one three kind of changed. Phoenix looks very railsy, like obvious models. You have all this. So people would kind of it would be easy to learn to to kind of shallowly like, OK, I I can do a
lot of things. And because Phoenix does so many things well and abstracts so much of the need for you to know about Gen. servers and all this stuff, like a lot of people were sort of like, oh, this is like a faster Ruby. But eventually they were like, well, we know everything in Rails and we have all this stuff in Rails. Why would we switch over? Right. And like, there's many reasons you can tell them. But experientially, people were like, a lot of people were sort of like, OK, yeah, I kind of went and learned some Phoenix stuff, but I'm going to switch back to Rails because they didn't get the full benefit, I think.
I don't know. That's just my thought, but so anyway, it's, it's interesting to me to see where people are coming from and sorry that if the listeners have already heard your story. I I didn't know. No, no, you're good. Yeah. I mean, I think like Elixir was accidental for me. And then I just, I, I fell in love with the syntax first and then and it's nice and then like, you know, Erling and the Beam VM and OTP and Gen. servers and it just makes your life a lot easier. Does it's so cool I, I, I often
think about this. I think sometimes people think of elixir and think, oh, like you can build these really like, you know, distributed systems and all this stuff and like it's but I don't have that need right. I'm building my little sample app or whatever. But what I think is kind of cool is that even in those small sample apps, like the way you build things can be different because you have these different tools, these like, again, you can have supervision, you can do so many neat little things that would kind of create a different sort of, I don't know, it's just
a different solution to a problem that you might, yes, you could solve in other ways, but it just gives you the different tooling. And I love that. So, but I don't think people realize that maybe I don't know. Yeah, well, I feel like a lot of companies are like bootstrap startups. They'll start to feel the pressure of choosing like node as your back end when you start scaling and you can only throw money at your servers and that's the only. Option you really. Have and then your server costs just go.
They skyrocket. Yeah, I, I honestly, I've never worked with Node in production. I think I did a sample app at some point, but I imagine it's similar in cost maybe to, to Ruby, you know, to rail servers and stuff. And I remember that back in the day, right. It's just like, get it working and then, you know, you just throw money at it basically. Well, I feel like the problem is like, it doesn't matter what text stack you pick at the beginning when you have no users, right? You're just trying to like get your MVP.
You're kind of proving a point. You don't know what you're doing in most cases. And then you have to rebuild your whole app once you know what you're doing and start to scale. Sure. Yeah, Like you, you. Yeah, that that is true. I do think that so this is kind of good. Sorry, I'm going in tangents here, but but but one of the things that kind of have in my mind is like, how do we make people adopt more elixir? How like how do companies, how do we make it to the more companies adopt elixir?
And I think one of the things in my mind at least, was that the rails back in the day, this was a long time ago when rails first came out, the one of the most appealing things was how productive you could be at the beginning. And so a lot of start-ups started using it right? And so you had to. A lot of start-ups using Rails and some of those survived. And then, you know, you sort of start having like 10 years on the line. You have a lot of more mature companies using Rails and you have a lot more jobs and stuff like that. And I think at some point that happened also with Node JS, like a lot of start-ups using Node JS and that kind of grew.
But I've never seen a lot of start-ups using Elixir or Phoenix as in like as in like, I don't know if you had like Y Combinator be like, hey, we're you should all be using Phoenix, right? Or or some I don't know another like Bootstrap well I feel. Like that would help like a conversation that like big app energy, Ben and I, he was my business partner for the consultancy. We would always talk about it. It was always the popular choice isn't always the right choice. And I think that's the problem like in when you're in the startup like tech bubble, you
hear all these like just popular choices and that's what people go with. Exactly. Cuz they think, well if so and so did it, it must be right. It must be good. And yeah, and it's sort of many times it's what's easy, you know, like the distinction between simple versus easy, easy being like close to you or, you know, proximate easy for you to do. So I think a lot of people just do what they already know and maybe they've already done a startup in a different language and they just do that one or whatever, right. And so it, I don't know, it's a hard problem, I think to, to
break into it, but it's something I've been thinking a lot about. It's like, how do we make it so more companies are using Elixir, not just now, but like 10 years from now, five years from? Now I agree, well I think like you don't have to rebuild your app if you do it with elixir. I mean, that's a huge thing. It is, right? It's a big, big thing, but it's, it's what you said. It's sort of like the we can, we can pay that price later, right? Like let's just get something going. And then once we actually figure out what our MVP is and what like we could, there's a sort of a thought of like at that point
when we have made it and we have a lot of money, you can just kind of like throw money at it and rebuild it in a new stack or whatever, which again, many people do, but it'd be nice if you don't have to do that. I. Guess I don't know, It's a big undertaking. Yeah, yeah, it's so hard anyway. And then? Once you know Elixir, that's the solution for everything. We're might be a little biased, but yeah. Yeah, I mean you. Can do so much.
I OK I can be talked into why live view wouldn't be used for everything. Like I get that right, but I don't like elixir is like a back end solution. It's amazing. Yeah, it is. I do think as much as I hate to say, there are scenarios I think where companies, I understand why they choose other technologies or they might kind of augment. I've had clients who do this. I have a client right now who they do Elixir, of course, and but there's some things they work a lot with, like really old stuff that you really need to
interface with or you know, interact with. And really it's like there's like a million Java libraries that already do the thing. And so we are actually there's I don't know if you know, there's this thing called J interface in the Erlang. I don't know if it's core something. It's sort of it's part of Erlang, but it makes makes a Java app act like as an Erlang node. So anyway, that's that's the tool we're using with good with like with good success so that
we have our Elixir stuff. And then anytime there's a need for something else that maybe Java does better or that already has library, we create a separate node that's a Java node. And we're just, you know, we're sending messages to that Java node. So it's working pretty well. But I understand those scenarios where. Yeah, yeah, for sure. Like we can rebuild this thing from scratch with Elixir for a really old technology, or we can just use some some stuff that's already there. We're hoping that we don't need to maintain it. I don't know. Well, I mean in some stuff it would be impossible to rewrite completely, right? Because like especially if you
do it from like the corporate end where the a company has just acquired different tech companies and has pieced. Things to cash, yeah, yeah. Like, sometimes it's not realistic to like, tear down every stack and rewrite it. Yeah, for sure, right. Yeah, there's, there's limitations and there's so many people anyway. There's like so many people that need to buy in and all this stuff, right. There's definitely that's it's always I don't know if you're, you're still consulting right. Actually, no, I'm now I'm working as a a a back end
developer for a company called Colex COLLX and it's it's a pretty sweet app. So their back end is all elixir and it's a trading card app. So you can take pictures of your card. It tells you how much they're worth and like what other sold for and then you can sell it on their platform. So it's pretty cool. Oh, nice, nice, nice. When did you start working there? I started working there the beginning of January and it's really cool because I've always been in like the the start up mode where you never really have
more than a couple 1000 users. And now I'm learning all about scalability, performance and like 'cause we have like 300,000 daily active users. So it's like a whole different ball game now. Nice. Interesting. Yeah, definitely different problems, right? I like that challenges in different ways. It's cool because I'm learning so many new things that you don't have to think about when you're just a small single node app that you're just trying to acquire a user base, you know? Yeah, nothing like, yeah,
nothing like those early days. We're just like, I just just launched it again or whatever. It's just like and you don't. Have to think about the speed of your database queries. It doesn't matter of course, you know, like you don't have enough data to make it a problem. Yeah, right, right, right. Yeah. It's like we, you know, we'll, we'll do instrumentation and figure out the bottlenecks once we actually have stuff. And then we'll, we'll optimize, which makes sense. But yeah, I, I, I get you. That's cool. Yeah. I know what I really love too is like all the other. I work with three other elixir back end devs daily and I'm the
dumb one in the room. So like, I feel like I'm just like learning from a fire hose and I feel like that's like such an awesome position to be in. As that is the best it's it's always good to to be the yeah, the the one learning. It's just that's an advantage, right? Yeah, that's cool. OK, so you started working. Yeah. I, I was going to say it's like in terms of like adopting Elixir and all this stuff, it's like in consulting, right? Even though they're technical problems, it's always really people problems.
Yeah. But anyway, like I think adopting Elixir is not a technical challenge. Like I think Elixir has all the stuff we need or companies need or whatever, but it's really a people people problem. Like it's hard to convince all the necessary stakeholders and. Stuff when I was doing all the consultancy stuff, it's really easy to convince a client to use Elixir if it's a brand new project, but it's. How do you convince them we're not? Really there just trust in your
OK, a technical founder's a different story, right? OK, yeah, yeah, yeah. Because then they're going to want what they want. And but I would say that that was more rare for for us to run into at least like we like, we obviously will do whatever tech stack a client wanted, but every opportunity we had, we would at least push Elixir for the back end. Right. That's cool. Yeah, yeah, yeah. Consultancy. Consultancy is hard, man. I'm like, I did it for four years and I feel like it was
like really easy at the beginning and then it got really hard to find clients this like last year. It's yeah, I've, I've been finding what everybody says is true. It's all networking, right? Like, you know, it's all it's. And it's not like, not in a bad way. It's just if people don't know about you, how are they going to find this, right? How are they going to know that you, you know that you can do this work. And also there's a level of trust, right? Like when you hire someone, you kind of vet them in certain ways. But even when you hire someone, it's a lot of network, right? You hire a new employee many times it's like, but the, an
employee you already know in trust is recommending them and that that's shared trust, right. So anyway, same thing with with consulting. And I get that it's a lot. It's that's the hard part. The, the, the, the, the ugly part for me at least as well in consulting. It's like the sales cycle or whatever you want to call it. It's like finding new clients, getting new clients, all that stuff. Yeah, four years. It's a long time. I think I'm, I'm, I'm three. I think so. Yes. Check in next year with me, we'll see what I'm doing. I. Don't know it'll go great for you. I just like sales.
Just wasn't my thing. It was hard. Yeah. No, it is. It is, it is. I agree. I always tell everyone that building the product is the easy part. Getting people to use it's the hard part. Exactly, yes. That's such a normal thing for us developers though. It's like the thing you want to do is build and you forget about distribution and you forget about, you know, again, all all that stuff that you're talking about marketing sales. I don't know if you have, I don't know you, you say you you,
you have an interest in you did businesses and stuff and I love that stuff. But anyway, I was going to say, I don't know if you've had one of these. And I think maybe every developer who's kind of tried to do something on the business side has one of these. But it's like, I built an entire project like a product. The first version of it I thought was kind of, I was happy with it. I was like, this works. And then I, it sounds so dumb in hindsight, but then I was like, who am I selling this to? But I don't even know who, right? And so. Yeah, I think that is every when you're the builder or the
developer or the engineer brain, I think we've all done that. Yeah, I think I did that like twice with two different projects and I was like, this is brilliant, but you're not like doing any small iterations. You're not testing it with anyone. You're just building a product. Do you think people are going to want? Yep, Yep, exactly. And it's like, yeah. And we assume, yeah, I don't know. We assume it's going to be easy to sell. Like you're building the thing. It's beautiful. It's whatever. I don't know. So yeah, it's a write a passage. What is it? If you build it, they will come not.
That's not true and it's it's crazy that not, it's not even even if you have some distribution like it's, it's not always the best product that wins. It's sad. It's sad. I think as builders that it's not true. But yeah, not it's not always the best product that wins. It's like the whatever it has to be known. It has to be, dude. So many products are just shit shows under the hood and I know like I have heard way too many horror stories of startups with decent user bases where like
teams pushing directly to production, a bug will a bug, a bug will take production down and like you have real paying customers and like that kind of stuff just shouldn't happen. Yeah, no, I know, I know. But they're making. Money and you're like, how is this possible? Yeah, exactly. I know it's, it's been a while since this happened to me. But yes, it's like sometimes you join a client and it's like they're they're making so much money and I'm looking at this and it's like, so, you know, so bad, but I don't know. But it goes on to the show,
right? Like that's it's true. It's it's building is a really small part of making a product or a company successful, so it's good to remember. Now, building well is a different story, but you have to. You'll run into those problems when you when you need to. Yeah. And I mean, I think that is an important component of a longer term like making sure a product can sustain, right? Because you do, you will run into issues if you don't build well. But yeah, some people just throw money at it, I guess. Yeah, that's fine. Yeah. All right.
So what I am most interested in learning from you today is you're just a big advocate of Test driven development. Yeah, yeah. Do you, do you actually like stick to test driven development in all cases or like what is your balance of like actually doing TDD? Yeah, yeah, happy to talk about it. And sorry, I I took, I think I took it on a complete diversion.
So I just realized we were talking about the TDD book. Oh you're fine. I think it just, you know, makes better conversation. Yeah, yeah, actually. So now another tangent, but what I've done, I used to like write a description for my podcasts before we even just talked, right? And so it would be like what I thought the conversation was going to be about was the description. Now I take the the captions that YouTube generates and I have it create a description based off
exactly what we talk about. Oh nice. I like the chapters so it's like automatic and people know everything in the conversation then. Are you? This makes sense because you're doing this live. It's cool. So if you do live, you're getting the captions. Are you passing that to some? Oh no, it'll be so YouTube like renders and it takes about 24 hours to get them. So I just have like a really short snippet that you know you
and I are chatting and then I'll update it. OK, got it. Right, right, right. But how? What? What are you using to turn the captions into the summary? And I'll just something. Yeah, I'll download the SRT file from YouTube and then I'll just up, I'll just attach it to like a Claude prompt. OK, gotcha. Yeah. So you're using Claude? Cool. Yeah, we'll have to talk about AI at some point, I think. I I'm actually really excited too, actually. OK, we have to get circle back to test room. No, at some point, yeah, go.
Ahead, but I have two guests coming up I have Daniel Bergholtz coming back who's like he has a JavaScript channel and does elixir dev but he's he just wrote a blog post about using windsurf and clawed I. Think I saw that go back so. He's gonna come on and actually like do kind of a more like hands on episode with me. And so I'm excited about that. And then I have a Chris Nelson from Launch Scout coming on and
they're another, they're like a dev consultancy firm and he's gonna break down all of their AI solutions and workflows that they've been implementing. Cool. So I'm excited about those conversations cause like, I think I'm like, I think AI is really cool to make us more productive, but it's not going to, you're not going to prompt it and tell it to build you an app, you know? Right. Unless. You're I like to see the little hacks that people do just to like speed up development. Yeah, yeah, yeah.
I think that's where we're at right now, unless you I just I'm, I'm totally, I'm almost ashamed to say about the the new term people are using with vibe coding. Are you familiar with this? Oh dude, I saw something that the Primogen talked about. He's like, now's the best time ever to learn how to code because everyone's going to be a vibe coder. Honestly I don't know what that means, but maybe like explain it? Yeah, I mean, I know very little about this. I just recently learned about it, but it's the idea that you
completely like give in to the LLM. Like you're not going to read any of the code it writes. So you just kind of like ask it to do things and then sort of maybe run the tests and then ask it to fix itself or, you know, make keep making suggestions and you keep testing the thing, whether it's through test it writes, I guess, or whether it's through like actually testing the app. If it's like, and people are developing like entire little games or stuff like that through byte coding or whatever. Oh my gosh. Anyways. It has realized you can make shitty tests that pass. I want everyone to know that. Yeah, it's absolutely true.
Oh man. You can make like tautological tests or whatever even right? Like, but it's, I think it's interesting, I think I saw someone say this really interesting thing is that that if you experiment with vibe coding, it actually shows you kind of like the limitations, like where you're going to run into issues with LLMS or what they're useful for. And so it can actually help you in terms of honing your ability to do prompts or whatever. Yeah, I don't know. We'll be inviting Herman back in a couple months because he's going to transition to a Vibe coder. No, I don't I this is the
actually I'm a little I am testing a whole bunch of AI tools, but I find it, but it's bittersweet because I love programming like the art of creating like this is This is why I actually wrote part of the not, not why, but when I was writing Phoenix tests at the library, it was so nice to just have like pure creative moments of like, let me just kind of fix this, not tied to money. Like this was a really cool for me. It was like, OK, I don't need to, this doesn't need to be something that makes me money,
which is, you know, as a consultant, I'm always like trying to think about like, is there some kind of, you know, do I need to, I need to maintain my family? So like, do I need to, you know, doesn't need to make money with this time that I'm investing. But this one was just like pure creation. I loved it. And so, but because of that, the AI stuff is a little bittersweet to me because and I because it's sort of like we're we're losing a little bit of that, you know, at least every time I'm like, I don't know, I used ater the the other day and I know it has different modes, but it just like made the changes and committed them and I was like, I guess that's fine.
Like, I don't know, it feels weird to not even be able to kind of be part of this process that I'm so used to, you know, so used to being part of, I guess. But we'll see, we'll see, right. But maybe it's just maybe it's just a new level of abstraction we'll be coding in, right? Like it? It's sort of more prom based, I don't know. It's interesting. I have like, I've used it a little bit to like clean up functions, like I'll use it in really small areas. I'll be like, can you just like refactor this? Like I don't like something about it.
And sometimes it'll give me a solution I really like, but other times it's like no what I wrote it's better. But. But I feel like you have to be able to read the changes and understand how to code. Yeah, if you don't know how to code, you can't fully just trust what you're going to get. No, I, I agree. I actually think, you know, there was sort of, there's a lot of like doom for developers because of AI kind of conversations maybe or something. And I actually think if you're a developer who's been programming
for a number of years, like AI tools just make you, they can make you faster. I do think it's a little weird. It kind of changes your. I don't know if you have this like from programming mode to like code reviewer mode and I much rather be programmer mode than code reviewer most. Of the time I agree. I've I like I find myself hitting just the damn tab button instead of using my keyboard. So like because like I I've been using cursor a little bit and
I'll I do like the auto complete like if you start manually refactoring how it'll just jump line to line and kind of speed things up. Sure. Yeah, that's nice. But I feel like we're gonna like at, we're gonna have like the detriment of just forgetting how to type. Maybe it maybe you know, there's there's benefit there too, I guess, but. At least that's it happens there. I've also had that issue where like with auto complete I'm like trying to type something out and it like sort of has a suggestion. That's not what I was doing.
And it keeps knowing you and popping up and you're like, no, dude, yeah. Yeah, it keeps breaking my brain, right? Because it's like I'm in, I'm in like execution mode and all of a sudden it puts me back in a different context. And I think it's way worse if you do like a large chunk of code, right? If it makes a big change because now all I'm doing is code, which again is fine and I'm used to doing it because we work in teams and we do like if you do pull request flows or whatever, you're used to code reviewing. But that's not like the I don't wanna say 8 hours a day, just code review.
Rating code is horrible like I have to like put slots of my day to go do PR reviews cuz you have to be in the you have to be in like the right brain set. To. Read code, especially when it's a feature you're not working on, cuz you have to now understand the feature, understand what they're trying to do. Yeah. And yeah, reading code is just. It's a different animal. Yeah, it is a different animal, I guess. I've been working in a team that does continuous integration for
about a year now. Like it's my client and that's been awesome. We don't do any code review. We just, we're always pairing, always pairing and continuous integration. Continuous, yeah. So I haven't had to deal with that. But even when I was in pull request, that's why I like small pull requests, like small chunks, as continuous as you can basically. And we would always be quick to review each other's PRS so that it's not like a big, you know, thousand line PRS, forget about it. That just takes like hours of your day.
And it's. Since you mentioned it, we might as well we'll come back to Test Driven Development at some point. Yeah, and I have a way to tie TDD with AI, just so you know. Perfect. We'll tie it at some point. When you mentioned that you implement pair programming, you do that for almost all features then or all additional code. Yeah. So right now, and I'm working with a team, so typically, so just to kind of set the stage, typically when I work with clients, I, I'm like a pair available.
Maybe I need to find a better phrase for that. But basically I think pair programming is phenomenal. But I know it makes people, I know it's draining if you're not used to it. I know not everybody likes it. So what I typically tell my clients is like, I will, I'm always ready to pair with you if you want it. And I'll try to encourage pairing and stuff like that. And for that reason, I actually only work with clients who have like about a four hour overlap with me. I'm in East Coast time. And that's because, well, partially is pairing, but partially is like, I like to
have quick interactions, quick feedback loop with stakeholders, with clients, all that stuff. So there's sort of sort of more there. But anyway, so I, I typically do a fair amount of pairing, I would say probably more than most people with my clients. Now, this current client that I'm working with, we do pairing all the time. Not it's not mandatory. Sometimes you can you do something, but that's sort of the default mode of the team I'm working with. So, yeah, I've been working with him for a little over a year, maybe a year, and it's pairing
all the time. Sometimes we do ensembles or mobbing or whatever you want to call it. And that's been an awesome experience, by the way. Like I was not a big believe it in that one. I guess I was like, I don't know how that's gonna work. Can you explain that one to me? Yeah. Yeah, yeah. So ensembling or mobbing, I think people are calling it ensembling now. But anyway, it's basically more developers. This is kind of like pair programming, but with more people, right? So that's why it's an ensemble. Sounds like an interview. But it's actually, yeah, you have to learn how to do it. We were experimenting with it
and I was like, I don't understand how you do this. It feels like maybe we're just wasting time. I know that's what people say about pair programming that you're kind of wasting time. And I don't think that's true, obviously, given obviously given what I do, but ensembling felt like that to me a little bit. And I think there's there's a certain amount of people, but that if it's like anytime I ensemble with five people or like it feels like too many. So I typically split off. But you, you know, kind of like
with pairing, you can have roles of like navigator and driver. Like with ensembling, you can kind of have similar things where you have like a navigator and you have a driver and you have someone who's kind of like at bat for navigating. But it's kind. Of then you have the Viber. You have the. That's right, you have the Viber on the side is. The. LLM or no, the interesting thing is that sometimes with ensembling, you can be focused on one thing. There's sort of the main track of work you're doing.
But as you discover little issues or little what we call side quests, sometimes because you have three people or four people or whatever, it's easy for some of them to split and go fix that thing and then come back and you're back into the main flow or context or whatever without any harm, without stopping, right? So like it lends itself really nicely to that kind of workflow. And I also think sometimes 3 is a nice number, especially if you're working across time zones. So many times I'll start, we'll
start the day, maybe pairing East Coast timers and then maybe someone joins the sort of all the sudden we become more of like an ensemble. There's three of us. And then maybe like, I don't, I don't. I just do like slack huddles. Is that what you do? And we use tuple for pair programming. OK, So that's better for screen sharing in my experience. So yeah, not Slack huddles, but yeah, so basically, yeah, I'm on
a call all day basically, right. I'm doing remote pair programming. So we're doing that all day. But yeah. And the other thing nice about on someone is if anybody needs a break, you're not slowing like you can, people can just keep going. You're like, hey, I'm gonna take a quick break. You know, there's, there's people there doing the, the work and everybody has a context. There's a lot less like context sharing that you need to do in some, in some regards, like everything else, I think there's trade-offs. It's not, I don't always do ensembling. And we have a rule that is like, unless you feel like you're contributing or learning, feel free to just vote with your feet
and like go do something else, like go join another pair or whatever. So, you know, it's sort of like a fluid thing where. Yeah, it's interesting. I like, I kind of like the concept. And then I also think from like the management side of things, you don't feel like you're better off having two devs work on two different issues. It's the same thing. It's I think some a lot of the same arguments that you make for pairing, like how pairing doesn't slow you down would kind of apply. Like you could say, wouldn't it
be better to have two pairs on 2 tracks? Well, wouldn't that be better to have 4 developers and four tracks? Like right, it's. I don't know. Well, I will say like having open conversation around writing code, you definitely write better code. Yeah. 'Cause you're talking about it and be like, whoa, whoa, whoa, why are you doing that? And then it's a discussion as you continue working. You know, I do like that. Like I see, I see the benefits. Because whenever you're stuck, sometimes you just have to explain your problem to someone and you unstuck yourself. Yeah, right.
There's, there's a lot of that. I, I do think there's costs, right? Like there's, I'm not like a 1000% let's always do ensembling. There are people like that. And I think it's also part of me just still learning the skill. Cuz there is a skill here in how you have conversations about things or knowing when, cuz there's like decision by committee can also take forever or you can thrash a lot on things, right? Like, just like you can, multiple inputs can actually arrive at a better solution. Sometimes there's just like a little bit of thrashing. And so being able as a team to
know how to communicate and say, you know what, like I don't, I disagree with that kind of decision, but like, I don't care. Like it's, you know, I don't know if you've heard this is the like, I'm like, you know, I disagree, but I'm on, I'm a one on a scale of one to five. Like it's not a big deal to me. Like I, I think maybe we should go to the other business, right? And so that's that kind of thing because sometimes people are disagreeing and you don't realize that one feels like a one out of five and the other one feels like a 5 out of five. So like that, that, that's helpful. Another helpful thing that that
someone told me about is like, and we practice sometimes is if you're disagreeing on two options or if you're unsure which one's the better option, if you're ensembling, you can split and test out both options quickly. Like let's spike and then come back and figure out what, which one we want to kind of move forward. So it allows for those kinds of things because you're basically focusing high context, right? That's the thing, you have high context. Everybody's on the same page. You don't need to like share information, stuff like that because everybody's in the ensemble. Now, again, there's trade-offs, there's downsides and.
I feel like there's a nice like social aspect to remote work with it too. Yes, for sure, yeah. Yeah, cuz we get so used to just being in our little closet, closed off to the world. For sure it's. Probably a little healthier for us mentally. I think so, yeah, I think so. It is draining. I think people need, you know, if you've if you've never paired and you start pairing, you've learned that that it's like, oh, I'm like especially video video's different from being in person. Like pairing in person is a little bit different. So it takes a little bit of
getting used to, but I don't know. I yeah, I think there's good, there's good things about it and I'm I've been enjoying it a lot. Yeah, I like it. I like the concept of it for sure. I've never done it, but yeah, like cuz I mean I've done like pair programming, but it's always like it's based off a specific problem that I've been running into too long and just having an extra set of eyes and conversation around it. Yeah, right, right, right, right, right. Yeah, that's like, that's the most basic format. Yeah, just bring someone in to help you with a problem.
Yeah, man, it's I, I wouldn't. You were saying you need a better name for it. I think you should call yourself the big spoon. I'm not. I don't know how I was going to read on copy. Oh man. Yeah, no, no big spoon. We'll test it out. I just always laugh. I always think about the meme where someone's reaching around someone and helping them type. Yeah, Yeah. No, Yeah. Oh, gosh, that's hilarious.
No, that's a terrible image too. I don't know. Yeah. You know, I don't know what I what I would call it, but I'm always happy to pair is really what I say. Yeah. No, I like, I like the concept. It sounds good. It sounds like a really good way for a junior to up their skills too. That is also true, yeah, yeah. Always important to have like conversations so they don't feel like they're bringing down the speed of the team or whatever.
Like that is a common thing of like, I'm like, I don't as a when there's a junior, they'd feel like they're slowing down everything, but I kind of turning that around and say, no, we're investing in like speeding you up. It's like actually much better. And I do think sometimes juniors in particular, they benefit from solo time. So at least some juniors I've worked with, they they want the like solo time to go explore a little bit more without feeling like there's a hard boundary of like, no, no, we got to keep kind of this track going. So don't go explore too.
Too much you also do need as a junior you have to struggle and do things wrong. Yes, that's a really good way to learn like. The most like, every time I've learned something really beneficial, it's because I did something incredibly wrong. That's what really sticks in your brain. Yeah. Yeah. No, I think that's absolutely true, right? It's very different to do stuff because people, if you're pairing all the time and they tell you that's a better way to do it like. Then you're not learning that skill on your own. Yeah, exactly. But I will say one really
helpful skill I think juniors can learn from senior developers. That's so long as the senior developer's also comfortable with this, but is the ability to ask questions cuz I think I don't know, at least when I remember back when I was a junior developer, it was like, you always assume people know everything, but it's really helpful when people model people who are more advanced model the, the like, Oh, I don't know and there's no problem. There's no like shame in not knowing something right? Or like how much you Google stuff right or whatever. Now you, you, you LLM it right. So.
Go to. Sorry to go off that too is an engineer's background or software developer or whatever you want to call yourself. We're so vastly different from everyone that we work with. Like what makes me a senior developer and what makes you a senior developer are very different things. Like sometimes I think people are really good at like syntax. Yeah, paradigm. Sometimes people are just better at like architecting the problem and knowing how to get to the solution and they might be a poorer like coder or whatever you would call it, you know?
But they have. The ability to use their brain differently. So like. I think it's like, it's fascinating because so I work with, you know, three other Elixir devs and we're all like quote UN quote senior developers, but our backgrounds and where we come from and what we know is so vastly different. It's like it's crazy. Yeah, yeah, exactly. And, and being willing to learn what you're good at and bad at and being able to learn what other people are really skilled
at. And like that's such a valuable thing. It goes back to what you were saying before. It's like, I'm so happy I'm like the dumbest person in the room. Like being able to one not feel bad about that because like some people do and actually think it's like it's the best thing you can do, right? Because then you can learn and not be afraid of like asking when you need, when you need to ask or like. Lean everyone struggles with like that imposter syndrome, though, even like especially if you're new to a team because you don't want to let the team down right and you're like. You're like, you still have this.
Yeah, yeah, yeah. And like, learning and getting familiar with new code bases, I think is one of the most stressful things ever, right? But once you're like comfortable in a code base and you kind of know the gist of the product. You're sure? You're in a lot better place. Yeah, yeah. I don't know. I I enjoy the the the the discovery aspect a little bit too. Well like, no, I enjoy the discovery but I'm just saying there's like a level of anxiety and pressure to learn it faster than you're learning it. Yes, that's true. That's absolutely true.
Yeah, yeah, yeah. It's always like, I gotta hit the ground running so far and like, don't wanna, Yeah, don't wanna look like. Oh, it's take. It's taking them two weeks to import, you know, whatever it is, right? Yeah. It's like, oh, this ticket, you know, roughly should just be like an hour or two, but it took me 4. Why is it taking me so long? And am I? Am I an idiot? Oh gosh, yeah. Do you do story pointing? Is that? What, Yeah, we do story pointing. I'm like on the fence. Like I don't, I get the concept of it, but I also think it's really dumb because you don't
know what you're going to run into when you're doing your planning. Poker, like everything from like the macro view, is a lot simpler than when you actually do it. Unless it's like. Already something you've integrated and it's like copy and paste kind of thing. Yeah, I have a lot of thoughts. I mean, we did it. The team was doing it earlier. I don't know, maybe like 1/2 a year ago or something. We're doing story pointing, but a lot of us are kind of against it. So we have a question. What does story point mean?
It's like, oh, interesting, I didn't know you could get questions. I'm in the future, I mean. Oh yeah, yeah, we can get questions. We have a couple, but they didn't really like go exactly with what we're talking about. So I was just gonna circle back to. Them, Yeah, yeah, yeah. So story pointing, are you taking this this? Question. I mean, we both can. It's kind of. It is a irrelevant value. Yeah. Based off basically momentum in your speed. Like everyone's point systems can be different to them but what everyone ends up doing
which is the failure of story pointing as they put time to them. Right, they equate it to time, right? Exactly 1 story point is a four hour blocks like no don't do. That so like and I do get that because it's hard to understand what points even mean. So like on collects will roughly say like A5 pointer is like a day long ticket. Yeah, yeah. So I, I am not a big fan of story points, but I've used them in the past and I, and I think the most successful way that
I've seen them used in the teams that I've been part of is so to, to come to the question, story points are a idea is a relative value because we're terrible as humans as estimating like concrete time chunks, right. Which is why the failure of story points would be to equate it to a time chunk cuz that's kind of the opposite of what you're supposed to be doing. Exactly. Yeah, It's meant to be a relative value and the way I've seen it work, really like the best way I've seen it work, which still had issues, I think. But is the idea is that you like do a simple system cuz sometimes
it's super complex, but you can do like 1248, right? Suppose those are your values. And what I've seen as successful is like anything that's an 8. It just means there's like a lot of unknowns or like the complexity is so high that that means we should be breaking this whatever story we're trying to point. Into more tickets. Into smaller things like you should only be working on things that are pointed as 1-2 or four, which means you have basically discover the unknowns or have enough of a lead on the unknowns
so that it's not like where you're saying a surprise that you're like, this was a 2 pointer. And all of a sudden we dive in here and we find like a rat's nest that's gonna take forever, right? And the best way to the idea of story points, I think is that your velocity, which means like how many points? Velocity, that's what I was trying to think of and I said momentum, but yeah. Yeah. Your velocity, your team's velocity is basically like how many points you shipped last week is this week's velocity because your best estimate as to what you will ship this week is
what you shipped last week. That's kinda how I see it as like if you're gonna use it, kinda use it within those parameters, or at least that's where I've seen it. But no one is more successful. I know that the inevitable point to time, it's like so frustrating, right? It's like, let's not do that. But like, then I also get that like, especially from like a product manager and like people that they just kind of want to be able to wrap around like, OK, how long is this new feature gonna take? Like I get. That, but it's like it's so
everyone that everyone that works in software knows you just always run into surprise issues, like everything takes longer than you originally. Planned, then you guessed. Yeah, I think that's another downside of story points is that probably management wants to use it to estimate how long things will take. And how productive you are and. Yeah, yeah. Which I, which I get the, the desire to kind of estimate those things, but I don't think they're a great measure for that. Again, for me, it's like they're, if you're gonna use them as sort of to understand how much should we put in, like
what kind of work should we be putting on this lot for this iteration Sprint? Yeah, whatever you wanna call it, right? And it's like if we finished ten points last iteration, let's only put 10 points in this iteration. Let's not pretend we're gonna do 50 and then be surprised at the end of the iteration that we didn't complete everything we kind of wanted to do. So anyway, that's kind of how I see it. But if management's gonna be using it for estimating other things, it's like, I think you're going off the. Rails there, I agree. Yeah. So yeah, I, I agree with you. I think it's just it's really
hard to estimate time with software development. It's so hard, it really is. And that actually is probably one of the hardest parts about like being a consultancy, right? Because you're saying new work on and you have to like everyone wants like deliverable dates and it's so difficult to hit. Yeah, This is why, yeah, there's so many initial conversations have with clients, but that yeah, I don't, I don't do like time based or fixed bid projects, right.
I'm always doing. I used to. Do fixed bid projects. Yeah, that's rough. It'll it'll get you sometimes. Yeah, yeah, I'm not good. I'm not great at that. I haven't. I don't have a lot of experience doing fixed bid stuff. I do like time and materials. Basically, it's like, yeah. I mean, my most successful projects were time and materials. Because then you're not worried about overshooting or losing money or just over estimating a project and charging more than you should have.
Yeah, yeah. And but it's hard. It's hard. I could see it. You know, it's obviously from the client's perspective. It's like, how can you not tell me how long this is gonna take? Like I need to budget how much I'm gonna pay you for this thing. So I get it completely. It's such. AI had a client where, I mean, we completely dropped the ball, but we underbid so much and this project had so many issues arise. And. It lost us so much money well through our time, but right. And that's the danger of fixed.
Bid, fixed bid, yeah, yeah, it's a yeah. It's like it's tremendous amount of risk you take on, right, with fixed bids and the client it takes on risk without when it's time and materials, they take more of the risk, I think. But there's ways to minimize that, right? I always do like, let's do a trial, like let's see how far we can go. Like if you're worried about this, right, Yeah, you know, and, and there's also the communication because there's some, there's, I feel bad for clients who like you said at the beginning, who don't know, like a, a non-technical founder who goes and spends $50,000 and they
have nothing to show for it. Because like it was sort of throw over the wall, throw a bunch of specs and some team somewhere was supposed to be delivering something. And at the end of the month or whatever, they come back and they're like, we don't have anything, right? That's not how you work, right? That's why I like the four hour overlap. I'm like constantly. Clients have full visibility into what's happening and they know every time. You definitely need to be able to trust, yeah, engineers you're working with, right? Because it's very easy for us to basically fuck off, right?
And you don't really know, like if you're not a trustworthy person. Yeah, you got that. It's you need. Trust. Yeah, yeah, for sure. Yeah. Anyway, want to tie back to TDD? Yeah, I was just going. To OK, OK. So you're a big Test Driven Development fan and yeah, I think, I mean, I, we can't assume this. So you want to just explain what it is for? Yeah. Sure. So TDD comes from extreme
programming, unless I'm mistaken, maybe I am. And the idea is that in extreme programming, sort of there was sort of this idea of like, OK, we write tests first, right. If you write your tests first, that means you sort of are writing what you want the behavior of your code to be. And then when you execute that test, it'll have a failure. And then you can write code to satisfy that test, right? That's test 1st. And then from an extreme program, the idea is like, what if we take that to the limit?
And so we always do that, like not just testing, but we test 1st and we test first all the time. And that's test driven development, right? So test driven development, if you ever look at graphs online or something, it also has this little like circle where it's like you write a test, it fails. That's like the red state, you make it pass, it's green, and now they have a passing test. You have confidence that the behavior of your system is what you expect it to be because you have tests that when you run em, it executes that and it confirms that and now you can refactor.
So it's also called like red. Green refactor is a pretty common phrase with TDD. So that's TDD. And then there's other, yeah, maybe I'll stop there. There's like BDD, which is behavior driven development, which is another thing that I practice. And I know you you asked me originally also whether I practice it all the time or not. And I can answer that or we can we can go a different direction. Yeah, answer that and then we'll start talking about like some of the benefits, at least from my perspective of test driven development.
And I'm not, I'm not claiming that I'd follow these, but I want, I want to be a better person, a better person, a better programmer. That's funny. I hope you're not. I don't feel like, I hope you don't feel like a bad person. Yeah. But I do think there's there could be that connotation. Like I do think sometimes there's that. And I don't really want people to feel that they're not good. People, because you're not. You're a horrible person if you don't use Test Driven Development. Yeah, well, I do think it'll it'll Anyway, let me, let me let
me answer your question. I basically practice it all the time. So that doesn't mean I can't like spike something without TDD, but which I do occasionally. But I basically have been doing TDD for so long that even when I'm not TDD ING, like when I'm spiking something, I need a workflow that quickly iterates and I need to see failures to tell me kind of like, OK, what? Like one of the one of the cool things about TDD is that you
call your own shot. So you call your own shot in what is how is the test gonna fail? Because that also confirms some of your understanding of what's happening and what will be the next step. So even if I'm not TD ING and I'm spiking on something I typically have, I use vim and T Max so I have like a vim little pad or something. I don't know how you guys do it. Once you do it, you can't. I've tried to switch to other things but it's you can't. Like the way modal editing is so beautiful anyway. But let's get another whole
topic. But even when I'm spiking, I will typically be evaluating things quickly and making sure that like the failure. OK, this next. Yeah, this is failing where I think it's gonna fail. So I need to add this little next step. So it allows me to do some really like incremental I'm even I'm diving into other things. But anyway, I use it almost all the time. Even when I'm spiking on something that maybe I don't want to like fully flesh out the tests, I still do it. Because my observation or my
opinion is that even if you don't do TDD and you write the code and maybe suppose you're spiking something and I do a lot of web stuff. So you might check it on the browser, right? Is this thing working the way I expect it to? You're checking on the browser. So what you're doing is you're still testing, but you're doing it in a way slower feedback cycle where you have to go grab your mouse, launch your Phoenix server, click, refresh, right, You're doing the same thing. It's just that you're doing it a lot more slowly now you're. Manually checking your outcome. Exactly. Yeah, Like we always test
everybody's testing their apps. It's just how are you testing it? Are you testing it manually and do you, can you iterate quickly on it, all this stuff. So anyway we can dive more into it, but that's so. Like my perspective of it is it it, it makes us think through what we're trying to solve, right? Because we all like as a programmer or like if you're building a product or a feature, you're excited, right? You want to dive right in, start writing it. But sometimes if you start aimlessly creating a feature,
you're not sure what your goal is, right? And like, I think like I run into this, like the less you plan things out, the more back and forth you have, the harder like PR review you have because you have sloppy code. And it's apparent, right? But if you take the time, and this isn't even like maybe you don't even write a test, right? But you take the time and write out what your goal is for. Like how are you going to accomplish your task you're about to do? And.
Just just doing that, you're going to write better code. And then so like the way I think about test driven development is you're planning that, but with a test. So you know what you're passing into something, and you know what you want the outcome to be. Yeah, exactly. And you? Know you can't fake that. Yeah, no, exactly. That's that's the spot on. I actually I like to use the, I think it might be one of the seven habits of highly effective people or something. But anyway, it's called begin with the end in mind, right?
That's what you're talking about. Like you have a goal and you, like you said, you can write out your goal. Actually with LLMS, you sometimes like are trying to think about how do I correctly prompt this? It's helpful to think of the goal as well. But anyway, you have a goal, but like you said, at the end, at the end you have an executable. Like this thing will confirm whether or not I am satisfying my goal. And I actually find that with TDD or BDD, one of the things is you write just enough code to get the test to pass and therefore you're not running any
other code than what you need for your system to work right, and so you're not wasting time in over engineered solutions necessarily. Yeah. And that is so easy to do. How often have you written something and had gone back to it and be like, why am I doing this extra step? Yeah, and you just aren't. You're not even using something you wrote or it has nothing to do with the output of your actual goal, right? Yeah, exactly, exactly. It's so easy to do, quite frankly, if you're not, if you don't have something to tell
you. Yeah. I'm like, I've finished the thing that I'm meant to do. Yeah. And I even, it's quite frequent where I discovered that I wrote the implementation in a different way than I had in my head because by going step by step, you realize, like maybe there's this different path that I can take that it's just simpler or whatever, you know? And again, once you finish, if you don't like that implementation, now you have a set of executable tests that confirm the behavior of your system and you can now refactor
things, right? Yes. And that's a, there's a caveat there, though. I think sometimes it takes a little practice to write tests that test the behavior and not the implementation of your code. So the idea is that you're testing behavior. So anyway. Let's explain that. Let's dive into that one a little more. Yeah, depending on how well you know to your test tools, I guess you can test too much of the implementation of your code
because because the way you're testing is not really in a black box, right? It's not like you don't know the implementation or. And actually, I think this kind of happens sometimes when you test after the fact where you already have the implementation and you can tie your test too much to the implementation. So let me give you a concrete example. I can give you a concrete example of something I talk about in my live view course, my testing live view course, Testing live. When you test live views, it might seem contrived, but I've
seen this in practice. You can for example assert that the HTML you have rendered has. I don't know, like it's hard to do hand WAVY, but in Live V test the tooling itself, you render the HTML and then you basically assert against that giant string. Like you want to just assert that the specific string exists. Or like there's something in that string. So when you so in live view
test, just to say, for example, you have a view that you've mounted or whatever, and then you say the, you say you target an element and you call render click, for example, and that's gonna perform like a click event. And that gives you an HTML result. So like a BLOB of HTML that's just a string. And one way to write assertions is to assert that there's a match that's a substring of that HTML is in there. So for example, you have a page and you're gonna assert that your title is election mentor. So what I've seen sometimes is
that in that HTML, they did write an assertion where the HTML rendered contains an H1 with Elixer mentor, right? But they're actually hard coding the H1 tag in there, the HTML, right? You're sort of over specifying how your implementation works. What you really wanna do is say I wanna assert that the title of the page is Elixir Mentor. Now in HTML titles are usually H1. So maybe this is not the best of examples, but the idea is that if you can use or for example, the hash element selector or
helper in live V test, you can pass a CSS selector in a string. And so you can say, I wanna say that the ID of title is should have the, the title Elixir mentor in it, right? So now you're using an HTML ID or you could use ACSS selector like a data role or some people use data test ID, stuff like that where you're decoupling the exact implementation from your test. So again, your behavior is, you
know, I like this page should have a title of Elixir mentor. It shouldn't be like the title is an H1 with this thing cuz, cuz then if you add a class to that H1, all of a sudden your test breaks, right? So that's the example of like you've tied your test too much to your implementation. So you can no longer refactor without having to change your test. Now every time you change that title, you put a new class or a new CSS or whatever, you're all of a sudden breaking your test. So your test is really coupled with your implementation. And again, kind of contract example, you can think about this even more in terms of like
when you click a button or something and you're targeting that button specifically again by HTML or something, you run into these issues. And this is a web UI example, but you can, there are many I can, I can try to think of another example if you want of like back end stuff. But it's the same kind of thing where you want to test the behavior, not the exact implementation of your yeah, not your exact implementation. So. Yeah, I don't know if that. Kind of makes sense, it's a little abstract. But it makes sense. It's because if you if you ever tightly couple something too
much when you're refactoring something, if you have to refactor something and then you're not changing the outcome, but you have to refactor your tests, you're getting in the hairy situation. Right, because you're, Yeah. And you're no longer in that nice green cycle. And also, if you're having to change your test in order to change your your implementation, are you actually refactoring or are you now changing the implementation, right. Or are you changing the behavior? Sorry, Right. Yeah. Yeah. So no, that makes sense. And like when you have tests in place, it makes refactoring a
dream. You don't have to worry about things breaking, you can just trust your tests. And, and honestly, that is, I mean, it's one of the huge benefits of TDD is that you're theoretically you have all your line, all your code tested, right? And you can refactor with confidence. And I would almost say refactoring the definition. I think people misuse the word refactoring when they mean like restructuring your code generally, but re factoring the definition is change in code without changing the behavior
right? So you need something to confirm that you haven't changed the behavior and that's what you're tested, right? So for me, testing and refactoring go hand in hand like you. Well, even if you move code around and maybe break it into multiple functions and everything, I would still call that a refactor, even if it's just a restructuring. Yeah, yeah, right. That is a refactoring. Yeah, yeah. But the idea is that you have, what I'm saying is if a refactoring is a change in code that does not break the behavior of your application, then how do
you know you're not breaking behavior, right. One way to do that is if I guess if you go through the UI and you make sure that all the flows that you expect are still the same, but right, like again, that's sort of you're doing the testing in a different way, but. Yeah, well, I like I I need to just do it. I need to just pull the Band-Aid off and write my tests before my code because like I write test coverage for everything, but I always do it post. And I do agree with you, I think it's harder to do it post
because you forget all the different spots that you should probably test. It's easier to miss it. Man, it's, yeah, it's easy to miss it. I don't know. I I think there's different things there. I can't tell you exactly because it's been a while since I've written a test after the. I mean, I do that for regression testing I guess. Regression, well, tests are so good to avoid regression bugs and things like that as well. We do have a good question from Jose, he said. Herman, what do you think about that policies of like 90% code coverage with tests?
Do you agree? Will you increase that percentage or decrease it to 50 to 75%? All right. First of all, the higher the coverage, always the better, right? So like my opinion here is if you're at 50%, you should never allow your code base to drop below that and you should only increase it through time. But. I talk on speak on it. Yeah, I honestly have 0 policies on percent of code coverage. I don't, I never look at that.
The reason why is I think those metrics just like everything else, like if you have 90% coverage, let me say this, there's two, what am I trying to say here? If you don't have 90%, like if you have 10% coverage, you know that you need more tests. Yeah. OK, so you know that one. Yeah, but just because you have 100% coverage doesn't mean you're or like 90% coverage
doesn't mean your tests are covering things well or correctly, right. So another, so that's one way to think about it. It's like the negation of The thing is a is a good indicator. So if you have no test coverage or 10% test coverage, it's a good indicator that you're missing tests. But the the positive of the thing, the positive of the statement. So if you have 90% coverage, doesn't guarantee me that your test coverage is great because you can test things that are almost tautological, like I So when I say like you, you in
theory, if you TDD everything, you in theory have 100% coverage. But that's not always true. And I don't necessarily test things that are completely obvious, right? I don't know, like I don't know. I don't necessarily always write like a ecto change set test if it's a very simple. Passed or something, right? Well, it's very easy to write a test that doesn't actually test everything. I think with, yeah, you can write a crappy test that passes and makes you feel good because
your code coverage is high. Exactly. So it becomes a false positive, right? Your code coverage indication is sort of a is just a fool is fooling you. I do. Think it's a good metric to track, but you have to also make sure your test quality is good. Right. And so, yeah, exactly. So to me, to me, it's exactly, it's like if you don't have any test coverage or you have very low test coverage, it is assigned, right. It's a helpful indicator. But if you compare 2 code bases
and both have 90% coverage or one has 92 of those numbers, I hope that answered the question. I don't know. Yeah, sorry, you might have cut out a little bit in that last like 15 seconds. Yeah. OK. Yeah. I was just saying if you have very low code coverage, then you know that you need more code coverage. Like you know that there's something there for sure. But if you have, if you give me two code bases and one has 90% coverage and the other one has 92% coverage, I can't just from those numbers tell you that the 92% coverage is better than the
90%. Well, you'd have, you'd have to go and look at tests and actually see how well they're in, right. Yeah, and and. But I do, I do think it's a good metric for your own projects, right? Because you know the test quality going in and I don't like, so like collects, for instance, will hit like markers. Like we'll always try to increase test coverage. Like everything going in from like this point forward has to be tested.
But we'll. We'll never let our code base coverage drop below like hard lines. I see that is AI have done that before with clients where and it's been a little while where if you go in and they have very little code coverage, that can be a really helpful thing so that you sort of establish a baseline so that like you're saying no new code should be introduced without test coverage, therefore like decreasing the ratio. I think that is a helpful tool. Yeah, yeah.
So I think it's a good thing to keep an eye on, but don't let a fancy big number make you feel good about your test coverage. Yeah, yeah, and, and, and honestly, in the end, for me, it's about trust in your code base, right? Like the, the thing I love about tests is how I can, I can make changes and have trust that if the tests are green, I haven't broken things, I haven't introduced regressions, I haven't changed things that I wasn't supposed to change with the facts that are happening elsewhere, right?
So that's, to me, that's the biggest sign. And yeah, if you don't have any code coverage metrics, you might not know. But if again, if you have them, you still might not know. So again, it's sort of like I developed that over time with a code base of like, do I trust, do I trust these tests? Because I know in the past that anytime I make changes and I run in the past, everything's good and therefore I'm good to go. And I will say about like the first half of my software career, I worked for a lot of fast-paced startups that thought tests were a waste of time,
which at the time I agreed with because you're just trusting people that are smarter than you and sure, whatever. I don't agree with that anymore because we've all experienced regression bugs where you fixed a bug 5 or 6 times and then it keeps reappearing because you don't have test coverage and you accidentally keep reintroducing it, fixing other bugs or adding features and it it's a quality of life thing to have good tests written. Yeah, It, I think people think
it slows them down. I do think when you're first learning to do TDD, even if you've done tests first. So for you, Jacob, it's like if you're trying to do this, it will slow you down at first because you're learning a new technique, right? Even if you know how to write tests, you're still changing the way you, your, your code. So it's going to, it's going to take a little bit of adjustment and a little bit of time. But I actually think, for me personally, I don't think it slows me down to write tests at all, even when I'm writing them, because it's, it's like I said, it's a thought process. I'm thinking about the behavior, what I'm going to, what I want in the end.
And then I have this executable thing that, so I, I, I didn't lose any speed in creating the test in my mind most of the times. And then it improved it. It makes me way faster when I'm implementing, when I'm refactoring. And then for, for the rest of the life of the project, yeah, we can move a lot faster because of that confidence. We can change code without having to triple check it all the time because we're unsure if we're modifying something that would break like that is huge. It's kind of like making sure you have a good foundation for
the building, the skyscraper you're about to build, right? You can. That's right, actually. Trust. You can trust the foundation. Yeah, yeah. You don't have to keep checking the foundation every time you're about to add a beam, right? It's a good analogy. It's like, are we about to break something? And that's how it is in systems where you're working on something. You're like, I don't know if we're gonna break something the amount of stress and triple checking you have to go through to like, OK, we're make sure we're not breaking something like it. That's you're removing all of that with with with good test coverage.
So yeah, yeah, you can tell I'm a big fan. I love. Well, so now like I want to talk about Phoenix test because that's more front end, right? You're doing live view and static views and you're testing the implementation of UI essentially right? Yeah. So it's you. Yeah, it's UI, Yeah, for sure. The idea comes from. So I've written a lot of live view tests and every time I'm in
a live view test project, I eventually start wrapping these sort of concrete steps into more pipelineable flows, right? Cuz in live view test to to click on a button, you need basically three steps, like a, a three-step pipeline. You grab a view and then you grab an element and then you render a click on it. So that's the three things. And then maybe you want to then you know, you just wanted to click on that and then you want to submit something else. So you kind of you find yourself like with these really verbose,
hard to retest. And so I started wrapping those up. And then on the other side, if you want to test a non live view Phoenix app from the outside in, which is what BDD is and what I typically practice like you write first sort of the user behavior, what they would see, like navigate to this page and click on this button and perform this action. And you should see this like flash message and you should have created this user kind of thing. There's no way to do that with for static Phoenix. Like I say, static, it's like
dynamically rendered, but not live view, right? Like non live view or dev views. There's no way to do that unless you use something like Wallaby. And Wallaby's been great. Like I used it heavily in the past, but Wallaby uses Chrome drivers so it spins up a whole Chrome instance. It's running the browser, so it's really slow by default and you run into a lot of issues because you use Chrome, right? Remind me Wallaby is like a you basically can create user interaction, correct? Yeah, it's, if you've worked like Selenium in the past, like it's that it's like a, it spins
up a Yeah, it's user interactions. So you're doing the same kind of thing where you're testing like, I'm gonna visit a page, I'm gonna click on this link, I'm gonna do these things. Not to be confused with Wallaby JS, which is a different library, but they both go Wallaby. This is the Wallaby Elixir library and but it uses Chrome drivers. So again, it's spinning up a whole Chrome instance and you have to for each test run. I guess basically, I think maybe it's a pool of Chrome drivers at this point, I don't know. But yeah, so it's really, it's slow by default. It's great. I love Wallaby's syntax.
Like it reads really cleanly, nicely. It's very expressive in what you're trying to do. But it's really slow by default because you're doing the Chrome driver things and that introduces intermittent failure sometimes because you're dealing with Chrome driver and you're having to do all this stuff. So because there was no good solution for non live view or dead views testing and because live view testing was so verbose, if I wanted to do any kind of like flow testing, I sort of found myself through two different apps kind of recreating the same layer on top
of the tools we have, right? So like on top of live view test and on top of basically what is I guess contest, like Phoenix controller testing, stuff like that. And so I basically combine all that into a library and that's Phoenix test. So whether you're in a live view or a dead view, it's like the same way you write the test the same way and it's abstracted from you. And it's more of like a user facing type of thing. So it reads a lot like Wallaby would actually or like Capybara, which is the inspiration for both of these, which is a Ruby library that does the same thing.
And it's fast because we're not dealing with Chrome driver. We're just using, we're just using the like in live view side, we're using what live view test uses, which is basically like a proxy process to act as a browser that communicates with a live view process. And in the static side, we're just making requests with Phoenix Contest, parsing that HTML, making it so it's easier to query that HTML and stuff like that. So it's been working pretty well. I gotta say, I like it. People seem to enjoy it. People seem to like it.
Yeah, I feel like from like front end tests are always written off. Like it's very obvious if your front end doesn't work. Like that's actually the best place to test from because that's what your users are experiencing. That's yeah, yeah. And everything underneath the hood has to work for the front end to work right. Yeah, yeah, I honestly, that's another thing that I've gotten so used to doing. I just I always start going back to the start with the beginning or beginning with the end in mind.
I always start with the test at that level because. Yeah. Not always, right? Sometimes the feature you're working on is actually nested in there, like you're doing something else, like nested in your app and it's not user facing. But if you're creating a new feature that the user's gonna use, you're applying TDD, but in layers. And so now we're gonna go into BDD. I'm gonna take a quick second to explain. So you basically write this outside test, this Phoenix test in this case that will fail because you don't have something implemented. So you implement it, but then it
fails because you don't have something in the inside of your app if you will like your back end. So you work from the outside in. Every time I work. From the inside out, yes. That's what other people do, but I can't do it anymore. Every time I do that I'm like super confused. Because like, I start at my schema level, yeah, no way. And then I'll go to my context level and then like my graph layer or whatever, my controller, whatever I'm doing that's so. So I have to just reverse my thinking. You gotta see there's a graph if you look at TDD Phoenix, I think
there's a graph that I replicated from a book that I read a long time ago. But it's basically that that you can think of it. If you think of TDD as a circle of red, green refactor, you can think of BDD as two circles, concentric circles. So you're starting in the outside circle when your outside test fails because of an inside reason. So like there's there's outside reasons why it would fail and live view, maybe you're in the live view world and you're just iterating with Phoenix test. But suppose at some point you're going to pull data out of your like Phoenix context or something. That's when I step inside. So if your test is failing
because you don't have a context function defined, I then go and drop one level and write a context level function that is going to execute that. And now? You write a test for that though, before you write the function. Yes, exactly. So you step into the inside circle and now you're doing TDD where it's red green. You refactor. Once you finish that, you step back to the outside circle and maybe you've made it one step further in your like flow, or maybe the test passes and then you're done. But if you've made it one step further in the flow, then you run the outside test, see where it fails, and then you repeat the cycle. And so at the end you have a
fully tested thing. Your outside test is passing, which means your feature is done, or maybe you need to add something else or whatever. But it gives you the two layers and it also gives you the ability to refactor at different levels, right? So like if I need to refactor something that doesn't change from the perspective of the user, but maybe it's going to change my context behavior a little bit. Like the behavior that I'm care about is the user behavior at that point. And so that one needs to stay green. And maybe the other one I refactor and change the test or whatever, but I still have that outside layer of this thing is
behaving like I expect. So that's BDD, that's Behavior driven development. Yeah, you, you inspire me. I need to start doing this because it just, it makes sense to me. It's just like I feel like it's a laziness of not wanting to learn a new skill but like it just makes so much sense to me to do. Yeah, to and it's not I, I would say it's not lazy. It's hard. It's hard to to to change when you've been programming for a long time. It's hard to change the way you approach problems. Yeah, yeah. I actually think learning TDD is
sometimes easier for people who are new to programming because you can start them from scratch of like. This is a way to approach it, try it and learn it and do it that way. Yeah, that makes a lot of sense. So I don't know, I say, but I say try it like. No, Yeah, I'm going to. I want to. You gotta give it though, like a couple of weeks, OK, every day do it. Just do it from the outside in whatever you're doing. Start on the outside, right the Tesla stuff and then reevaluate right? Maybe you don't like it. I think you'll at least learn a
new way of working. Maybe it'll make your approach for problems differently, I don't know. I think it, I think it's a very interesting, I think. Long run, you probably become a more efficient developer. Yep, I don't. I can't tell you cuz I don't have a it. Forces you to plan your outcome and anyone that plans before they do anything is gonna do something better, you know? Maybe, maybe. Yeah, I don't know. I don't know. I I certainly hope so and think so, but yeah, I don't have a counterfactual of of me. If I hadn't done TDD right, like
that would be the most. So do you, I know we've been going on for a while so we can like slowly start to wrap things up, but do you have like a, do you have resources that you suggest for people to go to, to pull in test driven development or behavioral driven development? I I wish I had really good resources. I unfortunately don't and maybe that's a sign that I should update. Like the book was meant to be part of that. But because the little out of date and people have to use like Wallaby and stuff, that to me is
the biggest issue. It's not the version of Phoenix or anything like that. It's that they have to use Wallaby and that requires sort of this extra layer of stuff you have to bring in. And so that is supposed to be like a step, step by step tutorial of like, let's do TDD together kind of thing. Like, you know, I don't have another great resource other than in the in, let me say in Elixir or Phoenix format, right? Like if you want to learn more about just regular touch driven development, there are good old books, one 2nd. So for TDD, anything Kent Beck
related is always good. Yeah, see this, this test driven development by example from Kent Beck. That's a good one. Honestly, I learned BDD both through learning from other people and from it was called the Rspec book cuz Rspec is a testing framework for Ruby. OK. But they introduced BDD there to me and I learned so much from that. It's not great because it's not, you know, again, it's not a, it's not an Elixir resource that I can point to readily. But it would be that or I think there's probably a lot of stuff
online now, right? Like you can just, I haven't looked at it because I haven't needed to. But look up Kent Beck, TDD, BDD, OK, awesome. Or look at yeah. You mentioned you have a live view Course I. Have a testing live view course. It's still out there where? Where can people find that? That's on testingliveview.com. OK. It's still good. It's I need to update it for 1.0 but it's updated to zero 20 and really nothing meaningful has
changed and how we test live views from there. But if people ask, it doesn't use Phoenix test because people ask me sometimes does this use Phoenix test? It doesn't. It's about live view test. It sounds like you gotta make a new course and you see a next test. Yes, and that's the problem. I tried to do too many things. Yeah, I think that's everyone's problem. See, I always try to do too many things and then I get burned out and then I'm like, why do I? Can I even program? Yeah, I know. No, I do that too. I go through periods of like, I'm doing a million things and I'm awesome and I love it and
then I'm like, I can't do anything for months because. It's just, it's hard. In fact, the only thing that I have not got burned out on without like, like I have to be careful with like side projects or just anything because they it creeps up on you. Well, like this podcast because it's fun because I get to just talk to people doing cool stuff and it keeps me up to date and I don't really have to prep too much. I just have to get ready to ask dumb questions. Oh man, I know. I don't know if you remember I was I tried to start a podcast not long ago called At Least Your Friends.
Yeah. No, I saw that and I was excited about it. And I know you kind of mentioned it's like on hold or in pause because you just have too much stuff going. On that's exactly right. I can't like getting yeah, just the organizational aspect of it is just too much. It's like getting figuring out who to come to bring in and who to talk to and like, yeah, I just. And it's just. Randomly DM people. It's so good. I mean, and it's so much fun. I, I love that too. Like that's what and relaxed conversations. That was also the idea of my pocket was like, it's about like
life in Elixir, just like from people who are in the Elixir community, but just life in general, kind of like what you might just chat about in a, in a hallway track. That was sort of the idea and I had a few people, but man, it's just hard. I just have to think about like who am I going to get ahead of time? I like you when when you schedule this one, it was like a month ahead and I was like, pops to you. I was like scrambling, scrambling the week ago. I was like, I need to find someone, you know, I was just. So I don't put pressure on myself. I try to do them every week, but I don't put if I don't fill a
week, I just don't announce my I have a podcast, you know, like why put the pressure on it like? Yeah, yeah, yeah, it's a smart idea. I try to release a podcast every week. Sometimes there's like two or three weeks between and I just don't get people. Yeah, Yeah, that's a smart idea. I like that because the stress is what kills it, right? Yeah. And it's really stressful, yeah. See, I'm just not good at overly planning. I just dive in and do it. And so like you, you booked this, right?
I think about it yesterday. That's when I first think about it. I look at some of the things that you've been doing. I'm like, yeah, I've seen this stuff. This was really cool. Yeah, I'd make an announcement on social media that we're going live tomorrow. That's just how I roll. I gotta tell you, from the outside, it looks so organized because you did the social media announcement yesterday. I only saw it last night and I was like, oh gosh, like take him so prepared. Like this is on social media, He's got to pick you guys. But it feels, it feels very
prepared. I was always. Yeah, I'm so prepared. Everything planned to the minute in my life and no, at the end of the day everything's just fire from the hip I feel like. But that makes life. But this is great and honestly, it's like about I try, I don't know, I try to do everything with iteration, right? Like just just keep, keep doing it and you want to change things, you can change it the next time. Like having more, You always have more at bats, right? Exactly. Keep it going, yeah? Yeah, well, like if you went back to my first episode, it's funny. Like I went way out of my way
and I had like a cool Twitch theme that like frames my videos and I'm just like, this is too much. It's distracting. And I was like, I'm just going to have two side by side videos and talk. Yeah, yeah, oh man, I, I, yeah, Speaking of the podcast thing, I wasn't planning on doing video and I started doing it with video. But if I do continue it, at some point it will be no video because like you said, it's more work to edit and more work. It just it just requires you gotta. Just do video because then you
can put it on YouTube, Spotify supports video, podcasts and I don't know. It's like so much more work. It's not just do live stream and then if you say something stupid, it's already out there. You can't undo it. That's fair. But then I yeah, I'll have to ask you. I'll have to ask you because even this stuff, like I have never done live streaming. Yeah. So I don't know. I know there's tools. I know of tools but I forget them already and like I don't know which was any. I mean I know them enough just to have it working like I could. Like I should just make a video of what I do to go live.
And yeah, there you go. It's just yes, do that. It's a. Shitstorm. I just trial and error until it works like when we first signed it. Like before we went live I couldn't even get audio to my headsets so. Yeah, you should do that. I feel like those are great. It's like just behind the scenes. People appreciate that always. Yeah, the day in life of Jacob. Like shit, I have a podcast tomorrow. I have to do a social media post. Yeah, I'm curious to see how you do it. I like it cuz it has my image and everything.
Yeah, I'll usually just go steal one from a social media platform. And if they don't have a good one, I have to ask. I have to reach out. And like, do you have like a headshot or something? Because a lot of people, like a lot of developers, they'll love just having like a cartoon or like some weird image. And you're like, I need a a real picture of you. Dude, you need yeah, you need to find a conference where they spoke, where they had Yeah, exactly or whatever. Yeah, No, makes sense. Makes sense. Oh, man. Well, no, I, I appreciate you doing this, not just for like having me, but as a podcast.
I think it's awesome that we have more of these. And I know the work it takes. And I know you're saying you don't have to prepare a whole lot, but I still know it takes a lot of work. Like there's a reason why not everybody doesn't, So I appreciate. It yeah, no, it's fun. Like yeah, obviously there's work involved, but it takes a lot off the plate just doing a live yeah, like that's my hack for everything. Just do. It live. We're doing it live. Doing it live. I like that OK. It says like, RIP the Band-Aid off, just go. And what's fun about live, too,
is we get questions and people can interact with us as we go. That is. Cool, I have really liked that. I didn't know. Yeah, like I can even turn on like, I don't know if you have this pulled up to see it, but on YouTube I can like pull up my comments and they just like go over my face so. Interesting. I don't have, Yeah. I'm not even Jose goes. What do you think is needed to speed up the diffusion of Elixir ecosystem? More reference in different languages for instance like oh there's lack of Spanish speakers
so actually cool thing. YouTube speak Spanish. So just make content in Spanish. So YouTube actually just emailed me and I don't have a huge account, but I probably have a big account in the Elixir space, right? But they're going to be dubbing my videos automatically for like most like like 50 some languages. So I you should be able to watch my videos if it's not already out. It's coming very soon in any
language. I wonder what voices they'll use I guess maybe even now Gemini doing this or whatever. Yeah, yeah. I don't know, but it's kind of. That's cool. That is interesting. I wonder if my voice will sound like my voice in Spanish. Because I feel like programming tutorials would be hard to dub. I didn't think of that, yeah. So yeah, it'll be interesting to see how it works, but. Yeah, but Jose, right? Jose asked the question. Yeah, Jose. Yeah, Jose, if you're looking for Elixir content that doesn't
exist, you should make it. That's the rule, you know. That's why I made my YouTube channel. Yeah, just jump in there like there's nothing to. I know people will feel afraid to do it, but it's like just one of the rules I have when I'm creating content is I try to do like do my normal stuff, 90% and 10% share back, right? So whatever you're learning, just share it and. Yeah, like I did realize someone did ask. They're like, you should teach what you've been learning and
like I do plan on doing that because they're like distributed nodes and scaling and what you do at the high level. Like that's new to me. And at some point I am going to be putting some material together cuz I think it's it's good stuff. Yeah, yeah, yeah. Please share it. It's always good. I wish people did more of that. There's I can't tell you how many times. It's like it's nice if you are oh man, I'm struggling with this thing and you go and you find a blog post that's like exactly what you were looking for and it's someone who wrote it and it's probably like 10 people
read it, but you're like, oh thank God, this is thing I. Love like Peter Ulrich's approach like a micro blog where you just teach one very specific niche thing. Yeah, and that's all you do. But like when that one person has that specific problem, you're their savior cuz they found it. Yes, exactly, exactly. And yeah, don't be afraid. Like I, I think sometimes people think of blog posts and they think that needs to be long, like, right, short ones. I can't how many times people are like, oh, look, I was looking up this thing and I found your little video, right? And it's like the shortest
thing. And I gotta say sometimes about the imposter syndrome you said earlier, sometimes I'm like, I, I can't believe I didn't know this. And, you know, I'm going to share it. And like, I'm, I feel like stupid for not having known it, but that's exactly the kind of video that everybody's like, oh, I didn't know this. This is awesome. And it's like, oh, I guess I wasn't the only one who didn't know it. It's like just my fear that I'm the only one who doesn't know it. Right, well, one of the ones that I just saw from you was like the the mix the.info. Yeah, I just learned that recently the other day. So like, I remember learning
that, but I forgot about it. And so like, I love being reminded. Like Oh my gosh, yeah. I dig through my freaking like mix file all the time or like mix lock file all the time. It's so annoying. I know exactly I do the same or like I'm like, oh, with this thing, you know, I go to GitHub, it doesn't have the version. I'm like I do the same. Thing with debugging, I don't use the built in debug functions and I'll always just do IO puts and inspect everywhere instead of like piping it in. Yeah, and like actually using the built in debugging like.
Yeah, it's, and I gotta say another thing for creating content is that many times I'm like, I remember, I know I learned how to do that, but I've forgotten. But I know I wrote something about it. So I just go and search it and I find it. I'm like, there you go. I'll watch, I'll rewatch my videos for starting like new projects and stuff 'cause I'm just like I forgot, like I forget the flags and stuff. And sometimes I don't know if I don't feel like looking at documentation, just, you know, talk myself through it. Yeah, yeah. There you go. Thank you past Jacob. But I will say like, it's hard
for me to watch some of my original videos. 1. You know, you're just like new at it and you might not do things that way anymore, but you just have to put that out of your brain. It doesn't matter. Yeah, yeah, that's fine. Yeah, You just gotta, I think we all expect there's this thing called like especially with design, I think. But this is, it's true of all these things. It's sort of there's a gap between your, your taste quality and the ability of you to produce. If you ever think of maybe think
of drawing, you know what a good drawing looks like. And I'm a terrible. I'm not great at drawing. If I Draw Something, it's like, this is terrible, right? Yeah. And so it's the same with all of these things. You maybe wanna create content, you wanna create a video and you're thinking of some awesome content creator and you're like, Oh my gosh, like my stuff looks terrible, but the problem is you're comparing yourself to someone who's have like 200 at bats, right so. Exactly. It's the, it's like the taste, you have the taste to know that your videos are not great or whatever it is, but you don't have the skill yet to reach that. But it takes time, you know, So
you just gotta like be OK with it and keep iterating so. Yep, I agree. Awesome. Well, thank you so much for man. This was a lot of fun. We'll have. To do it again, thank you. Thanks, Jake. Thanks for having me man. Yeah, All right. Everyone else, thanks for tuning in. Have a good weekend. Yeah, I'll see you all. Testing.
Francesco Cesarini, founder of Erlang Solutions, and Allen Wyma, hosts of BEAM There, Done That, join Jacob for a live crossover of both podcasts. They trade origin stories, compare what the Erlang and Elixir...
Jason Cohen, founder of WP Engine and Smart Bear, joins Jacob to talk about his new book Hidden Multipliers. They dig into why engineers avoid marketing, the onboarding math behind SaaS trials, finding your ideal...
Filipe Cabaço, team lead on Realtime at Supabase, returns after two years to talk about his side projects: Vitro, a browser for every AI agent with a replayable timeline of what each one did, and Ampoule, which packs an...
Peter Ullrich returns to talk about Pushin.eu, the European GitHub alternative he's building in Elixir. Five months in, it has about 700 confirmed registrations after going viral on Hacker News, and Peter walks through...
Nathan Hessler, organizer of ExMex and RBQ Conf, is back four weeks out from ExMex 2026 in Austin. We cover MCing Rails World, how he picks speakers and keynotes for a single track, what running a Ruby conference taught...