In this episode of the Elixir Mentor Podcast, your go-to source for All Things Elixir, I'm excited to welcome back Peter Ullrich, a returning guest and passionate Elixir advocate. We'll dive into Peter's latest project, runelixir.com, a free resource designed to help newcomers get started with Elixir. Peter will share insights on best practices for learning Elixir, common pitfalls to avoid, and why he believes Elixir is an excellent choice for developers. We'll explore the features of runelixir.com and how it aims to simplify the learning process for beginners. Additionally, we'll touch on indiecourses.com, another platform Peter built for hosting video courses. This episode is perfect for those curious about Elixir, developers looking to expand their skill set, and anyone interested in the future of functional programming and online learning. #ElixirLang #LearnElixir #FunctionalProgramming #OnlineLearning
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 Litzel, your Elixir mentor. 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 libraries shaping Elixir's future. Today we have a returning guest, Peter Ulrich. And welcome back, Peter. Thank you for joining me today. How have you been? Yeah, thank you very much for having me. It's it's been a while and I'm doing all right. You know, I said that earlier already to you, but I'm unfortunately very sick today. But nevertheless, I I hope I can bring something to the to the discussion. I'm sure you'll do great.
I feel like so much has happened since you've been on last. Let's see, indie courses you kind of have put on pause, but you added like a ton of features from, I feel like our first chat to before you kind of did a feature pause. But I, I have been enjoying the platform, my courses on it. It's been awesome. You have a new little education
project that you've been working on though, that I just started diving into and it's actually like quite fantastic. Do you want to tell us about it? Yeah, thank you. Yeah. Well, yeah. I mean, first of all, indie courses, it was amazing. It still is amazing. And, you know, it's not dead yet. I just put it into hibernation because I, I realized like the problem there is the selling of the project. You know, I, I have you luckily as my first premium subscriber, actually, I was super happy about that. And I was sitting in the in the
bathroom and I just jumped up and read to my girlfriend and showed her the the Strat notification and said, you know, I have my first subscriber. That's awesome. That's a good moment, yeah. I mean, when whenever you ask people who, who build SaaS, like they both tell you, ah, you know, yeah, sure, I have like a million AR now, but what I actually care about, like the last time I was really excited about money was the first time somebody, somebody subscribed to their to the service. So that's always the, the one moment where you really see, OK, somebody's actually willing to put money down. So what I've built is, I think
not. Terrible. That's a great feeling, right? And I am proud to be the first subscriber. That's awesome. Thank you very much. Yeah, well, yeah, I mean, indie courses is great. I still love it. I also have my own courses there. So I'm still gonna build it. I'm gonna expand it. But just right now I have too many other things going on so it's kind of more like on a on the back burner. Yeah, I have run run elixir.com. What you mentioned already the the new kind of language cheat, cheat and introduction to Alexia. So yeah, the, the idea here is a
little bit that if you're new to Alexia and you want to get started with it, you know, I give you this like 30 minute to one hour quick introduction to the basics of the language. So basically what you were doing with Alexi Mentor but then compressed into like a 30 minute just, you know, text walkthrough basically. Yeah. Yeah, and then what I wanna, what I just wanna do is like, so I, I started working with Rust the other day. I, I started building some desktop apps with Tori and with, with Rust. You got the Rust by example book, which is really interesting to read when you get
started with Rust. And like, you know, I've been a developer for six years now. So when you come to another language, you just want to like learn the basics. You just want to see how do you do the basic stuff? You know, how do you do logging? How do you create a function? How do you create a class or like whatever module you, however you want to call it? And so that's what I focused on with Ron Elixir, where I just kind of give you all these fundamentals and say, well, this is how you create a function. You know, this is pattern matching. This is how you assign a variable, although it's not very assigning a variable, which people always mention to me.
And that's true. It's, it's a pattern match. However, I don't want to, you know, distract people too much in the beginning. So I I keep it really simple. Well, I think it's important to use phrasing and terminology people are familiar with 'cause you have to assume most likely they're coming from like an object oriented background, right? So I think it's OK to use some I like. I kind of get cringy when I look at some of my first videos 'cause I was just like just starting to, well, I, I, I was writing Elixir for like a year.
But I feel like you don't work on using proper terminology until you start teaching it. And so like I would call things like objects and like, you know, I, I would do everything from the object oriented world and I wouldn't use maps. I wouldn't say maps or it was just, it was ridiculous, but I think it's good. I was, I was gonna say though, like running through it, like I think this is like one of those websites that you need to bookmark. It's like a great reference tool as well.
Exactly. And that's the second, the second object, I don't know how you say mission I have with this objective. So the first one is, yeah, of course, like if you get started with Alexia, this should give you the the tools just for the third first, like, you know, to to to write your first application to just get started with Alexia. But then later I also want to have kind of like a look up library kind of thing where if you are already working with Alexa for a while, you can look up things like I always come back and look up, you know, how to do persistent term stuff or ETS, you know, work with ETS.
But then what I also experienced is that even people who work quite a well with Alexia, they're not aware of certain things that Erlang, mostly Erlang or Alexia, they offer. And they will never hear about these things unless somebody writes A blog post about that or they run into this into in the codebase or somebody else. And that happened to me with like persistent term, for example, you know, I, I never heard about persistent term until I started working with somebody else's codebase and that person used the persistent term all the time. So I was like, what is that?
Right? So then I, I looked it up and I learned about it and I was like, ha, that's interesting. And I'll, but in five years I haven't heard about that thing because I never needed it. I never heard it, like never read it. So that's why I wrote. I'm also, you know, continuing to, to, to write Ranolixa in such a way that you get kind of you get an overview of everything that is available to you. If you want to do certain things like in state memory, sorry, in memory state, for example, you have, you know, an agent, of course you have a Genserver, you have ads, you have Det and you
have persistent term and you also have amnesia. But I haven't covered that thing yet. So like, you know, there are all these topics and what I want to give you with run Elixia is kind of like an overview of all the available options to you that are available to you. So you know, that's what I'm, I'm kind of working on here. So these are the two objectives. Like one of them is the quick start thing, you know, like 30 to one hour, 30 minutes to one hour. We just get started with Elixia. And the second thing is then where if you're already working with Elixia for a while and you just want to look up what else can I use for this particular problem, then you go there and
just have a look around and maybe you learn something new. I love that. No, I think that's great. But like I'm on the same page. Like if, if you don't have a need for something, it's very rare you're going to learn about like persistent term or anything like that. Like I wrote Elixir for almost 2 years and never used a Gen. server, you know? And then when you finally need one, you have to figure that out. And then, yeah, you go down a whole new rabbit hole.
Exactly. And, and also then you have, you know, the API of a Gen. server. I mean, I, I've written plenty of Gen. servers now, so I know how to write the start link and in it function, all that kind of stuff. But you know, then you, you go to an agent, you're like, so how do I do an like a, a put or get an update an agent again? And unfortunately with me, I, I use that and the, the code completion isn't that great. The LSP like it doesn't work all the time. So I need to go somewhere to look it up. And then I usually go to run Elixir because I have everything compressed into, you know, short
code, code snippets. So also for me it's just a look up thing. I'm basically. I've been trying, I've been trying to use Zed. I don't know if it's won me over yet 'cause yeah, I feel like the language server crashes every every time I open it. Yeah, it's, but VS Code was much better for me so. That's I, yeah. Same boat. Same boat. I. Know, I know. I like the, I like the UI and like how everything's laid out in Zed, but I'm not sure I like my the like the actual writing code experience.
Yeah, what do you use then? I usually it's like VS coder Zed. I've been jumping between the two and like the reason I tried Zed every, everyone's like, you know what, like hook clawed into it. And I'm also not the biggest fan of using AI to write code. I don't. I can't. I can't adapt, I can't adopt it and I don't, I don't know. How do you feel about it? In Elixia it doesn't really help me to me on this. Maybe it's a problem with Elixia because you know there isn't enough code available for the AI
to to train on. But I've been using it in Rustin and JavaScript lately and it is better in these two languages. Rust. I mean, I like it in Rust because I have no clue how to do anything in Rust. You know, I, I also like what I'm working on is a very light Rust back end. So I don't need to write Rust all the time. But then I just ask it, you know, how do you do X? And then it just generates some code. And because of Rust, like the whole static type system system, you actually know whether it works or not. And that is really useful.
And then I also use it for JavaScript and it is not as useful in JavaScript like in terms of the quality of the code that it generates, but at least it gives me pointers to. Probably because there's too much crappy JavaScript out there. You know, it's like the opposite problem of the Elixir, yeah. That's good, but shitty JavaScript, Yeah. That's funny, I guess. Yeah, I didn't think about that. It would probably be useful to ask questions more than like ask for code. Yeah, I do that. I ask like, how would you do
this? Like I wanna achieve this thing, how would you do it with JavaScript? And then gives me a solution. And that is all right. But what I experienced is that it doesn't always use the latest APIs like the web APIs. It uses, Yeah, technology that is. Well, I mean, you know how JavaScript is like everything older than two years is outdated. Its legacy. Yeah. So and, and you know, the code that it was trained on it, it just doesn't understand is what is the current status? Like what is the current thing
that people use? So yeah, I just use it for that. You know, I just ask, OK, so how would you do X? And then it gives me a solution. And then I kinda just look up the solution that it gave me. Usually it's, you know, like an API or like a a library that it gives me. And then I look it up, that stuff and I see, oh, it's actually outdated or it's replaced by something else. And yeah, so that's like in in Russell was pretty stable and useful. And JavaScript is more like an inspiration thing, you know Elixir, Yeah, Not useful at all unfortunately. I feel like it like with
JavaScript, it's probably a lot like Stack Overflow. If you don't have good code smell, you're gonna you're gonna copy and paste some bad code snippets. That's true. Yeah. I, I still remember the funniest thing that I saw like 10 years ago was somebody writing a script where you, you can just like you can, it was in your terminal or in your, in your editor. And you can enter a question like how do I do X? And it would look for the Stack Overflow solution and just copy paste it into your code just
like like that. So you wouldn't even really know where it comes from. But then you could just like code with code stack Overflow solutions and nothing would fit together. But you know, it just dumped it into your code base and then you have to deal with it. Kind of. That's hilarious. Yeah. Like I also found like with Zedd, like you do, you're like control enter right to prompt to prompt AI. I've noticed that like it will like try to like poorly insert code as well and then you have
like you're always like cleaning it up. And I don't know, I stopped using it 'cause I was like, you just put this in a random ass spot in my, in my, in my module and I have to clean everything up but. Yeah actually like oh if you select only one line and it tries to give you a multi line output then completely breaks. But I I don't know, maybe it's just a bug that they need to fix it. Yeah, maybe. So you always need to select a whole function or at least multiple lines and then it can, you know, insert like multiple line solutions as well. But I don't know actually one,
one other thing that I'm using much more, it's not that much code related, but it's more writing related, which is Curling Curlick, I think it's called KERLIG. And it's a it's a Mac OS app and you can just open it with like a shortcut and whatever you selected gets, you know, pasted into that UI. And I use it always for spell checking and rewriting stuff. Oh, interesting. Yeah, it's, it's created by a, So it's kerlick.com, I guess.
Yeah. Kerlick. KERLIG Not sure. We don't have a Do we have a chat? Yeah. Here we go. I found it OK, interesting. Yeah, this one's super useful. I've been using it for like, I don't know, two years now. And especially if you write blog posts, but also if you write tweets, and especially if you write in languages that are not your mother tongue, then then it's super useful because you, you just write anything.
You select it, then you press you know my case, like I think alt space and then it immediately pops up. It has the text pre populated and you can just with one click like enter, you can say fix this, like fix the the spelling mistakes or improve the writing, but I never really use like proof improve the writing because it's just chat TPT or my case. I use Claude and you know it. It kind of rewrites it all in its own style and I want to keep it in my style. So. But the spell checking is really good.
Do you I always find like I always try to have like Claude, right? My social posts like I'm like, I don't know what to write, but it's always like it always uses words like this insightful conversation and like all these words that you don't actually use in normal in your normal language. Yeah, man, it's just, I, I don't know, maybe that's a way that you can train it on your own style. And I don't know, maybe I could do it because I have a lot of blog posts written, you know, I could just feed all of them into a model and then give me like,
my style back. That would be nice. Yeah, that would be awesome. Yeah, but I I haven't found that. Yet. But then you'll forget how to write cuz you'll just let AI do it. But I would love that. I would love that. Just like this is my thought for a blog post. Just go, you know, write. Yeah, right. Well, actually, like interesting enough, I started messing around with SEM rush, which is like an SEO tool for, and because I've been doing like a lot of like website building and stuff with my, my agency.
And honestly, they have like an AI blog post writing tool. It's, it's quite good. It's pretty amazing. Like I'll go through it and like fix some words that I wouldn't use in the wild. But for the most part, it writes some pretty good blog posts. Now I think like technical blog posts, like if you were writing a code related one, it wouldn't be as good. But like writing things to inform people like what SEO is, why you should care about site performance. It they're it's amazing, OK.
Yeah, I I guess if there are lots, lots of other articles with the same. Yeah, exactly. Like there's so much out there if you're if you're not doing original stuff, it's it's phenomenal. Yeah. But I, I don't know, I I can't read these kind of articles. I, I I. I can't either. No, right. I mean, who would? And it's just what I like about writing them myself is kind of, I get bored of writing and I just want to get it done. So I kind of keep it short, you know, And if you read my blog post, I, I try to keep them
short. So like within, I don't know, 5 to 10 minutes, you actually have read the thing and every single paragraph actually gives you some information. But then I opened like lately I opened up a lot of articles in the first four or five paragraphs such as like, blah, blah, blah. You know, like, oh, This is why SEO is important, because the Internet, it was invented and. You know, like way too much history. Yeah, exactly. My grandma, who was born in that year, you know, she whatever. And then you're like, just give me, you know the gist. Yeah, that's funny.
You don't want to read the a 30 minute section of history of keyword search and ranking and why SEO is important. Yeah, no, please. Yeah, I don't know. But yeah, I mean, now that we've been talking about like education and then creating content for that, like how's it going with Aleximento? How how you feeling about it? It's good. I mean, people have probably noticed I haven't done any content this week. I, I feel like I, I kind of have my like roller coasters where I
just kind of get burned out or I put my head down. Like I've been building like a website hosting platform for HGA and it's amazing. Like I already have, I probably have like 5 websites hosted on it. And so I've been concentrating on that. And like, sometimes when I'm like heads, like head down in a project, it's hard to focus on other things, Yeah. But what was it you said, HGA? Yeah, Hired Gun Apps is my dev
shop. Yeah. Oh, I see. Yeah. Yeah, yeah. Apps and and you have a hosting platform for that if you build it. Yeah, so I built a hosting platform using Phoenix. And so basically I just have, you know, a Digital Ocean droplet. And then I have nginx coming in routing doing you know the certbot SSL certs and then I use plug to route to whatever directory is being hosted. Oh OK, so that's your client projects that you host on your
own server. Yeah, exactly. Yeah. That's smart. Yeah, actually that's a good idea because I I have the project a problem that I have a bunch of small projects and every time I create a new project, I have to go to fly. I have to run fly, launch, I have to give the database. It's like I have to set up SSL. It's like just, you know, I wish I had what you have just like drag and drop a folder somewhere. And well, it's yeah, like, I was like, so annoyed. I'm like, dude, I hate that most of my income is building websites. And then I was like, you know what?
I would save so much time if it was faster to deploy websites. And so yeah, now I just have like skeleton projects and I just drag them in and create an organization. And that's multi tenant too. So everyone can have their A blog, everyone can have podcasts, whatever they want. So it works pretty good, yeah. Nice. And that's all built with Alexia. Yeah. Cool, also your client projects, are they built with Alexia too? Unless they like have very strong reasons not to, I always try to push at least the back
end tech to be elixir. Yeah, OK. Yeah. Makes you more efficient as well. Exactly. Well like I don't I honestly I would struggle really hard if I had to like like create a new like node JSAPI project. It would be hard. Yeah, you can't really build a client either, right? Because they're like, it's just, you know, it's just the back end. Why does it take so long? Yeah, exactly. Yeah, interesting. Yeah. But but I mean, aren't you afraid that if you droplet, you
know, just goes and then all your client projects are offline, but you have some redundancy? That could be a problem. Right. Well, like I I've actually. So what's funny is I actually have to fix this. But right now for like local host testing and my staging environment, I don't like create certs and SSL things for everything. So I had to change. I have a like a a request header that I changed that goes in and routes to the proper
organization. And I'll forget that I have it on and I would like go to a real website that's supposed to be live and it, it'll, I'll get like an internal error and like, I panic for a, for a short period of time. I was like, wait a second, shouldn't my pulse script catch this? And like, I'll panic and I'm like, Oh my gosh, my whole server's down. And I'm like, are you kidding me? I have my my override turned on. Oh, so it's only for you, Luckily. Then yeah, yeah, yeah, it's only for my browser and I'll forget I have it on.
And I keep telling myself I need to like go have like a flag activated that tells me it's on. So if I'm testing other domains, I know that my request header's turned on. Yeah, that's true. I, I for a while when when I still used Google Chrome, I had two different profiles there. So I had like a local host profile and a production profile and the the local host or the production was actually bright red. Like I had a different theme. So I, I always knew. Well, after a while you actually kind of get used to it so you don't see it as much anymore,
but still like you have a bright red theme. So actually now, OK, like now I'm connected to whatever like production server or something, you know? Yeah. Maybe that helps there as well. That would be a good idea, actually. But yeah, but yeah, I need to, for the most part, I shouldn't be able to break it because I always, I always, I have a staging environment that I put everything into and then everything gets moved into production. So as long as I don't push directly to production, yeah I
should be safe. But sometimes sometimes I push to production cuz I'm impatient but. Yeah, yeah. Yeah. Well you always it's a trade off like you get faster in certain ways, but then you might be slowed down by a complete crash of your production server. Right. And then hopefully it's at like 2:00 AM and no one notices. Well, and if somebody notice, you will then hopefully also get notified about it. Yeah, yeah, exactly. Well, I have like, I have a lot of like pulse scripts and like
automated Cron tasks and stuff that if things aren't working right, I get messages and discords. So that's always helpful. I never use pulse script. What is that? Well, I, I call them pulses like so like I'll have like an open end point that I'll hit, I'll just hit with like a, a curl, you know, a bash script. And if it doesn't get a 200 then I have it send my discord a
message. I see. OK, so you have like you have some internal checks. Yeah, connected to that end point. OK. Yeah, exactly. Interesting. That reminds me of something that levels I owed as Peter Levels because yeah, he also doesn't do testing or anything. And he has the same, he has like an internal kind of check, like some validations. And these validations they write an emoji to every website. He he has so on, on all the like Norman list and and actually only norman.com like all these these websites they have
somewhere there's little emoji like an article check emoji or an an alert emoji. And then he uses Pingdom, I think like one of these services that go to your website every couple of seconds or every minute, check whether they're on, whether they're available. And you can also use like light scraping with those. So you can say, well, go to the website and check whether there's an emoji, you know, like a thumbs up emoji or something. And if that script doesn't find that particular emoji, then he gets notified with a push notification. So he actually exposes on the
website, he exposes like a status check, like a status. And then he uses Pingdem or something to look for that emoji. Yeah, yeah, that's not bad. Yeah, that's not a bad idea because yeah, like your back end could be up right and you could have a front end problem. And then true, the web scraping is kind of a that's a good idea, Yeah. Now I'm gonna have to start putting emojis on all my landing pages I create. Yeah, just in the footer or something. Yeah, you. Know that's true.
That's funny. I don't know, I like Sentry for that to be honest and I'm happy to pay for that, but depends on the traffic that you have. Yeah, yeah, yeah. I think I'm OK with buying tools when I need them, but I try to not prematurely pay for tooling. Makes sense. Yeah, I just got Sentry out-of-the-box with Fly for a year it was. Like, no, it's worth, yeah. I haven't reached that point yet where I actually have to start paying for it. Yeah, that's good. I'll have to check it out. Maybe it's worth, maybe it's
worth checking out. Yeah, Yeah. But. Otherwise, that's the error tracker thing at the library as well the Elixir library. Yeah, I forgot about that one. What is it called? I remember I probably could find it. Error Trekker Elixir. Yeah. Elixir error Trekker, Yeah. It helps to put elixir in my searcher. You never find it. Exactly. Yeah, yeah, I think they also
recently added persistence, but I might be wrong. Yeah, that's right. Yeah, this is really cool. I actually I have it start and I meant to check it out and I forgot about it. Yeah. So if you want to have, you know, the solution that doesn't cost you anything. Yeah. And they do have persistence, I believe with Postgres, because that's the other thing, you know, like what happens if you have an exception then your server just dies. I mean then. Exactly, you can't. Even see these kind of things anymore?
Yeah, yeah. Nice. All right, cool. I'm gonna keep that tab open. It'll it'll it'll live in my 50 tab browser. 500. Yeah, exactly. Oh man, that's funny. So with Run Elixir, let's see, we have a, we have a question from believer, he says. Does Run Elixir have examples showing object oriented equivalents like Jose presented at one of the conferences? He means the the patterns, the Gang of Four patterns. Oh, yeah, yeah, yeah, That was,
that's a good, that was like such a good chat. Yeah, yeah, Actually, The funny thing is I also tried to map the Gang of Four patterns to Alexia, like in a blog post a year or two ago. And then I, it felt so forced that I realized, no, actually, you shouldn't apply these patterns. Yeah, Yeah. And then Yusei made his his speech as his talk. And I realized, yeah, it, it doesn't work at all. But Yusei made it so much more interesting here. Yeah, the way he explained how that's already kind of there for
Elixir or like how to use, how to architect a current Erlang or BEAM VM project. You know, I thought it was really good because yeah, you can't. You can't really apply like many design patterns to Elixir. Now what I found most, sorry, but the question was like, do we have any, you know, equivalent sections? I, I don't, I really focus on Alexia and just want to show what Alexia can do and how it does things. So maybe it will be good to have a section in the future which
says, hey, if you come from OOP, you know, these things might be different to you, might be interesting because yeah, it's a different thinking. You know, when people from OOP come, they, they think about classes and objects and everything. Yeah, OK, how do I instantiate this struct now? And you're like, well, it's not an object like it's, it's gonna go away as soon as you change something. So maybe that would be good to have that kind of section, but I don't focus on on that particularly. Like I would say that was like my hardest concept to wrap my head around was just like, how,
how do you create structs? Like, how do I do all this? And I was so confused for the longest time. And like, for a while I was like, I thought the only way to do it was like having ectoschemas and things like that. And I like, it took me a long time to wrap my head around how structs work. And yeah, yeah. That's true. That would actually make. I should make a video on that now that I'm thinking about it because yeah, it was such a hard learning curve for me to understand how structs work. And, and The funny thing is it goes both ways because now I'm
writing JavaScript and I use quite a bit of objects there. That's like Singleton classes. And, and for me it was so unnatural to just say, like, you know, my object dot field equals the value and then that is how you possess something in the object. That's how you change the object. And I'm like, don't I have to take the return value and, you know, pass it on like, no, no, it's actually changed. So yeah, I, I guess that that's the other thing. But for me, So what I liked about you is this talk in particular is that he split these three properties that you have an OOP, which is like
behavior state. And then you have, I'm not sure what he called it. I think he called it an identity or like a version. So you, you have like whenever you have an object, you instantiate an object. And then whenever you change something, the object actually stays the same, like it keeps the same identity, right? It's mutable. So if it has an ID of one, it will always be the object ID one. And then it has different versions of that over time. And the other thing is behavior, which is like the object has a functions for its own state or like it has behavior like
functions and then it has state which is fields basically. And that's an over P And then he said, well, in Elixir and functional programming, these three things, they are split. So you have functions which are pure functions. They live by themselves. You can pass them wrong. You can pass them around. They're not connected to any state. You can, you know, pass on anything. They're not connected to any classes either. I mean, modules, they seem a lot like classes, but they're just collections of functions basically. So, so that's what I found interesting, like with the behaviour that that's different
and then you got the state and yeah, that is also not part of an object anymore. It's part of a struct, but that's struct or something, you know, that changes every single time you change it. So it, it doesn't stay, it, it isn't the same object that you're passing around. And then you also don't have that, that versioning, so to say that identity thing, because every time you change something, actually you, you create a new copy of it, you know, because it's immutable stuff. Sorry sorry, I got distracted with my my camera being slightly out of focus.
You know that they have a thing called out of focus. You know, like. I used to use it and it would always go out of focus when I started recording, so I manually I could try it again because it seems to work pretty well for you. Yeah, I have an eye track, I think. So it's actually like spot on. Nice. I probably do too. I don't know. Yeah, yeah. But like going back to that, because that's what I found the most interesting thing because you in OP, you have these things all together in one object. So like behavior state and that
entity. And because that is because you have this trifecta, that is the issue that you also have at the same time. Because like you can change your own state using a function or behavior and it stays the same object, but then some other like other function might also change your state. So you have no clear division between these things. And that's also why you need these patterns, you know, just to kind of control the chaos of all the ways that you can actually change state.
And then in, in functional programming, because you, you have all these kind of things separated, you don't face the same problems as you do in OOP. And yeah, that way you don't need these patterns either. And they really don't make sense. Like if you ever try to apply like a strategy pattern, you're like, yeah, it's just, why would I create like 5 functions? Well, actually I can like create 5 functions that every function adds something to it. Well, you know, great stuff. It's just five functions in a pipe. Right, you're just transforming, and that's not like that's actually how you should be
writing your code anyways. Exactly. Yeah, yeah, Just make it, you know, composable inside, I mean, and you're just like, OK, this is like in Elixir, it just looks like normal code. It's not something special. But then another language is actually, oh, it's a strategy pattern, you know. We gotta just give it a name, you know? Yeah, Yeah, yeah, yeah. So yeah, that that was a good talk. Yeah, that's funny. I I just, yeah, I think Elixir would be like a functional language in general, or immutable language would be better for beginners to learn on
because it prevents you from writing just nasty bloated functions that do way more than they should. Yeah, true. Because I feel like, like when I first started learning like Test Driven Development in JavaScript, that was the first time I realized how to start writing cleaner code. And but then like in Elixir, I feel like you don't, you don't have to think that you're already writing clean code because you're, you're breaking things down into like transformations, right?
Yeah, well, you know, whatever your definition of clean code is, I mean, there there's some books written about that that people disagree with. That's true. We could argue about it for sure, yeah. No. But what what I like about function programming is that you just you don't fall into the same problems, into the same pitfalls as you do with OOP. And when you start writing for example OOP, you might not be aware of these problems, but you actually run into them and then they huge headache. So like shared state, right?
If you have an object, like a global object and multiple processes can actually access it, yeah, like it's, it's just a, you will, you will just run into problems there. And then in functional programming, it's just like, yeah, everything you receive in your function, that's what you have, you know, and no other function will change that state that you received as an argument. And if you want to change something globally, yeah, you really need to put an effort, you know, to to actually change that thing. Like you need to have a gem server that has a state or an H and that has state and then you need to call that thing. But you understand well in in a
Genserver, you understand that every call is like a method message or like a yeah, like a message and they are sequentially processed. So you actually understand. OK, well, you know, if I want to change this global thing, all these different calls, they're actually sequentially processed. So yes, you have kind of like the same things as an OOP, like this global state for example. But it's so much harder to get it wrong, you know, with a Gen. server. You're way less likely to run into like your race condition bugs and things like that, right exactly cuz.
Yeah. And if you do, it's so much easier to reason about because you're like, OK, these are the messages I received this. These were the states on every single step. Yeah, you know, yeah, at least it's. Happening. It's happening in one place exactly instead of instead of some global object or service that you have that can be accessed from 20 different spots in your code base. Exactly. And and every single message you can. Yeah, it's a callback. So in every callback you can just have a logger or something. And then you see every single message you receive, what it does and how it changes the state.
And I mean, yeah, with the with an object and OOP like, yeah, you can, you can just assign a value to that field. But unless you actually observe that field, you will never know in which order and from where that field was changed. Yeah, right. That like I know I just recently talked about this with another guest. I think it was, it might have been Levi, but I inherited a code base. I was just doing iOS development at the time and it was, it was a music streaming platform and we had this crazy code that or this crazy bug that was so hard to
track down and figure out what was happening. Like we couldn't figure it out. The state was just randomly changing. And I ended up finding out there's, there's a, a, a Singleton. And I put that in quotes because it wasn't actually, there was like a weird bug in one of the Swift updates. So the Singleton wasn't actually a Singleton. So we had like 1000 instances being created of this Singleton and randomly different different singletons were being accessed
and we couldn't figure out what was going on until I found out we had 1000 occurrences of our Singleton. Jeez, yeah, but how would you find out, right? Yeah, like tons of login it was Oh and we, we had a memory leak obviously because so like over time, if you ran it long enough, you would you would crash the app but. Yeah, true. It was such a nightmare. And that's what I meant with like in functional programming on a Lexia especially, like it's so much harder to shoot yourself on the foot. Yeah, if you want to create a
single tone, like, OK, you create a Genserver and you give it the name of the module. Yeah, exactly. Let's say you register the Genserver and you can't register a second Genserver with the same name. It's just not possible. So I should I think. At least you can't. In the same supervisor at least, yeah. Well like you can't have two Gen. servers with the same name cuz like if you made dynamic ones you'd have to pass in some identifier with it right? Right. Yeah, yeah. But yeah, so there you go. Like if you wanna have a true
Singleton then you just have the name as you register with the name and that's it. In fact, all the bugs and headaches I've ever had in the past coming from object oriented, I don't think I've ever had an Elixir. Yeah, yeah. That's kind of nice. It, it is good. Yeah. I mean, I, I don't know. I mean, it's, you know, I, I kind of took a step back from the whole, well, Elixir is the best language in the world. And I, I mean, I personally think it is the greatest language I've ever worked with. But also, frankly, I haven't worked with that many languages.
But whenever I go to another language, I'm like, man, I missed this thing from Alexia. And but The thing is like I try to kinda like also look at other languages and see what they are doing better. And it might not be the language design, but it might also be the community or the libraries they have or the support they have of like big companies or platforms or whatever. So if you wanna use, I don't know, Lambda functions like, yeah, JavaScript all the way. You can have a node dot JS back end and that perfectly integrates with your Lambda function.
Yeah. So if you wanna work with that, node dot JS would be the best option, right? So I'm like, it depends on you. Just got the right tools for the job, right? You can't. I love Elixir, I wanna continue almost only using it right, But I'm also not going to say it's for every single project. No, exactly. Yeah, yeah. But I'm just kind of thinking, what can we learn as a community, as a language from other? Languages and other communities as well.
And like, if you would ask me two years ago, like I would have said, no, Elixir is the best language in the world, you know? And yeah, yeah, yeah. Still like I'm not very far away from the thinking. But now I kind of look at it, I tried to look at it from a more a humble way and say, well, yeah, there are other languages which are really, really great too, you know? I mean, I used to. I used to feel that way about Swift, right when I was just an iOS dev. I thought that was the best thing in the world, and I actually thought Xcode was the best IDE to write code in. Oh wow. Yeah, look how that changed. Oh my gosh, Xcode is the most
but it does still have really nice tools for like the iOS development right? Like they have great like login tools and testing things. Like there's a lot of things that I miss, but not enough that I want to go be a full time iOS dev. Yeah, yeah, I understand that. How do you feel about life? You're native, by the way. I mean, it looks amazing. I had Brian on a couple months ago. It looks awesome. Like I need to go and play with it and mess around and really
get my hands dirty. But I'm it's a pretty exciting project in my opinion. Do. You think that might be something you could use for client projects too? Oh, 100%, yeah. Yeah. OK. Because we always try to push. We'll we'll always push, you know, some, some native, you know, some multi code based tool if people are making mobile apps that don't need the latest and greatest features on an iPhone or an Android phone, you know,
yeah. It's literally just an app where you can like press a button and you book something. Yeah, exactly. Like so yeah, if I had a client right now where they wanted a mobile app, I'd probably be neck deep in live view native for sure. That's good to know. Yeah. And also the what I understand is you can also extend it to your website. Like you have a website and then you also have a live native version of your website and you can even share the styles and everything right and the same. I believe so, yeah. Yeah.
Yeah, whatever you can. I'm a big believer if you can share code base amongst projects, as long as it works well, definitely do it. Yeah, true. Because you don't want to maintain like I remember, like when I was writing, you know, Node JS and Express backends, you'd have a different code base for every front end. And then you need a developer that knows how to write Angular, iOS, Android. And you have all these apps.
And like, I remember the very first startup I was a part of, we had, you know, like a an Apple TV app, we had an iPhone app, we had a Mac App, a Windows app, like. Wow, it's hard. All different code bases. It's so hard to maintain that. Yeah, yeah. And also I mean OK, Apple Mac OS, I mean still you have the same language, so you could have like. A Yeah. So those are the same language, but there's still enough differences that you kind of end up having different code bases for each interface.
You know, like you can share your services and like a lot of the heavy lifting, but UI is all different. Yeah, true, Yeah. Maybe that's different now, like it's been a few years since I've written up a map. I mean from life you native, live you native seems to be working on what is it iOS, iPads, even the glass So watch OS? No, it's not. Watch S. The Arkansas. Yeah, the ER. What is a? Yeah. I don't remember what it was
called, Yeah. But yeah, I mean, it looks really awesome. It looks, yeah. Yeah, yeah, I'm so I do my live stream streaming too, right? I mean, not this week because I've been sick, but I'm also thinking about the next project that I want to work on. And I have two projects and maybe you can, you can tell me what I should be working on because my first project is I want to, I want to check live you're native as well. Maybe build a little app with that, like a habit tracker. Actually, I wanted to have a habit tracker for my, for my
phone where I can just say, you know, today I ran today I went to the gym today I ate junk food. And then I want to have a nice calendar view where you see little colored dots in the calendar view where you actually, you see in the dots where you've done stuff. And I, I couldn't, couldn't find that UI anywhere. And also, you know, I don't want to have like a subscription thing, just like plain easy habit a trick, I think. So there will be there will be project a for the live stream, just, you know, like set up a live your native app, try to get it on the on the iPhone, maybe eventually publish it on the on
the App Store. And the second thing is, and, and I've been getting quite excited about that lately because I always wanted to get into nerves more into embedded coding with Alexia. And the other day I saw this video about the sale drone and it's a, an autonomous, a sailing drone basically. And it's just like a little ship and it can sail through the oceans. It does like ground research. So like you can scan the ocean bottom and everything. They recently sent it into
Hurricane Milton. So you actually had like live data or live view inside the hurricane on the? Water. Yeah, and there was such an amazing video because it's like you're literally there. You see the video and it's kind of like, man, there is huge waves and there's like 160 mph winds. You know, it's like, and then you have those little drone inside that hurricane. That's wild. It it is so So then I thought, how could I build a little drone like a sailing, what let's call a drone, but like a sailing boat
that you can remotely control with Alexia? Would that be possible, you know? That would be cool. That would be cool project, right? Yeah. Yeah, yeah. And it would also give me the reason to buy 3D printer to print the boat so. That's a good point. Like Oh no, you got to buy more gear. I do. I mean, I haven't. I've I've always been on the I've always wanted an excuse to buy a 3D printer. There you go. Yeah. So maybe you should find a project. Well, you know, embedded hardware stuff would be really
cool because that like 10 years ago that was like I did like manufacturing automation. So it would be, it'd be a lot of fun to get my hands on some hardware again. Yeah. Well, it would be fun to build. Like when I was a kid, I remember with my dad, we we built a remote control airplane. That's awesome. And with batteries and electric stuff now, it'd be pretty cool to build a battery version of a remote control airplane.
Yeah, that would be cool. And actually just this morning I was looking up how to, you know, what kind of batteries would you need for such a boat? I mean, similar with the with the airplane, you would need to see, well, how much energy do I need, you know, and how big do my batteries need to be? And then can I maybe have like a little solar panel that also charges my battery while the airplane flies, for example, you know, like the and, and I was, so I have no understanding of embedded stuff at all. Like I, I work with a little small project. I had like a little flag that I could turn with a little motor, you know, cool, cool, like fun
stuff, but nothing serious. And, and, but I always want to get into it because I love the the haptics of it that you just have something to touch. Like you build something and then with software you bring it to life kinda, you know it. Would be, it'd be cool. It'd be cool. Then I think you got. I think you have to. Yeah, I think, I think I have to get the 3D printer. Yeah, you definitely have to do that. Yeah, let's see, my girlfriend is excited too. I just have to convince her that I need a couple of €100 for 3D
printer. Yeah, yeah. I haven't even looked into 3D printing for a couple of years. Is pricing down on them? Are they more affordable these days? Yeah you can get something for like 200 bucks if you want. That's not bad. Yeah. But then it's really entry, entry level. Yeah, Yeah. I mean, I've been looking at like something that is a bit more premium and they started like 5-6 hundred bucks. OK, I mean, even that's not bad. No, I mean they used to be like 2 1/2 thousand yeah, 3000 for the basic entry models too. So so yeah, I mean 5-6 hundred EUR and then you have a pretty
good premium on a premium. But like you know, middle market 3D printer. Yeah, I've been looking at the at the Bamboo P1D or P1 S one of them and they have like 2 versions and I'm not sure which one I should get but I wanna have one that has a big bad like a bad size where you can actually build bigger things with. It. Yeah, yeah, yeah. But. Well, you gotta be able to build a sailboat, so. Right. Like it needs to be big, yeah. Is it like with these?
Do you already have to be kind of like a knowledgeable and 3D drawings and things or no? Clue, but I don't think it will be that hard, right? I mean, you can just design it that's. True. Yeah, I don't think it's gonna be that hard. Yeah, but. Yeah, the goat of entry level 3D printers. Bamboo Lab A1, $200. Yeah, that one. And then I was looking at the P1D and it's like $600.00 or 600 years.
P1 S $600.00 Yeah, cool all. Right. So I thought OK, like it's not nothing but like it will also last and hopefully I will use it for more than two or three things. Dude I feel like I would go down such rabbit holes if I had a 3D printer. Yeah. It would be fun though. Yeah, I have all these things where I'm thinking like I would just like to have a custom rec for my audio interface here for my amplifier. I would like to have something that is little raised and then it should have a little holder
for these things. So I might actually do that. So yeah, yeah, let's see. I feel like you have to. Yeah, everything's the lining. Because the fun thing is when I was, when I was a kid and I went to elementary school, we had these, they called them free homeworks. So you could do whatever you wanted and but it just needed to be somewhat creative or interesting, you know, but you could just freely choose whatever you wanted to do. And my dad, he had a pretty cool, like a garage where we could do some woodworking and everything.
So I was always building little model ships out of wood basically when I was like 6-7, eight years old. And you know, they were actually like, they were always like rectangular and everything, but they had little sails and a little rudder and like, what do you call them? Like the railing on the side so that you don't fall over. Yeah, railing. We'll call it a railing. I think there's a there's a boat term for it, but I can't remember off the top of my. Head yeah and I, I always build these things back in the day and I, I, I miss that so maybe if I
get a 3D printer I can relive those childhood. Dreams, yeah. Bring your childhood back, you know, Right, dude, if I imagine being kids with a 3D printer like that would have been awesome, right. Because I remember yeah, I would always like shape things out of like foam blocks and stuff and like make like aerodynamic things. And I remember I had a really cool like technology class in middle school and we had like a wind tunnel and so you could do air dragon stuff on like little
objects that. And so yeah, I would be like shaving it and trying to make it like something more aerodynamic. I don't like, maybe it was like a like a Pinewood Derby car or something like that. And it was fun, yeah. That's cool. And then you see. Did you also have these visualizations then with like the green and red and? Yeah, yeah. Like, yeah, we would have our computer with the with the analysis and you could see where you know, the the air friction or resistance was and it was really cool, yeah. That's awesome. That's that's a really premium
thing to have. I know I remember the. The funniest thing I saw for that is I think somebody compared one of the like fancy cars. I'm not sure whether it was a Tesla or cyber truck or something. It was like a a car like that that was kind of over hyped. But yeah. And they put it in the wind tunnel and then they compared that to a cow and they said that the cow is more wind aerodynamic. That's what you call it. The cow was more aerodynamic than this car. That's hilarious. I used to always drive like Jeep
Wranglers. I don't know if you know what those are, but yeah, yeah, yeah. And yeah. The horrible. You're like just, you're just a giant flat surface pushing forward like. Exactly. Oh bad, like maybe you should have a cow instead. Yeah, I start riding. I get a lot better gas mileage riding my cow. That's hilarious. Yeah, yeah. I think like if you could figure out a good way to film, like where you're doing 3D printing and embedded hardware, like if
you're building the component in live streams and coding, I think that would be so cool. Right. I would need to have like a top down camera here so that I can show the things. And yeah, that would be cool. Yeah. And so I have like, you know, one, like I'm thinking if I would do that project, like I have a long term goal. And I think that is, that is something I, I would love to achieve, which is like, I'm living in the Netherlands and I have a friend who lives in Connecticut and I would love to send that boat through the
Atlantic Ocean all the way to Connecticut. And then you know my friend would receive it. That would be wild. Can you imagine like with Alexia? That would be so cool. Yeah, I'm not sure how hot it would be or how easy, but I mean, if you get the fundamentals right and The thing is water tight, yeah, waterproof. Like it shouldn't be too hot, right? Well, yeah, that would be, that would be wild. That'd. Be cool. Yeah, well, let me think about it some more. But that would be a cool project, no? You gotta talk to Brian from Dockyard cuz he's a he's a big
sailor. OK, that's good. Yeah, I know Brian too. Yeah. Yeah. OK. I'm gonna ask him about his opinion on the transatlantic drone sailings. I mean, obviously just go for it. Yeah, don't ask for permission, right? Yeah, hopefully it's not too expensive if it syncs, but. Yeah, no, I think actually these things are pretty, pretty cheap. I mean, OK, the like the printing thing, you know you need to buy the printer, but then you can print as many boats as you want. Yeah. And I feel like the servos and
things like that's, that's relatively cheap, yeah. They're like 10 bucks, you know, But I mean, you wanna have good quality and stuff. But I was thinking the most, the most difficult thing will be the the communication. Like I think I need to have satellite communication because there's no, you know, reception and I don't know, maybe that's some cheaper ones, but I saw one for $300.00 from Iridium. It's like a satellite company. And then you can buy for $300.00 like a little box. Yeah, yeah. And, you know, put it on the on the boat and then you have like a $15.00 a month subscription for them.
OK. But, you know, I don't know, something I need to find something that is something like that. And I that might be the most expensive part, but I think you can get like below $1000. Yeah, yeah. And that would be cool. If it sinks, sure, it's $1000 gone, but still, like, the whole process. Yeah, it'll be really interesting, though. Well, maybe, maybe the viewers should decide, you know, let me know. What do you prefer? Do you wanna see a life? You native that? But do you wanna see a transatlantic drone ship? Well, I think you just obviously have to do both. Yeah, yeah.
Man I have too many projects already so I got a prioritize. Yeah, there you go. Yeah. That's funny, I think like one thing I want to work on which might not be as interesting to my channel but I have realized I suck so much at front end development with like tailwind and CSS stuff. I might start like live streaming me being a better front end dev. Like it might be learning, but it might be interesting too. It might be because I don't know what it is.
My brain does not work for Tailwind and like I get like when I have it when I build it it makes sense to me but like to get it to a pretty state I feel like I spend 10 times more time than most people. Yeah, yeah. I mean, I, I kind of get used to it after a while. You just have your helper classes. You just know by heart. Yeah, yeah, yeah. And also I think the syntax is pretty insightful. Like it's pretty, I say you can just guess what you need.
Like if you want a background, what is BG and then which? Yeah, that's true. OK. And then which shade do you want? So like it's. It's pretty logical. Just a handful of like fundamentals that you have to remember, right? Yeah, true. Yeah, I don't know. I think if you look at Tailwind UI, I'm not sure where they're using Tailwind UI. Yeah, yeah, yeah. Yeah. So if you look at those, if you just go through that, you you actually learn a lot and you know, all these nitty gritty details, like something sometimes you need to have an aspect ratio or you need to have like a, a clicky thingy, like whatever. Like they have all these little
extra use cases there. Like that's, that's interesting. But then you bring up embedded hardware and stuff and like, that's way more my jam. Yeah, that's where you come from too. Yeah, no front end, absolutely. What you could do if you really wanna go hardcore, you could get the Raspberry Pi Pico, and that is a microcontroller, OK. And you can't even use Nurse on it. It's not supported yet, but it supports Atom VM.
And Atom VM is a library that tries to bring Elixir, the beam basically to these microcontrollers that really only have, you know, like was it 2 megabytes of RAM or something? Yeah, OK. Yeah, but you can use like. I know that Atom VM, they support the PICO and that is a very proper microcontroller. Like I don't know, you know, you, you live close to the mountain. So why don't you just set up a little box that takes pictures of the snow or whatever you know, and then it streams it to your server and you you have like a live view or something
of. That, that could be really cool. I like that. Dang it. Now you're gonna have me going down like I'm gonna need a 3D printer. No, you just need a box. You don't need a 3D printer. But if I want to make the box look like a wild animal like. Well, you can paint it. Go to the the elementary school and ask them to, you know, paint. It There we go, painting camera box. Exactly. Oh man. Yeah, but that's the other thing that I that I saw with the the Hurricane Milton, because people
they hung these boxes at trees at very high altitude and they just strapped them around the tree. And then these boxes, they were also live streaming the video to I, I think on satellite. I'm not sure how they stream these kind of things, but that way you can get amazing footage, you know, from these. I mean, it's it's amazing. That's catastrophic, but catastrophic. But it's still so impressive to see this stuff in in action. So I was really thinking I would love to get into that stuff where I can just build these kind of like half autonomous
boxes that film or you know, whatever, record something and that gives you insight into the, you know, stuff like that. Yeah, that would be really cool. So start a little like snow conditions project for because back country skiing, right? Yeah, yeah. Your skier and your mountain biker, so you need the current conditions of your favorite trail. That's true, right? That would be fun actually. I like that. Yeah, it would be good live streaming material too. For sure. Yeah, well, all right, so you do
your trail Cam. I do my trans sailboat drone boat. Dude, I might have to fly to the East Coast for the arrival. Man, that would be, that would be happening, right? Yeah. That would be awesome actually. I love that. Yeah, I might even fly over then. That would be cool. You almost have to. Yeah, You know what you should do is time it for an Elixir conference. That's amazing. Yeah, Isn't there? I mean, they're all in like in Orlando, right? Yeah, if they.
Keep doing, if they keep doing them in Orlando, you could like fly it into like, yeah, NASA or like Miami somewhere over there. And then everyone could just drive like an hour and a half for the Elixir sailboat. Yeah, yeah. That would be cool. Yeah, that would be a good idea. Let's see. Yeah. I I think I have to give this some more thoughts. Yeah. Especially how can I. Because The thing is I have very little time outside of my whole like all these content things that I'm doing. Yeah, yeah. So if I build these kind of
things, it like if I don't create content, my brain is just deapped for programming stuff and everything. So if I build that kind of thing, I kind of need to make a part of this whole thing that I'm doing. So live streaming, for example, Right. And. Then you know. Actually be too. You should start like a GoFundMe for the project and I bet people would contribute. That might be good. Yeah, Yeah, I will think about. I mean it depends on the material cost right below like
1000 bucks. I can spare that in the next months or so because I would only send it. I would probably only send it next summer when the but I don't know like when the weather conditions are good, you know, when the sun is shining for the solar panels, that kind of stuff. It just better be programmed to handle hurricane winds, you know? It better be an amazing sailor, you know? But even that would be a good story. Like we got all the way and then hurricane whatever XY hit, Florida took it out again. It took it out. Yeah, that would be fun. I love that.
Yeah, the Elixir boat. Yeah, let's see. Well, you know, again, the viewers should decide. Let me know what you what you want to see. Yeah. So everyone let Peter know, I think just tell him that he has to do both, you know, really be demanding. Yeah, maybe, yeah. But I, I, I mean, to be honest, the, the life you native thing, I found it super exciting as well because IRS is also I, I love the thing that you can build apps that you can actually touch. Like, I mean, you know, you
press buttons, but it's in your, on your phone, in your pocket. It's softly written. Yeah, that's what I love about IRS as well. Yeah, building an app is different than building like a web application. There's something cool about being able to carry it around. Yeah, yeah, I agree. Well, and that's why like the embedded hardware stuff is cool, like Raspberry Pi projects and you know, well, and also like Dockyard is just doing so many cool things like the Beacon CMS that they just that looks really awesome too. Like so much of this stuff is so
good for the ecosystem. Yeah, yeah. I haven't checked the Beacon CMS yet, but it's pretty cool. It will help everybody to just create a blog, you know. Right. Yeah. I really try pushing people and writing blogs because if you just write it on on Twitter or Medium or somewhere like that or you have your personal newsletter, it's not searchable. Like people won't find it. And even with small blog posts, you might actually help somebody get unstuck very quickly. And I love these kind of blog posts which are just like 2 paragraphs and they're like, I had this problem and I didn't
know that I can use this configuration to solve it. So here it is. And you wouldn't believe, like every week or two I run into an issue like that, and then I find a blog post that exactly explains that kind of stuff. Yeah, yeah. And and then I'm like, thank God that you wrote this blog post. Well, and that's exactly what you want when you have that particular problem. Like you don't like we were saying before, you don't want to read 30 minutes of fluff just to get to the good stuff. Yeah, it's just two paragraphs and that's it, you know? Yeah. So I always, I always run into that with the with what is it called the the the testing flow
key, flow key, right, the testing library where you can, you know, take HTML and then assert against that HTML or. Password. Yeah, yeah. And the problem with flow key is that it encodes the HTML. So if you have like a name, a test name for example, that is like that hasn't what's it called? An apostrophe, like apostrophe, apostrophe. Yeah, thank you. So like apostrophe. Whatever, Like where you have to use escape characters and things? Exactly. Yeah, yeah. So it escapes the characters
when it passes the HTML and you can disable that in that configuration that's. Nice, yeah. Yes. And how often did I run into that issue that I used a faker for creating a fake name? And then obviously sometimes, but only sometimes, it would add an apostrophe and then my my test would fail because, you know, I didn't assert like I just said, if the HTML contains the name, kinda. I didn't realize you could disable that because I think what I would do is I would manipulate my tests, which you shouldn't do because then it's
not, it's not a fully COVID test. Well, what I did and it got really annoying is that so? So for every everything else in the HTML you can just do the regex match right? Like the the equal sign with a tilde and for like any text for example. But then when it came to these particular names, you needed to have a special helper, like a helper function that would actually escape also the name and then then only compare it to the HTML, otherwise it wouldn't match right?
And that was so annoying that only for these particular fields I needed to have a special test function. And then I realized in flow key you can actually disable the encoding and then you don't need that. You can use the the equal sign tilde for everything you know that's for the. Names. Yeah, yeah, yeah. So so there is a blog post out there, I forgot who wrote it, but it's literally 2 paragraphs. Just this one line in the configuration that you can disable it and also the the configuration at least at that point wasn't documented in the flow key library. I tried to look for it, it's literally somewhere in the code hidden and and that person, you know, they actually looked into
that code and realized, oh, I can actually disable this thing. So that was super. That was probably the most useful blog post I've ever read. So see guys blog posts, they don't even have to be a chore. Just do micro blog posts about like one thing that I I like that idea actually, that's good. I have to be bad. I hate writing blog posts. I don't know. Some people I, I don't know, I, I, I mean, I hated writing and then I wrote a book and I still hate writing afterwards, but I kind of forced myself to. Just write them. More and after a while it just
gets you get used to it. You know, once you find like your style, it's just OK. You just put down the words and then you, you know what I use like Kerlick? You just fix all the box, fix all the spelling mistakes and that's it. You know, I, I barely read my blog posts after I've read them after. I've written them. So just like push. That yeah I'll have to check out curling cuz I usually I use like Grammarly a lot but I'll have to check this out. Yeah, yeah, I used Grammarly before as well. But this thing you can just use everywhere, right?
You just like select some text and you you create this, you hit the shortcut and it gives you some suggestions. That's nice. I'll check it out for sure. Yeah, The thing I don't like about Grammarly is, and I know this is probably like a feature that people like, but the damn extensions for everything. But then like if you add it to like iMessage, it like pops up on your computer like in the way of like, and you'll always be dragging it around trying to get it out of the way. All right, Yeah, it's in the
type box. Right. Yeah, yeah, yeah, yeah. Yeah, man, I hate that. I hate that thing. I mean, I used scrambly before as well. They also have a Visual Studio Code extension. It's not official, but there's an extension for it. And. I eventually all I needed was a spell checker, a purpose with spell checker and now I use kerlick with clod. I used to do ChatGPT but clod is just better and faster. So it does seem it seems better for whatever it generates, like I'll use it a lot for. Just like, you know, I mean, I
always have to change it 'cause I don't like it completely, but I'll always use it to get me started with. Like, you know, when I have my short video clips from like this podcast, I'll always use it to get me started. Like, OK, write me a post. Here's the transcript, Here's the transcript of the video. And then it goes. And then I have to go. For that. Well, I'll use Claude for that, but then I'll go and change words 'cause I don't say insightful and other things like that. Like I don't want to say Peter and I just had the most insightful conversation.
That would be LinkedIn post, yeah. Yeah. Yeah, exactly. Yeah, that's funny. Well, another Elixir based tool for that is called Cast Magic. It's yeah, Yep. It's developed by Justin, who's a fellow Elixir developer. OK nice. I feel like WOWT works for them as well. I could just be making he's the guy the spelt, the spelt live so. I think they, there's some connection. Yeah, yeah, I just know Justin and they're really good at doing
that. Like you just upload, like this live stream, for example. You can upload, they transcribe it for you. And then you, you have some preset prompts that you can run against it and it gives you, you know, like tweet IDs, tweet ideas. It gives you the highlights of the conversation. It gives you like LinkedIn content, it gives you blog post ideas so you can really repurpose like for example, this conversation super quickly into like, you know, all these different content forms. Nice. I'll just check that out. Yeah, yeah, I currently.
I use Opus Opus Pro for creating my shorts, but they pretty much end at creating shorts and posting to socials, right? Yeah, but yeah, I'll to check out cast and what I didn't like. I tried. I tried all of them because I I want to use. Them for my live stream, but then I have like 3 1/2 hours of content like every live stream is like two to three hours yeah. So like the thing the the thing that I didn't like with Opus is that they render the shorts immediately. Like they give you suggestions,
but then they they take really long time to actually render the videos and I'm like, I don't need the videos. I just need a transcript and then maybe some like quotes from the transcript. So that's what Cos magic does. And also to be honest, because Cos magic doesn't yet have like exporting of videos, like they do have that to a certain extent, but you know, it's, it's not perfect yet. So I use D script now, like it's just an editor tool and they you can do the same thing. Like they transcribe this content and then you can just ask the AI like, Hey, give me
the like 10 highlights of the conversation. And then you just go grab the timestamps. You have to like, yeah, like cut it a little bit, but it doesn't take too long. Yeah, OK. I used to manually when I first started. My YouTube channel, I would manually create my shorts and it took me so long to go through like an hour video for, you know, your 60 minutes or 60 seconds or less clips yeah and you need to watch everything again and you. Know so that's what AI is for. I would say just transcribe it and summarize it and export the the highlights there.
Yeah, yeah, yeah. So what? Are what are your plans with like where do you want to take run Elixir? I don't know. Like run Elixir, it seems to be kind of rounded off now, I think at least for the quick start guides, you know, I get a little bit of feedback here and there. So I try to integrate that. But the other thing is I'm, I'm continuing with new topics whenever I counter them. Like, for example, I, I've been working with Rustler and some this and I think, well, it would
be good to have like a little section where you explain how to use Rustler, how to use Ziglar and whatever else it is. So just, you know, to interact with other languages. So like run Elixir. I feel as it is right now, it's kind of like feature complete, at least for the, for the quick start guide. But I'm gonna add over time, I'm gonna add more of the advanced topics to it. But yeah, again, I have like 15,000 different projects going on. So well, and you're gonna, you're, you're gonna be building a sailboat. Soon. So exactly. So now I have to, you know, build a whole boat.
Let's see. But I I tried to add it because. These these blog posts I can. Write them pretty quickly and you know, all of these little sections for Run Elixia, I like that. Like it's kind of turning in. Like if you like, just short little technical topics, right, It'll kind of be like a micro blog post, but more of a guide form. Yeah. Or more catalogued. Yeah, like a catalogue of of little. Well, it's not like a CHEAT SHEET because it's longer than a CHEAT SHEET. Like a little CHEAT SHEET would just be like one function, right? But this is more like a little
look up thing where you just look up how to interact with Rust, for example, using Rustler or how do you use the yeah, persistent term, you know, what are the, the functions you can use and, and all of that. So now. Do you, do you want contributors or how does that work? Like yeah of course. It's a open source on GitHub, so if you have any. Contributions just open APR. There already have been a few smaller fixes. Awesome. That's great. Yeah. But people. Don't really like to write a lot.
Of content and contribute it. I feel like, well, that's the difficulty, right? Yeah, no one wants to except the author. Yeah, well, that's a that's a fallacy of open source where you're like. OK, I'm gonna put it on GitHub and then people will just add things to it. But that almost never happens like that. It's usually, what, one or two people who work on it and then everybody else that chip and Buck reports or maybe like small fixes. Yeah, nobody really takes ownership of it, you know? Yeah, I think it's a fantastic resource.
Especially if you're new, go check it out because you're going to be. I think it's a good reference. It's so easy. I almost think it's it should it's better than like the quick start guides on the official documentation like because it's just like more to the it's exactly what you need to get started instead of all the basics, you know? Well, what I see is like. The, the run Elixir and then the quickstart guide and then the official docs, they all are at different levels of complexity
and detail as well. So you have like run elixir below the quickstart guide. And that's how I wanted to do it. Just like a really low, like I, I really brush over a lot of details there on purpose and just give you, you know, like the, the gist, that's it. And then if you want to learn more about it, well, there's the Elixir quickstart guide. But even there, you know, the quick start guide already, like when you look up any topic, it's, you know what, like super long to read, but it's, it's interesting, it has a lot of details, but it might be overwhelming when you just started with the language, but it might be interesting when you have been working with it for like half a year. So you know, or if you want to
look up like specific things, like why something exactly like it is, well, then you should go to the the quick start guide. And then of course, on top of that is the Elixir docs, which obviously as extensive as the language or almost. And it's good that there are different levels, I think of documentation. So yeah, I wish Run Elixir was a. Thing when I first came up, I feel like if you're a software developer and you just need a really quick way like hit the ground running, yeah, that's what it is and that's what I wanted to do because I'm a
person I learn by. Doing like if I for example, I started writing Rust and I'm like OK, how do I create a function? How do I create a application? How do I expose this, whatever. Like how do I create a variable? How do I assign it and these kind of things. And yeah, like I come to a new language and I just, I want to kind of transfer my knowledge that I have from other languages into that language just to see how do I do X in this language, right? How do I define a function? How do I create a like, whatever, how do I, how do I assign a variable? How do I execute a function? You know, how do I log, for example, in that language?
It's all these kind of basic things that you already know from other languages, but you just need to look them up in the for the new language. Yeah. So that's what I wanted to do with the Runalixia. Yeah, yeah, yeah. It looks awesome. I kinda I've. Only done like a very quick scan of it, but from what I like it looks, it looks good to me. Yeah. Well, let me know whether it's useful or not. You know if you have. Any suggestions for topics that's much appreciated. Like I have a bunch of drafts, but you know, I just, I kind of just work on things that I currently encounter and then I'm like, OK, I have some information about this.
I'm gonna quickly write it down in that what I think it would be hard to like. Scrape my memory banks but it would be really cool to have like a coming. From like you could have. Different coming from sections. So hey, are you coming from like the node JS world or JavaScript? And then you could kind of have like an altered of what you know, of what you already have, but more aimed at a JavaScript dev. And then you could have, you know, a Ruby dev section. And yeah, it could be cool.
It could be cool. The only problem is I don't. I don't have. That experience so I I you gotta tell you you well, you would need you would. Need contributors for that right? Like people that actually experience the transition. True. I mean, that's the book From Ruby to Alexia. So that would be something, but then I would need to read. That thing but. Yeah. I mean, if there are people out there who had that experience or they came from a different language and they struggled with a couple of things in Alexia, let me know and then maybe we can figure something out.
Yeah, that's Steve. I think it's Boosie. I don't know. Yeah, Steve, I'm. He's gonna be on my podcasts the beginning of November, I think, so that'll be fun. I don't have any Ruby experience, so it'll be like, yeah, I'll just be full of dumb questions and it'll be a good chat. Yeah, yeah. I don't know. Are you, do you know any Ruby? Do you? I I used Ruby for like half a year. Because we like we had old Ruby services we needed to replace
with Elixir and no actually we replaced them with new Ruby services. So I work with that for like half a year and afterwards I was like, yeah, I, I kind of don't want to work with it. Like I understand why, it's why people love it. But for me also coming from Alexia with like 2 1/2 years of experience, by then I was like, yeah, no, I, I see why Alexia is as it is and what is better about Alexia and what is also better about Ruby and, and Ruby and Rails. But I, I just don't, it didn't fit with me. Like all the magic functions, all the magic attributes you just get from anywhere, you
don't know where from. So if you know all these kind of things and if you use it in the happy path, so to say, then you're you're great, you're super productive, right. But as soon as something goes wrong, yeah, well, you're kind of you have a problem there, right? Yeah. Like that's what I didn't like about Ruby because, yeah, it's just when you have a controller function, right? And then out of a sudden, you just want to have, I don't know, a certain header or something just to like add and then the variable name and and it just comes out of magic. I don't I don't, you know, it's
just it's just there. You just need. To know it's there. And it's just globally available. Exactly. It's just. Like you have it, so you. You just do add something and then you have it. And I didn't like that thing. And, and what I like about Elixir is like every single function, you know exactly what you're getting because everything you have as an argument is what you actually have, right? And and you can always like IO inspect on the variable and then you see exactly which fields you have available and, and that's about it, right? No magic, nothing. Everything is clean. You know, top to bottom like
it's it's it's you can reason about it easily. Yeah. I, I struggled. I didn't really. Understand like supervisors and like the whole ecosystem or like I should say like project architecture when I first started writing code. And so lots of it stayed magical to me. But as you start doing more difficult things, like I feel like when you write your first Gen. server and you have to start using supervisors, then everything kind of starts clicking and you understand and then you can see like your
supervision tree and all your processes. And yeah, but I think, I mean, although it's called. Erling OTP, like I think there's so much more than OTP to to Erling and Elixir than than just Genservers and supervisors. I mean, that's again, yeah, for sure. Those are just the. That's the. Shiny object that brings everyone to it. Yeah, yeah, yeah. But then nobody uses it in practice. Honestly, that that's true, yeah. I mean, depends on what? You do, but. I mean, for me, I also took really long until I wrote my first Genserver and then it was
more like what, what I liked about it is that you can just move state into it and it, it just, it's there. So I think we had like an like an XMLAPI that we need to interact with and we get the session token. And the session token was only valid for like 10 minutes or something. So I needed to kind of keep the session token in memory and in yeah memory. And then every 9 minutes I needed to renew it so that every API request we are making is actually validated. It is valid. So that thing is, it's super
simple to write with a Gen. server, right? You just like create create the Gen. server it it fetches a. Session and by. Itself every 9 minutes it refreshes the the session token. So that is something super simple to build with Alexia and and and I think like maybe that's. The easiest way. Into genservice and so on. When you just think, OK how? How can I have this long running process that stores some state right? Yep, Yep. Well, and like I do. Similar things with like my Discord events that I publish on Elixir mentor.
I just keep that in state right in a Genserver, and then I just hit the Discord server like every hour, 45 minutes. Like, there's really no need. Like, I'm not updating my events that often, you know? And so then if you have a high traffic day, at least you're not just beating up Discord's API. Yeah, Yeah, exactly. Yeah. Stuff like that. Like Cron. Jobs as you described them, yeah, super easy and what I like about. This part is that. They run as part of your application.
So with you, you can obviously run Cron jobs just with shell scripts like you can use Cron on in your terminal, but then it's like a one off script you're running and there's no state chair between the two runs unless you write them to file or something like that, you know, but, but you can super easily create inside your application a Cron job, you know, you run it every couple of minutes, for example. And the state is available to your whole application, and you can use it. So that's what I like about, like, that's what I like. That's what I like about it,
too. Yeah. Yeah. I've been writing a lot of tasks. Lately, and I never really did that until recently and it so I created like, you know, website templates and then I'm taking like map data structure data and dynamically adding it to my template and generating new websites. And so that was, that was fun part of my little like web hosting project too. Yeah, That's, that's cool too. Yeah, yeah. Yeah, they're, they're, I don't know, it's just you. You need to run into these problems and then you need to
kind of like vaguely understand how you consult them with Genservice and you just need to connect these two and then you're you're fine. Yeah. There you go. I feel like like my. Biggest mind blowing experience was learning how to create dynamic Gen. servers right yeah yeah, that's a whole and then you. Have petition supervisors too. Yeah, yeah, that's a whole new thing, but. Again, like I don't think. Anybody really needs that kind of stuff unless you have the use case for it, right? Yeah, exactly. Like you don't really know you
need it. Till you start digging for it when you like have a yeah, going to solve, you know, until you have the problem right and you're like, oh. So yeah, I want to spin up these web scrapers dynamically. You know, I wanna scrape like 10 websites at a time, but it might drop down to like 5 websites at a time. And well, yeah, then you're talking about the dynamic supervisor, you know, just use that thing, spin up your web scrapers and you're good. Like, yeah, there you go. So yeah, once you have the problem for it then. There's a solution. That you can use. So yeah, yeah, yeah. I love that.
Yeah. Like. So like my web hosting platform, I have my supervisor or I should say I have multiple dynamic supervisors, one that handles like podcast RSS feeds. So every organization on my server, if they have a podcast, they get their own dynamic server that fetches their podcast episodes from, you know, an RSS feed and like, same with, you know, Discord events, not really blog posts cuz that's just database data.
But whatever you're doing, it kind of allows you to just create your process just for an individual organization, which is nice, right? Yeah, that's pretty cool. Yeah. Yeah, especially if you need to fetch date from somewhere, keep it in memory and kind of cache it, right? For the outside world, that's something super simple. Yeah, well, this was awesome. I thank you everyone go check out Ron elixir support Peter. He has so much awesome content out there and his live streams
are very technical and you'll learn a lot. I like to jump on and what what was the you just made a like a twitch clone, right Yeah, there was AI think last. Week, yeah, last week Friday, we we kind of finished it like we, so we had two projects of one of them was the blue sky sentiment analysis pipeline where we like connected to the blue sky Firehose API and got all their tweets that post basically. And then we used the bird machine learning model to do
some sentiment analysis. So we could say it's like a negative tweet or it's a positive tweet on every single one. And then we stored that in with time scale DB and and visualized it, you know, on the website. That's awesome. Yeah, there was the first one and. Then we started with the second one, the Twitch. Clone and we used boombox for that, which is built on membrane. That was pretty cool. Like we, we played around with boombox a little bit. You know, I also actually like contributed a little bit like I, I asked questions and raised some things that I ran into with the membrane team and they were super, super helpful with that. Nice.
And but we kind of, we kind of got stuck there. Last week. So I'm thinking let's just move on to the next project and whatever the next project will be. We don't, we don't know yet. 3D printing and building. 3D printing. Exactly either the. Alexia Boat or It's gonna be life. You native. Yeah, Awesome. Well, thank you so much man. It's always good to have you on so reach out anytime and thank you everyone that tuned in. Hope you guys have a good weekend and I'll see you guys in the next live stream and follow Peter. His details are in the
description below. Thank you everybody. I hope you have a good time. See you guys. 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...