In this episode of the Elixir Mentor Podcast, your go-to source for All Things Elixir, I welcome Steve Bussey, author of "Real-Time Phoenix" and "From Ruby to Elixir." We'll discuss Steve's journey transitioning from Ruby to Elixir, discussing key differences between the languages and Elixir's unique strengths in building scalable, real-time applications. Steve shares insights from his experience as a software engineer and entrepreneur, including lessons learned while building SUPERED. Whether you're a Ruby developer considering Elixir or an Elixir enthusiast seeking advanced techniques, this episode offers valuable advice for your programming journey. #ElixirLang #RubyToElixir #WebDevelopment Connect with Steve: X: https://x.com/YOOOODAAAA Website: https://stephenbussey.com/ SUPERED: https://www.supered.io/ SUPPORT ELIXIR MENTOR ππ My website: https://elixirmentor.com/ ππCheck out my podcast: https://www.hiredgunapps.com/podcast ππNEED HELP?? Join the Discord Server: https://discord.gg/HcnjPsWATg ππAll my Links: https://linktr.ee/jacob_luetzow
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. Hey, what's up? I'm Jacob Witso, 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 in library shaping Elixir's future. Today, I'm thrilled to welcome Steve Bussey, author of Real Time Phoenix and from Ruby to Elixir, who's here to share his experience building with Elixir. Welcome to the show, Steve. It's awesome having you here. Yeah, thank you so much for having me. I'm excited to be here and and talk Elixir with you. Yeah, I think it'll be fun. I kind of want to just kind of hit things off with where you started, what kind of led you
into software development and what began that journey? Yeah, so I'm, I'm fortunate that I think I, I think I started like enjoying programming in like 7th or 8th grade, which was like at the time, one of the really popular things was like, like online text based Mmos type things like not like not like Muds, but sort of like the like Muds in the browser, I guess maybe. And I, I was fortunate like I just enjoyed playing them and stuff.
And then like over time that that community was very open with the idea of like, oh, here's the source code of this game. Or like people in the community like, oh, you want to like know how to program? Like, like, let me like, let's help with that. Or like, Hey, try building this thing. Even though I had no idea what was going on, but it like, it really like made me interested in programming And the idea of like making the computer do something was really interesting to me and like the puzzle solving aspect of it. And like through like high school, I kept programming and
like getting better at programming and like actually knowing what was going on. And then I sort of accidentally went to school for, for programming like I didn't intend to. And I, I, it's, it was like my second choice, I guess. And I ended up doing that and I just felt like very fortunate 'cause I actually like, really love programming and, and I love, like working on it all day. And, and that's what, that's what I've been doing since I graduated. Just like writing code and and working on startups and you know different phases of the startup journey. That's awesome. I feel like I It's funny, I
tried to like programming when I was young and in college and I hated my programming classes. I just like. Most people do, yeah. I wouldn't. Click. I couldn't figure it out, and I ended up doing civil engineering and I was like, all right, well, I'm good at math. I'll just do something that doesn't involve programming. That's what I wanted to go to school for civil engineering and I was like, I wanted to go to the Coast Guard Academy, which has like a really low acceptance rate. And I was like, and I have like good grades and stuff, but like, I didn't have a lot of the other
stuff going for me that you probably needed to get into that like level of, of acceptance rate. And I just like procrastinated and, and I didn't apply to any other schools. And then finally when I didn't get accepted, I was like, oh, I need to apply somewhere else, I guess. And I was like, well, I, the schools I wanted to go to were like, wow, we're filled up a month and a half ago. So I, I end up going like second choice. But I mean, I'm very happy with how it turned out. And I feel, I actually feel like lucky that it happened, but it was like totally accidental. I feel like things usually they work out right if it's not the
way you planned them. I was the same way. I was so lazy with applying to schools. I was like, it's such a pain. So I just like picked the one I wanted to go to. Actually, I think I applied to 2 and I got accepted to both. Luckily because I feel like I was a very average student. I never, I didn't want to overdo because I like to have fun. So I just like maintained my my average. So like, all right, you got into programming. So I'm guessing you did like
like ACS degree, is that what? You, yeah, yeah, just software engineering degree. What kind of now? Before you found Elixir you were in. You were doing Ruby right? Yeah. So I started my first like professional development job with was PHP like the old like you know WordPress, Joomla, like those types of CMS application development. And I first started Ruby in like when I went to my first SAS company. So like, I feel like, I feel
like Ruby wasn't really used like outside of like it wasn't like PHP was what was used in that like like CMS development space. And when I went to the SAS where I was like, I was like curious about Ruby, but I'd never used it. And then that, you know, that that job is where I got started with Ruby. And I was like, oh, I really like this. Like this is like activated a new like level of programming for me. And I would, and I, and I worked there for eight years and, and like it was, it was awesome working at that company. And, and like, that's where I
also got into Elixir and like, but like Ruby, like that's where I started Ruby development. And I, I mean, I still love Ruby. It's like a great language. Yeah, I never, I never learned Ruby, so I don't know much about it. And I like, let's see, like almost 10 years ago, I was just, I've been just in the start up space now for almost 10 years. And so you hear about Ruby on Rails, right? Because, you know, you can develop quickly. You hear about all these Unicorn startups that have used it. And I was always against it
because I was like, I don't like the tightly coupled front end and back end. I thought it was a mistake. And now here I am, you know, loving live view Phoenix and Elixir, you know, and, but my, my, my thoughts around that have changed drastically. I think just with a little more experience under my belt, because like I had Joe Zayon for the 12th birthday of Elixir and he made a good point. He's like, if you're refactoring something that much where
you're, you know, you're worried, you're tightly coupled, you're probably rewriting it in a completely different stack anyways. So it doesn't matter if you know your, your back end and front end are more tightly intertwined. And I kind of agree with that. And I also think there's an aspect of like, as technology has evolved, like if you look at like the idea of, you know, don't intertwine your front end and back end like 10 years ago, like, you know, there's, there's arguments to be made for like why that's OK or not OK. And I think like technology is
not the same like the, the languages like have developed features that didn't exist, exist 10 years ago. And like the capabilities are totally different and I just think that changes the equation a little bit. Yeah, yeah, I agree. When you started working with Ruby, what kind of problems were you solving with it? What were you building? Yeah. So this was at a company called Salesloft. And so we built like sales software, like so software as a
service, you know, multi tenant SAS application. And it was Ruby on Rails back end with an Angular. This is like, you know, 2014 Angular front end. And then we, we evolved to like React over time. Well, React inside of Angular, but the Angular never. It's very hard to get rid of something like that when it's a such a big product. As it became angular gets its claws on. Yeah, yeah, I actually liked Angular. So I'm not I'm not an Angular hater, but like Angular V1 I even like I'm not too familiar
with like the new Angular because I've been on React ever ever since then. I've always been a fan of Angular myself too, because it's just the Angular way, right? You it's not as often as React, you know, you kind of. Know that is true, right or wrong. Yep, Yep, Yep, Yep, and people and yeah, there there were things that I didn't like about it obviously, but it was like actually like building software in it. But yeah, it was Ruby on Rails back in and I mean like, what do I frame it as? Honestly, it's hard to frame it as anything other than like, to me, it's almost just like normal
SAS product, right? Which is like very like request based, very much like, like, like, you know, we did things in the in background in async and whatnot, but a lot of it was like, you know, like request to satisfy, like an incoming request that came in and, and writing records to the database. And like, like, I just feel like it's very like, it wasn't like we were doing anything crazy. It was like very much like standard, like if you looked at it, you'd be like, this is the like Ruby on Rails application way, like very, very, very
standard. And and which was nice to develop in because you again, sort of like you said, like you had like it felt like there was a path laid out, which was good for someone that was like new to Ruby And, and, you know, having that path was actually very helpful for me. Yeah, yeah, I feel that's probably why I don't have a bad taste in my mouth with Angular is because I was very new when I was using it and you kind of like to know you're doing things the right way. Yeah, and same for me. Angular was the first like front end framework I'd I'd used.
So the company you're at ended up adopting Elixir? Or what sparked your interest in learning Elixir? Yeah, so my my Co worker Ben, he he had, I don't know, Hacker news, Reddit, something like that, right. He like, he started singing about elixir and seeing about specifically about the, the real time capabilities and and about Phoenix channels. And we had done a we were doing a little bit of stuff with telephony, like using Twilio and and doing some stuff with that right. But that was like, we, we had some features we wanted to build
that we're going to be real time based on like phone, like people being on the phone and like, you need to react to things that are happening. And he was the first one to be like, Hey, I think we should build this an elixir. And it took a few months to like convince. I'd say it was like, we spent like six months like talking about it. And like, I was like, sort of like the top of the technology team, like figuring out, all right, like what would it look like to adopt this? And like making sure like the CTO was like on board with it. It it helped that we are like, there was already this like
micro service concept, right? So it wasn't like we were, we weren't having to invent like, like there was already something other than the monolith like it. So we weren't having to invent like, oh, let's do this and let's like start doing something off of the monolith. At the same time, we already had that pattern. So it's like, all right, instead of building a micro service in Ruby, let's build a micro service in Elixir. And, and he was the first one to like build that project. And then after that, it was like, all right, yeah, this is something we want to use for the team and my teams and me in particular, I was very
interested in programming in Elixir and my team sort of picked that up as like, hey, the everything like we're going to do is going to be Elixir from now on. So like basically from that point forward, we built like all the like internal frameworks that we used at the company. We built like a lot of the operations tool. Oh, wait one second, I think something you dropped off on my.
See my, my there you are now you're my megabits. OK, cool. Yeah, I'm not sure what happened there. I see my, my, my bit rates back to normal now. Cool. I'll I'll keep an eye on that. I know I now know like what I'm looking at there. So yeah, we just like the team that I was on. We went full into Elixir. We built a lot of the frameworks and the tooling and the operations of it and like guiding it for the company. And our end goal was not ever like, hey, let's replace Ruby because it's just like it was it was like not feasible.
Like this was a we had, you know, 100 plus engineers. We had a SAS application that was six years old like you, just not like a rewrite was not what we were trying to do is more like, hey, let's give people an option that in this micro service world they can pick between Ruby or Elixir. Yeah, Yeah, that's, yeah. I mean changing something like a platform you've been building on for even. It would have been. It's so hard it. Would have been impossible. Like I, I did some, some extractions out of the monolith for like some key features that
were giving us performance problems in the monolith and we're sort of bringing down the rest of the request. And even those like being very careful, focused on a single thing, like it's very easy to introduce bugs or to have some type of issue get involved. And that was from like one feature out of, you know, 200. Like it just would have been, it would have been. I mean, I think it literally would have been impossible to to do that. Yeah, yeah, probably. It's always, it's cool though, when you see like a dev team at an established company pick up
Elixir because I feel like if you can, like if you have a job and you can talk the core team into changing or adopting the technology. No one wants to go back once they start riding Elixir. That is true, yeah. I mean, the, the, the team that I was on, like once we started, people didn't really want to switch back. And and we, I mean we, we liked coding in Elixir. Yeah, that was my problem. I I had a buddy that told me for a couple years to learn Elixir and then when I started on a
like a personal project I was like dude I don't want to write JavaScript ever again. Yep, I feel that that's why I'm, I'm I I I write elixir now, right? It's like I'm and it's interesting as I think about like Ruby, right where I was like, all right, I love writing Ruby code and even even like I, I, I can find the like joy in programming no matter what I'm doing. Like I, I found ways like when I was programming PHP like this is like at the beginning of Laravel. And this was also like, there's some other frameworks and stuff
that I was like, I, I enjoyed coding in it. But Elixir is the first time where I'm like, all right, this, like this has changed the way that I think about programming and the way that I'm like structuring programs and, and I just, and the things I can do in it when I need to do. I'm not that I'm not doing crazy stuff all the time. Actually we have a very boring back end. But when I need to do crazy stuff like I, I can do it and it's just like I just, I just enjoy programming it so much. Well, I think 99% of projects have a boring back end, right?
Hopefully, I mean hopefully right, 'cause it's like, like, I mean, it's like exciting to me is like means like risk and like I'm the one that has to solve the problem if it happens being like the, you know, the like top of the tech tree basically. And like, I, I just want to like minimize risk And so actually boring to me is like a good thing. Yeah, and an exciting day is like optimizing a a callback or something where you shave a millisecond off of a response or something. Yeah, Yeah, yeah, yeah.
Although at the phase we're at now, I'm, I'm not even worried about that, but at Salesloft that was a thing of like a lot of what I actually did for like a one to two year period was like optimizing performance problems that we had in the, in the Ruby app. And it's, it was actually nothing against Ruby. It's just like, I think a lot of the things that we used to address have like since been solved, particularly around like N plus ones. It's like such a boring thing to have like tech problems for. But like we had so many problems with those 'cause it just
accidentally got added in over time and can. You can you explain that to me? From being out a Ruby guy. Yeah, so, and that's actually a good point, yeah, 'cause it's it's not really a problem you have in the Elixir world. So one of the one of the, I would say the most common. I'd be tempted to say that the most common back end performance problem that I saw and that I see people talk about is this idea of an M + 1, which means let's say you want to pull a list of records. All right, that's going to be 11 query roughly to pull the list. Maybe you can do some stuff
optimized and you maybe you need a few more. But like let's say one query and you load 100 records. But now let's say, let's say you're loading a list of people and you also want to list the company name for the company that they're at. And that's a separate object that or separate table in the database. You know, intuition would tell you that the best way to do that is one query to get the people. Maybe you do a join or maybe you do a second query to get the companies. But you're like one or two queries. And what can happen is in in, you know, very common in the
like in the olders like before, like Ruby added or Ruby and Rails added protection for this. It'd be very common to forget to preload that company association and you can still totally say person dot company dot name. And it what it will do is it will go to the database and fetch that one company record. And so if you had a list of 100 things, you're going to get one query plus 100 queries. So that's where the N comes in 100 records. And basically you're, you're getting this like explosion of queries. And that was for us like one of the biggest perform performance
problems that we had. And we had, you know, obviously like inefficient queries and stuff like that that would pop in overtime just from the characteristics of how the database was running would get tweaked or, you know, queries would change and indexes and stuff like that. But the M plus ones were like, we're always hunting those. And we had I, I like, I like wrote tooling to like try to find them and fix them in tests before it happened in production. That was like, and it had to be like coded specific to our app. Like there were already like gems that did that in the Ruby world. There's one called like Bullet I think it was, but none of them
worked for us for like the way like the way our app was built like those tools didn't work. So I had to like build a custom thing for that. So were n + 1 queries just written on accident by like junior developers or was it comp? Was it like a normal practice at? 1st all over the place, right? And it's it, it can be like, would it be from junior or like, like I, I think it happened from anyone, like accidentally, things happen. What, what the most common way that I would say would happen is, is you have this separation of query from like serialization of a resource. So turning that resource into Jason.
And let's say just let's say like six months have passed, right? You like that, you haven't thought about this thing in six months. And you go and you're like, oh, hey, we want to add company to the personal list. Oh, let me go to the serializer and let me add the company name to that serializer. You're right, great. Like feature built, everything's good, test passed, Q as passed, everything's happy, except you forgot to add that to the query. And now, like you've just added an M + 1, right? It's like very easy for it to happen and and they and they have that solved now by like
disabling this feature in, in Ruby on Rails and in in active record where it won't automatically make that preload. It would raise an error instead of going to the database, which is 100% the right thing to do. And so if you think of like Ecto, like it's just a different pattern where you don't have this like an active record, the pattern, not the library, but like this active record pattern is that you can have table access on the data entry itself. So you can say, you know, person dot company and that will actually be an association
across the table. And you could like automatically preload that through that association. Like that concept. It's like, well, why doesn't that exist in a, in Ecto and an Elixir? It's like, well, it's like not really possible the same way in like a functional language, like you could build it if you wanted to like using like anonymous functions and stuff. But really you just don't have the same problem. Like the, the coding paradigm's a little different. And so like in Ecto, it's like you have to load your data, you have to preload it or you have to join it in or something like that. So it's just like that problem
didn't exist. Like for us, like some of these things that were like very basic problems that we were having in our Ruby app that were causing performance issues, like they just went away when we switched to Elixir because like that paradigm, it didn't exist as a problem. It's not like, oh, Elixir solved this. It's like, well, the problem can't really exist unless you go out of your way to make it exist. Right. I like that. So what what was your first like experience taking on Elixir app to production like? Were you involved outside of
just like writing micro services? And Oh yeah. Deployment and everything. Yeah. I mean, I would say like me and I'm thinking about like the first app I did was probably like me plus like one other person. And so I'd say like probably like 80% me and like 20% involved with another person. So it wasn't like a team at this point, right? Because we were like, hey, we're sort of spiking on this thing and seeing how it can go. And so we were expected to figure out like, like our OPS team doesn't know what Elixir is, right? They don't know how to do it, right. But we had Kubernetes. We had the concept of take a
Docker file and make a service that runs from it, right? But we had to figure out like, all right, the first thing we did was a real time app that was like one of the features that brought us into wanting to use Elixir. So we had to figure out like, hey, how do we network these nodes together in Kubernetes, right? Like, like we had to solve that problem and we and we end up having a pattern that we then applied to every project. Basically like, how do we make, you know, how do we get the cookie set properly in the node so they can talk, so they can actually connect to each other using the the built in
networking. How do we, how do we make the, the Websockets work correctly over this 'cause we hadn't used Websockets internally at that point, we were outsourcing it. How do we, you know, how do we get our bug snag working? How do we get new relics set up? How do we get Datadogs set up? All these things. So it's like like building the project was one thing. So like half the battle and then like getting it into production and like making people happy with it being in production, which means like the operations team is like, hey, I can see what's going on in the app. I like we have alerts and monitoring and all this stuff.
That was another half the battle for sure. It got easier over time, but like, like we had to figure that out and it was like it was, I mean, I, I don't think I'm magic. Like I don't have like some like like ability that's like greater than other people. I do have a very high tolerance for like, like banging my head against the wall, but it was like a lot of that was literally just like like days at a time of like, how do I get this thing deployed and connected and all that? Just like banging the head against the wall And eventually you get it figured out and you're like, I don't have to
think about that anymore like I have. DevOps. That's how I do DevOps. I hack my way through and it can be so frustrating, but once it's set up, you're happy. Wash your hands and move on right? Yep. That's hilarious. All right, so supered is your Co founder of and CTO correct? And it's completely built in Elixir, correct? Yep, our back end's all elixer and then our front end is React. OK, gotcha.
You want to tell us a little bit about Supered? I, I briefly started looking at it and I actually think I'm already interested in your product because yeah. But yeah, I want you to kind of tell us about it. Yeah. So we help people learn to use software and to enforce their processes. So we're really focused on sales teams and specifically teams in the HubSpot ecosystem. And basically like what we actually do from a product perspective is we help people, we we allow people to define their process.
Like, let's say you have a sales process that has, you know, how do I get this deal from like prospecting to close deal? And we like you to take that that process, like create the documentation for it. And then we actually put that documentation back into the web page itself. So we do a lot with like Chrome extensions where we're like injecting content into a page. And so basically we like you to find this process. And then like, let's say one of your things is like deal created prospect, like prospect
schedule, like all these different phases, you'd be able to put and attach that documentation directly to that phase. So any salesperson that comes in, they they're, they're not researching or they're not going outside the platform. They just click a button and then boom, it pops up and it tells them exactly what they need to worry about or what they need to think about. That's like, that's like one of the things we do. Then, then you take that concept to like different levels where you say, all right, we're actually going to, instead of just having documentation, we're going to have step by step walkthroughs where we show you what to click around the application. So we're like gonna like, you
know, record a flow and then play it back for these users or we're going to do things now for the service companies, for the consultants so that they can apply this to their customers, into their business. And they can actually like Dr. adoption of HubSpot for their clients. And so there's a lot like if you look at the website, you're probably like, I still don't really know what they do 'cause there's like a lot going on with the product. And basically like our sort of hypothesis is that adoption and
like adopting a piece of software has so many parts to it. And like it's a, it's a process that needs to be managed. And so like our, our product sort of reflects that. And like, like we, we, we go wide. We we do a lot of different things, but they're all in this vein of like adopting different software. Yeah. So my, my sales, what should I say? My sales flow like with CRMS and stuff is very pathetic. And I've actually, I, I tried to use HubSpot and I hated it.
And so it's like, would it sounds like super? Would it help me? So it may not help you not hate it. And and what really what it, what it helps you do is let's say that you and it's it's really a problem that you get as you start getting into like scaling A-Team up and and adding more people into a, into a product. But it's like like, let's say someone at a company, like, whether it's like, let's say it's a small company, it's probably like the Co founder or like someone that's like in charge of like the revenue
function of that company. They're, they're creating a process that they want their team to follow. Like the honest truth about about like sales is like, I just want to sell this deal, get out of my way, right? It's like, like, like the CRM is not actually to help you close a deal. The CRM is to help enforce a process of how we want deals to be closed, because we think that when you do this you'll be more likely to close the deal even though you think that you won't be, and so it helps with that.
A process when you're growing like a sales team. Yep, Yep, Yep. I love that. Yeah, a lot of people reach out to us. They're like, oh, I'm, I'm looking at adopting HubSpot. Can you help with that? And it's like, like probably actually not like we're probably more for someone who is already had someone at the company has already adopted HubSpot and like has a process that they want and now they want to distribute that process to their like team. Gotcha. All right, good to know I am in. I'm in the middle of growing a
sales team. OK, I think I found a superhero, so it's good. That's awesome. But yeah, so I'm going to keep super in mind because, yeah, we're in the middle of figuring out our process right now and how we bring in new clients. And I, I hate it. I love programming so much more. And then when you, you know, when you decide to be an entrepreneur, I don't know if I really like the word entrepreneur, but when you have to start running a company and managing and then, you know,
doing sales and you're responsible for bringing in money, you miss programming a lot. Like I feel like I, I only get to program like, I don't know, 20% of my day now if I'm lucky, but yeah. That's unfortunately true for me too. I think it's and I'm not doing like sales stuff. I have a great Co founder that I, I love working with and, and he's really good on the sales side, which is, which is definitely very, very gracious for that. But even then, just like the act of like all the stuff that has
to happen, right? It's like it just ends up taking, taking, taking a lot of time in the day. And it's like sometimes I'm like, Oh, I just want to get this thing done. And I feel like it's like it should take me a day, but it's taking me like the whole week and I'm just like, I just don't have time. I know. Just is what it is. Yeah, and days go too fast. So when you started architecting and figuring out super, you know what made you want to go with Elixir? Yeah. So part of it is because that's what I like doing.
However, actually a big, a big aspect of this for me is like I sort of alluded to it earlier where I was like I have to deal with problems. What I specifically mean with that is like, let's use the term like I wear the pager, right? Like I deal with, I, I run our support function, which is a little unusual that like for like the ARR that we have that I like, I like single handedly run the support function and I am like responsible for any like, you know, if there was ever like a platform problem, like I'm going to be the one fixing that. And so I don't want to do that. Like I just like, I don't want
there to be those problems. I want to like minimize bugs. I want to minimize like any type of like downtime event. And so for me, I know with like my Elixir stack that like performance problems are probably not going to be a big deal for like, for the way that I could. I've been, I've been writing Elixir now for like probably like 7 or 8 years. And like, I know that the way I'm building an app, I'm not, I'm just like, I'm not going to have these problems. And, and I haven't. So it's like we've had like hopefully, like knock on wood here, like as I say, but it's like, I mean, we have thousands
of users and we've had like 0 downtime events. That's awesome. It's been like multiple years now and like we've had things happen, right? I'm just like thinking like, you know, we've had our database get slammed by like poor, poor architecture decisions and then we have to go fix a quick little problem. But it's like, and like that, you know, once your database gets slammed, your app is going to slow down a little bit. But like we've never had like the app go down and we've never had like our servers run into like just getting demolished by like requests. So that's part of it.
And then the other part is just like, I actually really like the tooling in Elixir apps. And so for me, like what that looks like our back end is Absynthe Graph QL, you know, request based APIs. We, we use React 'cause we do a lot with the Chrome extension to the point where it's like we would not be able to use live view just cause it's like the things we're doing in the page, like we have to actually just like be in the page for it. And so for like things like code reuse and whatnot, like we, we use React.
So like our back end, like I said, it's pretty boring, but like I actually think that Absynthe graph QL implementation is one of the best graph QL implementations in any programming language. Like I think it's like arguably I think it's better than like the node like native graph QL implementation. That's that's amazing. I haven't used graph QL since my node does. Maybe I have to check it out in Elixir? Yeah, I, I, I mean, I just, I just like it. I feel like a lot of the problems that people say that they have with it, I'm like, I, I mean, it's not really a problem. I think it's, it's sort of
solved over here. So I just because of that, that was another one of the big, big reasons of like, well, you know. I I like the freedom that Graph QL gives your developers at least like when you're in development, right? Creating new features and things you can kind of invent your queries. Yeah, And, and and some of that, like, I don't actually think we even do much of that, to be honest. I think like when I say boring, it's like it's, it's like it is very boring. But like, I think the big thing for me is, and, and this is like
one of the things because I have a development team like I work with and as they've done a little bit with graph QO, but like not, not a ton. I, I have more experience with that. But sometimes we'll, we'll have a problem and like, typically we would solve this in a different way and versus being like, oh, we can just like change the graph QO resolver. Like we can write a, a resolver function for this one field. We can even batch it if we want to, if it's like a database related thing. And we can actually like focus on that as a concept rather
than, oh, we need to change every place where we're querying this data, which is like a pretty daunting task 'cause it's like very easy to miss things. And so it's like, oh, we're actually like, like we'll, we'll solve a problem differently in graph QL than we would in our like, you know, the previous ways that, that, that we're used to writing code. And I've worked for both of them before. So it's like we, we have a little bit of a shared foundation with, with some of it. Yeah, refactoring large amounts of like CRUD operations is such a pain. I, I implemented a framework
that is a little too leached into my whole platform and the decision was made this morning that I'm going to be ripping it out and it's going to be a nightmare. I'm not going to bash the framework. It's just not, it's not working for, for the speed of my development. It's like slowing me down, you know, when you're just used to, you know, your normal good old Elixir environment, ecto and all that stuff. It just started slowing me down on too many things. I knew how to do without the framework, but now removing it
is going to be a daunting task. Yeah, I feel that. I feel that. That's why like I think especially if like start-ups, like there's something to be said about what you're familiar with as long as it's going to do the task. But it's just like there's 'cause there's so much other. It's like like so much work goes into just like getting customers, keeping them happy, like all that. It's like all right. Like I, I'd almost rather like over index on that rather than like making the technology like like do something new or do something I haven't done before. I'm almost like, I mean, there's a phase for that, like as you start getting into like bigger
problems and you like have a like larger code base, but it's like that's almost like a different phase of the of a company. Yeah. It's like for like startup for startup people, I'm like, if they're like, should I use Elixir for my startup? I'm like, do you know Elixir? It's like if like no, I'm used to like Ruby or I, I use Node, I use PHPI don't even like it's like probably shouldn't use Elixir. Like should probably use what you come from with because making the product so that you can sell it is the most important thing. There is something to be said with speed, especially in your MVP stage. Right. Oh yeah. Or like now, like my dev shop, we're a, we're a small agency,
right? And you know, speed matters, especially when I'm wearing multiple hats and have to like, you know, I only get 20% of my data code if it takes me that whole time to figure out how to do a simple query like, that's not a good use of my time, you know? Yep, exactly, exactly. Yeah, but. And I'm so like, so like we picked elixir or I picked elixir. Like I think it's turned out really well for us. I mean, it's just like, like I
don't, I don't have any regrets. Even like at the point now where I'm like, there's not really anything I would change. There's some things I thought about over time where I'm like, oh, could this help me, you know, increase some speed a little bit or like make things a little bit cleaner? And it'll just be like maybe, but it's also like adding a lot of risk and sort of like what you said of like you add something in. And then I think a lot about am I going to have to take this out in the future? And what will that be like? And sometimes they'll be like, I really want to add this in, but I know that taking it out is
going to be so hard that I don't know that all. I don't know that if I add it in, I'll ever be able to take it out. Yeah, exactly. Especially when something gets entrenched, I'm just like, wait, part of me then is like, I'm not going to add it in. Yeah, that's why it's like very boring. Luck. Luckily I'm like early enough in my platform where I'm not affecting a ton of users. Yeah, but if you know, if it was a year down the road, I probably would have to just leave it in and. Just live with it. Live with it, yeah. Yep, Yep, exactly. Yeah, I'm, I'm curious, how many
Elixir engineers do you have on your team? There's myself and two other people. OK, See, that's what's nice. Like that's what's nice with Elixir too. I feel like you move quickly and you can keep your engineering team relatively small. Yeah, definitely. I would say we that is true. We also have, I believe a above average capability debt. So like both the people that are on the team I've I've worked with for a number of years and I'm like, all right, these
these, these guys are very good at what they do. And I basically spent my whole like everything up until this point, I've basically been going with the idea of like, I want to have all the skill sets that are needed, like front end, back end, like some light design chops, the operation chops, so that if needed, I could run like a product by myself. And that's how we, I mean, we did that for a year. I think we hired our first engineer at like 750K error, right? So it's like we had, we had a like decent user base by the time we even hired our first
engineer. And so I, I agree with what you're saying. I do think though, like we have a good dev team, which makes me, I mean, I'm very lucky to work with them, yeah. Well, and I feel like if, if you, if you allow yourself to, you don't want to grow your dev team too quickly because I feel. Like. You have a quality problem then right? Because you can't get your engineers and it's nice when you can slowly grow your dev team, even if you have to take on more
stress for a short period of time. But when you can evaluate and hire engineers that you know or may have worked with in the past, it's a it's a lot better than just throwing out like, hey, we're hiring and then going through 100 interviews. Yep, Yep. And and there's something to be said about like, Hey, how do people get started in the 1st place? Like there's an aspect to that early startup. I'm like, actually my next hire probably would be more in a like I don't know if going outside the network, but like maybe a
different approach than what I've taken with these like with the current engineering team. So. Yeah, well, like beginning start up, I it's important just to know people, right? You kind of get your core team together and then when you start to grow, obviously you have to get an interview. Process and and part of that is like. One of the frameworks is like forming, storming, norming, performing. That's like that's like what the framework is, right? And so it's like every team goes through that, right? Especially so it's like if you're bringing in a team that
you've already worked with, you've actually done some of that, like forming storming phase in the past and you might have been at the performing phase, right, with this team. And so that doesn't go away even like as you move into a different context, right? It's like that that team is is performing. And so I think that's very effective for for start up hiring. Yeah, yeah, I agree. Yeah, I love that. What lessons have you learned building supered like with Elixir? Is there anything to that you would avoid or did it go relatively smoothly?
I think it's, I think it's gone relatively smoothly. I think we're lucky in that like, like I, I think we've had more success than we should have for like the face that we're at, which is like, like, I feel like we got lucky on some respects, which makes other things easier. Like I'm, I, I like, I don't look at what we're doing and I'm like, oh, I could, I do not think I could replicate what we've done. Like edit like I think we're like we're, we're doing, we're doing good, which which makes some of the tech stuff easier
because. Like it's almost like we've like picked a direction and we're able to like go down it. We don't have to be like, Oh, hard pivot and do something else right, which is just so disruptive. So like there's something to be said about that. However, if I think about like, all right, a lessons for Elixir specifically, I think there's something to be said about like the boring things that work well that I appreciate.
And that like a lesson is like like like using graph QL using like React, like you'd be like, all right, that's like the 2020, the 2018 way of doing development, right? And I'm like, you know, should I be using live view? Should I be looking at these other things? I'm like, we could and I did a start up with live view as well. But there is something to be said about like the boring technology that works really well in Elixir and it's like it's still there, it's still growing, it's still evolving, it's still getting like new capabilities. And we don't see it as much sometimes in the community 'cause we're focused on a lot of new things that are coming
through that are awesome. Like the, the, the new stuff is awesome. But there's something to be said about the old, the sort of like old stable things that have that are still working really well. It's like I don't regret building that for our like, like using those tools for our foundation of our app, I think. Just thinking about thinking about different things. Did you have to take any like
creative approaches that you wouldn't have had to think about using like an object oriented language or? Honestly, not really, to be honest, like like when I say boring, I'm like our back end is very boring, right? It's like if I if I search for like the word Gen. server, like it probably doesn't exist in our back end, right? Because it's like like we just like it is. It's not like, oh, we just had this like simple CRUD app like it's not like that, but it's just like. But it's a typical REST API for the most part. Yeah, yeah, yeah, like like that like graph QL, but it's like the
same concepts applied across. But I think if I think about like one of the things that has caused me like pain, it's, it's not anything about Elixir, it's actually about like the multi tenancy of a SAS application. And I'm very used to. So I like, I think, I think one of the requirements of like a multi like AI feel like ethical responsibility, like because you're like protecting people's data is like you have to have a good approach for like multi tenancy.
For me, what that means is like hard barriers drawn. I do some stuff in code with some like libraries I wrote to help with that, like at query level. But like you have to have these barriers. But one of the challenges that we faced is as we actually go to serve consultants, they actually don't exist in always this just like single tenant world, right? Because they're working with their clients, they're bringing clients in, they're managing their accounts, they're helping them get stuff set up. They're like interacting with this and that has like making
code work when it's when you design code for like a single tenant inside of a multi tenant SAS application. Now starting to even add like a little bit of cross tenancy has caught like that has been actually one of the biggest like pain points in terms of development because you still have to do things responsibly, like you have to put in the right protections. But now you're also like opening up the idea of like, like if I'm, if I'm looking at analytics, should I actually have analytics for my clients as well? Like going across tenant?
It's it's that's been I I probably would have thought about that differently from the beginning, knowing what I know now. Yeah. So like my hosting platforms multi tenancy, right. And then from an agency level, you know, we can see, you know, all the tenants databases, but then you have to lock down like I'm adding an e-commerce feature. So I have to think about that now 'cause now we have tenants with inventory, payment things and all these other things that you cannot let that data ever leak.
So I feel like we have probably a lot in common with that aspect of our products. For for me like, and we're doing this. So it's like not necessarily a lesson, but I think it's been like reinforced is there's different frameworks that are have this built in. I actually think like Ash has this built in in sort of a cool way with like the multi tenancy. But a lot of times it's like up to you as a developer to like go and implement that. I do it at the query level. Like I don't, I don't do multi schemas or anything like that. I think it's sort of a pain, but
I have a library that I wrote. I don't even ecto tenancy enforcer or something like that. I think only I use it and the company I used to work at but basically it's like it will yell at me. Is it on GitHub? Oh yeah, yeah, it's a. It's a real library. I want to check it out. Ecto Tenancy Enforcer, I think is is what I called it very creative naming. Yep. So basically like I put this into my code and it's like a little, it's like you put it into the repo and the, the repo has like a, a handy function
that allows you to like hook into every single query that's made. And it will basically crawl that query making sure that you've set up the tenant in the proper way. It's like making sure like you have a where with a tenant on it and that all joins are associated to the tenant as well, either directly or via like, like specifying the ID of the tenant manually. And so like, we don't have like, we've never had a cross tenancy issue because every single one of our queries runs through
this. However, then sometimes we want to go outside this and say, all right, well, this agency needs to have some cross tendency stuff going on. And then we have to like undo it and like add in our own protections. Like having this in place has like, is like from the beginning, like made it a lot quicker to actually develop the multi tenant SaaS application 'cause I don't, I'm not even having to think about it necessarily. Like obviously I need to think about it, but I don't I I know that it's enforced. I'm gonna check this out because yeah, I'm ripping out something
that I'm using for multi tenancy right now cuz I like it at the query level as well. And I just think like that's a big benefit of using like Postgres and other relational databases. So. Yeah, the operations of it at the query level are just so much easier than pretty much any other option. And it's like, fine, if you're like, oh, we, you know, I have 10 customers and I, I'm using like custom schemas. It's like, OK, you can make that work. But if you're like, oh, I have, you know, 6000 now.
It's like, oh, you know, you want to do a database update and it's like, it's just such a pain so. I agree. Yeah, it's better to be at the low, the lowest level kind of. Yeah, you can be at right. Yeah, but you had risk because you're like, oh, if I mess this query up, if I don't put this tendency or I do it wrong, it's like now I've like leaked data and OK, now I have to figure that out. Yeah, yeah, you don't want to leak data. Yeah, like the one thing you have to tell people about, right. It's like, like, like you can make a lot of mistakes and not and like and be like, it didn't affect anyone.
Like this was like a mistake that affected us and made something painful for us. But as soon as it's like someone's data is like seen by someone else, now you're like, I got to tell you about that. Yeah. It's like that's that's you know, I have things in a contract that say I have to tell you about that. And so you just never want to have to do that. It's like never a combo you want to have. Knock on wood, I've never had to do that. Yeah, I think, and I think I have not either, luckily. I know a lot of like I've had good buddies that have started
startups that just didn't have good data architecture, like they used things like Firebase and things like that and they had very like huge data leaks across clients and tenants. I guess you would say it, but it's because they you know when you when you try to create like a multi tenancy SAS app without multi tenancy. Yeah, it's hard to add in. Yeah, it's hard to add in. So, so I think I, I just think
about like lessons that's just like things that's been reinforced. I haven't had like we just realistically haven't had anything. Like a lot of time we like, I think the best learnings are like through pain. Like a lot of the database stuff I know is from like like juicing performance out of a system that was like that needed it, right. And like I learned so much from that, but it's like we just haven't had yet. Like I actually hope to have the type of problems that like you really learn from, but like we haven't had those yet where it's
like, oh, some big revelation has happened, which is both good and bad 'cause I do like learning things. And I think a lot of like, like, like the book, like the first book I wrote, like real time Phoenix is like written out of like real world pain. Like it was like my response to like very like painful roll out of a system. And so it's like you learn a lot in those environments, but also maybe it's like good that it doesn't happen sometimes because you're like, well, like it's usually bad when like, it's usually because something bad happened.
Yeah, I mean, that's why I started Elixir Mentor, because I feel like I went through three years of pain like learning Elixir coming from like object oriented JavaScript world. Like I tried to force so many like mutable aspects into a functional paradigm. And I rewrote my code base at least three times when I was like, oh I did this completely wrong. Yep, I feel that that's AI mean. That's a great point. Yeah. So I yeah, things out of and actually like when I first started in like when I left, I was more like a mechanical
engineer doing automation. And then I got into the startup world and I accelerated like pretty quickly in the startup that I joined. So I got like responsibility faster than I should have. And. I started, I started like being AAPI, like back end engineer when I was only iOS before. And then I learned about man in the middle attacks and things like this. And I was like just, you know, I was putting too much data over requests and just like being naive, right?
And then our product got a little man in the middle attack and we lost a bunch of like paywall stuff to, you know, a little, I can't really call them hackers. It's just like they were using like Charles proxy or something, you know, And and then I learned that, you know, you can't trust, you have to control, you have to control your requests back and forth and keep everything you can on the back end. And there's a big learning experience because it happened like probably my first two years of becoming a software
developer. Yep, that's you learn a lot from it though. You do? Yeah. And then I got paranoid on security. Probably went over the top, right. But it was it was probably a good thing. Let's circle, I guess not really circle back. But let's talk about you just had a new book this year, right Ruby? Yeah, from. Ruby to elixir. Nice. I love the cover too. The origami that's. Cool. Yeah, it's I'll. I'll say this because I not just
it's just sort of funny how stuff works out, right? They the first, what they don't show you from this was there was a crumpled ball of paper here and that was like the first cover that came to me and I was like, I was like, Ruby's not a crumpled ball of paper. I cannot put that on the cover. So it's like this like origami concept was I was like a boat's a good thing. Like like we can have a boat over there. That's good. All right, but like, but elixirs the a flying Hummingbird. OK, we got that. Yeah, Yeah, that's funny. What inspired you to write a book specifically for Like Ruby
to Elixir developers? Yeah, so part of it is like it was my journey. And so I wanted to like capture some of that. I, I'm just thinking like, I feel like things are born out of like often like my first book was born out of like the pain of like building a real time system. This was, this was a little different 'cause like I started writing this book after my like previous startup failed badly. And I was just like, so I was
like, I feel like I write books at like transformative times and, and that was it. It was like a different reason for writing the book. But I was like, I think that there's a need for people that were like me that came in from this other language to like have concepts that they're familiar with mapped to the Elixir concept so that they can like like, like comparing an object in a gem server, right? Something like very like specific and like, all right, let's like go through that and like and think about it. And, and then part of it too was like, you know, that's, let's
call it like the pipeline of like people coming into Elixir. A lot of it is through the Ruby ecosystem. And like, I'm not, I'm not actually trying to like turn Rubius into Elixiris. Like I actually think that's like, like some people view it that way, like a adversarial thing. It's, it's not that way for me, which is why I didn't put a kerpled wallpaper on it, right? It's like, like, like proof that I don't feel that way, right? But it's like, but it's like, I think, you know, people just want to have more options. And then if you have a better
product, like a better language, like people will stick with it 'cause they enjoy it. And I think it's like I, it had, it changed the way I program and the way I think about programming. And so I'm like, I think that, you know, I, I, I wanna introduce that to other people. Yeah, I like that. I think just learning the functional paradigm and the immutability it it, it makes you a better programmer. Even if you are, if you, even if your day job is object oriented programming JavaScript, like, you're gonna write better code having that mentality 'cause it
kind of makes you, it forces you to write a function that only does one thing and like, transform, right? Versus Yeah. And when I first started, it was like, 'cause the first app that I wrote was like it I, I would call it like we had like some internal data structures that represented specific things that we wanted to keep like real time and keep in memory and whatnot. So it wasn't just like a flat database record. It was like a little bit different than that. And we were like updating it as, as events came in. Then you could always like query
for, hey, give me the current status of this object or this object, this, this piece of data. And I struggled so much with like the functional transformation. It's like, hey, I was a good programmer coming into that. And I just remember like that code was bad. Like if I looked at that code now, I'd probably be like, oh, that's bad. I mean it worked but it was bad. And so it did change like over time, like the way that I thought about that, like the problem of like transforming data changed significantly and like from I think about like the first app I wrote. Yeah, no, I was the same way. And like I was remembering, like
before I understood pattern matching, I was like, what are these arguments? Like, I don't know what is going on here. And I like did not grasp it. And then the day it clicked, I was like, this is like the most magical thing I've ever learned. Yeah, I feel that some and like, so like I had false starts when I came in when I was learning elixir, right. So it's not like I picked up one day and I'm like now I'm now I've learned elixir and I'm going to go and use it, right. It was like like I just struggled and I had someone to talk to.
Like I had a mentor through it. Luckily, the, the colleague who like one dope, you know, introduce Elixir, he had spent a lot of time like going through similar things as me and he was farther in the journey. And some were like, it just some stuff didn't click and I was trying to, I was over indexed on like learning OTP and learning like Genservers and stuff. And it's like, I probably didn't necessarily need to worry about that yet. And it added a lot of confusion for me. So it's like it took me like 3 or 4 times to of like doing some like, like I'd say like two to
three months like learning processes And it took like, and then I'd like be like, I don't really get it. Like let me sort of like restart, let me restart. And then I once I got it, I was like, OK, I'm I now I get it. However, like, it took me a little bit to get there. Yeah, I didn't even start flexing the OTP side of things in Genservers. Like you're saying that you have a really simple back end, right? Written in Elixir. My first project was so basic, it was essentially just a REST API written in Elixir. And I didn't do anything with
OTP Genservers or anything, but I'm kind of like. That's a good thing. Yeah, I, I think like, like I knew all the hype around it, but I didn't have time to like, figure it out. And I was like, I'll figure it out when I like, when I need to. Like. When I stumble upon a feature, OK, now it's time to learn what a Gen. server was. And then I think it was good because if I would have learned or tried to learn Gen. servers too soon, I think I would have overused them for keeping state and like the mutability side of things, right?
I would have this global state accessible from everywhere. So I think I would have approached learning an immutable language the wrong way. Yeah. And I, I must view them as like tools for performance, like 'cause once you can start doing things in memory, I mean the performance difference of like in memory versus making a lot of like, you can just really get some performance gains. So that's that's one aspect or for like very specific multi step, like complicated workflows that like maybe involve other
systems or things like that. I think like Genservers can come and use their that's like almost like the two tools that I use them for now. That's because I'm building on frameworks that use Genservers really well, right. So it's like like Oban and like Phoenix and like Phoenix channels, which live views build on Phoenix channels. Then like they use OTP really well, right? And so it's like they're going to use live view or so they're going to use OTP and processes 100 times better than a new Elixir is is right. It's like it's almost better to
like start by using those frameworks and getting the benefit of how they're using it. And then over time, you, you, you, you know, find that you need to add things, performance or, or the real time stuff, you start needing to do a little bit a different programming sometimes and and then you add them in. But it's like you might be two years into your journey before you even like actually start doing that in production versus like when I started programming, I was like, I'm going to build an SMTP trap, right? I'm going to like, I'm going to like start a like a Gen.
TCP socket and I'm going to listen for requests and I'm going to like process those and I'm going to update the state That's like the SMTP messaging. And I'm going to, I'm going to respond to the requests. It's like very like useful, you know, problem to solve if you're learning RTP, but it's like if you don't even know Elixir yet, it's like it's like very hard to then grasp everything if you're all together. Yeah, I'm excited to start using Oben. I just had Parker and Shannon on last week and they're they're awesome. They're awesome.
They're fun to talk to. And yeah, I just think Oben, you don't have to reinvent a tire. Like they have the scheduler down and yeah, you know, like. The only, and it's like like everyone, like you should default to that. And it's like I, I used to be a little bit of a, like I was a little hesitant when I first started because at the, at my previous job, we were probably processing like 150 to 250,000 jobs per minute, like a ton of job throughput.
And so like, and that was all based on Redis. And I was like, I was a little skeptical about like Postgres versus like Redis for the job back end. And like at this point, having used it for the past like five years, basically I'm like, like, don't try to reinvent that wheel. Like it's just like, unless you're like literally like I've used it and I've like hit the edges of what I can, like what, what I can do, but it's like 99.99% of people. That's not going to be a problem. It's like just just use it. It's like it's so it's, it's really well built.
Yeah, well, 'cause I found myself trying to write my own like Cron jobs essentially, and I'm like, why am I going through the hassle of this one? There's literally a tool that is optimized too to work well and. It handles things like if your servers yeah failures or anything. Yeah. And like, you know how hard that would be to write from scratch, like you would just have lost tasks that you don't know if they fired or not, you know? So yeah, I'm excited to start using it. I think it'll make my life a lot easier.
But yeah, those two are, they're pretty entertaining. I don't know if you did. You I haven't watched it. I haven't, I haven't watched it yet, but I I saw like some clips of it. Yeah, I think like I, I haven't, I haven't ever been, I don't think I've ever like had like an extended conversation with them, but I was just like, I think they have like, like I've seen like talks and I've seen like, like things that they do. And I, I, I really like, enjoy their like perspective and their approach to things and like, and
just like how they're, how they're approaching Oban and like trying to build something that's like in like this community. Like I think it's, I think it's really awesome. And I've never seen anything that makes me like doubt it. I'm like you all seem like you're doing a really good job with. This yeah, yeah, no, they're really cool. What made you like your your overall project? I believe I I should probably. I feel like I get why you you chose Ruby, right? Because it's your background and it's the popular cycle of Ruby developers come into Elixir.
But it almost could have been like. Yeah, this is, this is one of my regrets. I'll be honest. Like this is one of my regrets. Because in reality, percentage wise, maybe 3% is relevant to like actual Ruby, right, 'cause it's like when you're teaching the concept, you're not like, it's not like every sentence is relating back to Ruby. It's like, like you might start a section with a Ruby concept and then we're going to like map it into Elixir and then you have 3 pages afterwards, right? So it's like a paragraph goes to then 3 pages and then you're not
talking about Ruby throughout that. And so it's like when I actually look at it, I'm like, I, my concern is that from, cause a part of it was like the marketing perspective of like will like from Ruby to Elixir is like a powerful statement, I think, but it's like, does it actually scare people off? Who's like, oh, I'm a JavaScript developer, you know, I'm, it's not, it's not really for me. And I'm like in reality, like you could not know what Ruby is and it doesn't matter. It like literally just doesn't matter. And it's actually, it's more
about how I learn languages and how I learn, like programming, where I'm like, all right, what and, and the first book is the same way. And like I got like, I think people like this style. And I'm not saying everyone has to write this way, but like the way I write is like, I'm gonna have like the first five chapters, like the first half of the book be like deep on, like we're learning the concept. Like, like, like the first chapters are all about like learning elixir, learning like, like learning the language
versus learning like a little bit of OTP stuff. And it's all about like and and like data manipulation and pattern matching. So it's all about like using Elixir. There's no Phoenix, there's nothing like that. And then the second part. Like what I kind of get from it, which I I'm going to read it because I think it'll be good, but it's kind of just shifting your way of thinking from like an object oriented or mutable language paradigm into adopting a functional language kind of, right? Yeah, and, and for me, like the
way I, the, the way I think though is like like it's almost like phase one classroom, phase two project. And, and, and a lot of books, I'm not saying it's a bad approach. For me, it doesn't work as well is like a single project that goes like throughout the whole book. And it's almost like, hey, I need like a lot of small examples in the beginning and then I need like the one big example that's gonna like take it through, like teach me then the tools. So it's like the way this book is structured is like learn Elixir in the first half and then learning tools in the
second-half. So you like learn Phoenix, learn Ecto, learn Oban. I don't even remember. There's like 4 different things you're learning in here, right? And it's like that has nothing to do with Ruby at a point. It's more like how I structured the book and I, I, I do think that I could like rebrand this or remove the Ruby aspect and I think it would be more successful, but it's not, it's not about like success or like how many. I'm not like optimizing for sales. I'm more of like optimizing for like, hey, this is my journey.
This is like authentic like it, like this book is me as I'm learning Elixir and like reflecting back on it and so. I love the style where especially if it's the first book you pick up for learning Elixir. Right? Like I do think you need the classroom style because you need to understand the basics. You need to know what you know. The pipe operator is how how binding works, how pattern matching works. You need to know all those things before you can write any
code. Yeah. So I feel like that's good. Start the book with you know your Elixir basics and then move into a project because I do think project based learning is the best way to learn. Yeah, yeah, yeah. And I agree with that. I agree with that. Yeah, I love that. What made you want to choose an SMS application? Yeah. So I would say like thematically, through my career, one of the things that has been a, a big benefit is knowing how to use Twilio.
And this book was originally focused on like actually using Twilio. Like, hey, we're actually going to send real SMS messages to your phone. And I made it all compatible with Twilio. But there's actually like regulation in the US now that make it not possible to write that into a book because you can't just start using Twilio's API anymore. You can't just start sending SM s s. You have to do like government verification and all that. And it's like so, so it's like I like, I like like let's take Salesloft, right. So sales application, it's like
I introduced Twilio there like I because I've used it a previous job and it's like over time, I would say it would not have been the app. It was if we didn't have that functionality and it actually like unlocked a lot for us as a company. And it was because I knew how to use Twilio. I'm, you know, I'm not saying we wouldn't have figured something out, but like, so like, I just really want to give people this experience of like this product is really cool. Like you can actually build interesting things for businesses when you start
looping in like phone stuff, not SMS specifically, but even like phone calls like like these like like like communication systems. And so a little bit of it was like, Hey, this is like almost like an homage or like I'm, I'm gonna like dip your toe into this without you realizing it. And I hope that like maybe for some people, like they take it one day and they're like, oh, I'm, I, I need to send some SMS messages. I remember doing something with that before. Let me check this out. I know. Oh, I already know how to do it. Oh, I already have done this
type of thing before. So that's, that's, that's where it came from. Is it the best choice? Probably not, but like, but it's fun. But it's fun and it's like it was more fun. Like I had the whole book, like I had the whole example written and it was like more fun 'cause it was actually sending you SMS messages to your phone. And then I procrastinated and I didn't write anything for like 2 months. And I came back to it and I was like, all right, time to start writing the next chapter. Let me make sure all my code's working. And it was like, it doesn't work anymore. That was like, that's weird.
Let me check this out. And I was like, oh, last week government regulation went out that like totally nukes how like SMS works. And that's a bummer. Damn regulations. But if I didn't procrastinate, I literally 'cause like I was on like chapter 8 at that point, like I probably would have 'cause I, it was, it was when I was right in the wreck chapter. Like I probably would have released the book or it would have been like farther along in production when I realized like, oh, twilley doesn't work anymore. And so I had to adapt to it. But. That would have been a bummer though too, if your book got out and then you're.
Probably I don't even I don't know what I I literally do not know what I would do in this Like I think it you would have. Cried. I mean, yeah, I probably would have like, oh, do you like release the second edition right away or like, do you fix it? Like how do you fix a print? Like imagine if it went to the printers and everything. Yeah, yeah, yeah. And it could like, it literally could have. So I just like I got lucky by procrastinating. We might have gotten you a sale. OK. Jamal, I just I started learning Elixir a few days ago as a rubyist looked to buy a book but
wanted a recent one. So he's very excited. Yep, this is this is this year. That's as recent as you can get really with hard copy books. Yep. So that's exciting. All right, So you leverage this around an SMSMS application. What like, what do you learn throughout this project? What are the cool leverages? What do you teach? Do you teach Gen. servers? What? Yeah. So, so the project is based around.
So it's like it, it's in order. So it's like it goes from Ecto Phoenix to Rec to Oban to some testing. It's like these five different aspects. And so each section of this is going to introduce that like sort of section of the application that's relevant to the, the, the framework being taught. So like you start with like, all right, let's like how are we going to structure this SMS message in the database? How are we going to actually write some queries to like fetch
the list of SMS messages to create a new SMS message? And so, and then it's like, all right, now that we've done that, let. And some of it's like trust based of like, Hey, would you write an application this way if you knew all the tools? Like obviously not, but you don't want to just like be like, here's all the tools at one time. So then, then the next section's like, Oh, yeah, we, we have our sort of like our like query core. Let's go ahead and add like the, the, the web requests and some of the UI that are going into it. Oh, hey, we, we've now have AUI that talks to a database, but everything's fake.
Let's go ahead and talk to an actual API and I because we couldn't use Twilio, I wrote like a Twilio compatible app in live view and and Phoenix that that you make requests against. And then it's like, OK, now that we now that we now have like SMS messages sending and I actually leave it open that you could send real Twilio messages as well. Let's go ahead and you know, like loop open into this where we're going to be doing some like asynchronous tasks based
based on as we send these messages. All right, let's add some tests to it. So it's there is no Gen. server in the final project. And some of that's almost the point of the book of like, like 'cause number one thing. I think the number one thing, maybe two, number one and two are like pattern matching and Genserver and and OTP, right. If you bring up Elixir to someone who doesn't quite know it yet to be like, Oh yeah, I've heard of this OTP thing. And I don't really know what that is or oh, I know Elixir is really good at pattern matching. And so pattern matching obviously really important, but
I'm like, hey, OTP, like trust the trust the tools a little bit and like you can build real apps that are actually like valuable that don't, don't loop it in like you that you're, you're not writing custom like processes. Or yeah, you're not personally writing the Gen. server, but like using open, you're leveraging Gen. servers and processes, so. Yep, and we sort of like in the open chapter, we sort of look at like, hey, let's say you were to do this with like a task, which is a, you know, a, a loose form of like a process. And what is a process is it's a, you know, not having to write a
full Gen. server, but it's like, hey, let's let's like look at the evolution of this. And then we go to like the open route. And it's like, you know, here you're focused on like the behavior. You don't have to think about like how it's actually going to run versus the other ones. You're thinking about how it has to run and and you know, are you writing things to a database that that sort of thing. Well, I and I think that's super valuable, especially if someone picks up your book with the idea of wanting to build an MVP or their own product. It just gets them off the ground and gets them moving, and they'll have a very optimize, performant app out-of-the-box,
just, you know, using the tools available. Yep, I think, I think if you use the tools available and you write like your first Elixir app, I think there's a 95% chance or higher that like assuming it like does the stuff you want to do like, you're not gonna have a lot of problems that you would have another language. It's like, and it's and it's like, it's like, and it's like, do I think that's because of Elixir? Not necessarily. I think a lot of it's because of the tools. A lot of it's because like the functional aspect, like there's other functional languages that
people like because it removes classes of problems. And you know, so that also applies to Elixir. But I mean, you get a lot out-of-the-box with like the BEAM VM and Erlang, right? Like those are. That's such an important like bedrock to Elixir too. Yeah, the the scalability aspect is is huge. Well, what's nice too is you can have a like a small start up, right? You can have a product out and you don't even really have to worry about distribution really.
Like you can just kind of vertically scale your app and not worry about having nodes all over the world until you absolutely need to. Yep. And and but then it's also really easy to do that, right. So it's like it's just, yeah, it's. I can't remember who I was talking to. No Dang it. See, I talked to too many people. But like, it was a relatively big company and maybe it was fly. It might have been fly, one of those guys, one of those
engineers. But what they'll do is they pretty much just have like a server on like every major continent and that's it. And that's enough for serving the world. So they have like one in Asia, Europe, North America and Yep, then you just scale your server vertically and you get away with a lot less. And, and I use fly now. I don't do the, I don't do global distribution yet or like even like much distribution at all. The big reason is because if you're doing that, you really need to have your database in
the same region. Like you have to, it's just, you can't not do that. And I just, I think that's actually a hard problem to solve is like, how do you, how do you have a, how do you have the right database that you need in every single region? So I don't solve it right now like we, we, we do run on fly mainly because it's easy to like it's easy to do all the stuff that goes into like launching an app. We, we have our, we have our databases in in AWS and but the but fly makes it I I actually do
like, I do like being hosted on fly, but we don't do the global stuff yet. Yeah, I think the the past systems are like products are nice. The past platforms, I'm always scared of them though. You always hear the nightmare stories and I have a weird thing like I just like to control my server. So I've just always been a Docker container like Digital Ocean droplet guy. Yeah. The reason I don't do that is because like with things like SOCK 2 and these like security programs, it's like you have to
have like ways that you're like, how are you updating your servers? And like you have to like versus like when you go with the pass route, you honestly, that's true because you're like, I mean, they're doing it for me. So that's that's actually like one of the big things. But I would definitely get more perform like just be even though I'm like happy with fly and like happy with like what we're doing. Like I will get more performance by far out of like using like EC2 instances or like a a digital ocean droplet versus versus the pass route.
Yeah, it just then I had them at the, I had the overhead of like managing. It yeah, you got to balance what you're making time for. I unfortunately do DevOps way too often and I'm not good at it. Yeah, yeah, yeah, I, I'm, I'm passable, except then it's like I did my last company all in AWS and I was just the only developer 'cause it was like me and a Co founder and we never, we never scaled the team. And and then one day I realized when I was like leaving that I was like, you know, handing the keys over. And I realized that none of the stuff I set up would go to two users.
Like in terms of like the AWS management aspect, I had to basically be like, well, here's the account like like, like all my like I didn't do any of it right, right. And that made when I was doing this startup because I probably would have done the same thing with like AWS because it did work well for us. But with this startup, I was like, I, I I'm not going to do that again, dude. I I've been part of startups that are like too entwined in AWS so I don't even I don't even like touching AWS anymore. OK, but like I get it, they have a lot of good stuff.
I just don't want to be wrapped into Amazon's ecosystem. Yeah, and that's why I use. I only use tools that are what I would call standardized like open source tools like like RDS is, I don't know that it's actually Postgres. I think it is actual Postgres, but it is, you know, it, it's Postgres. I'm not going to use like Aurora that's Postgres compatible because then you're like you're even though your Postgres compatible, you're actually have like implicit dependencies on how they operate that you
wouldn't necessarily be able to take it somewhere else. Yeah. And like I'm not against using things like, you know, yeah, three bucket like they're they have they're affordable for storage, right. So I think those are good options. Yeah. Yeah. I have a little PTSD because I remember, yeah, I was in the startup and like, our CTO was leaving, like transitioning out, right? And he was like giving me a rundown of all the micro services intertwined into this iOS app. And like, it was like, so much.
I was like, dude, you need a degree in AWS micro services just to deploy this thing. So yeah, I was like, too, I like everyone says how much easier it is, but I almost think it's more complicated when you start tying in too many. Oh, for sure, for sure. Yeah, for sure. Yeah. I like to have everything just like we're, we're still at the phase where it's like you can boot a server on the machine and you're like have super running, right. And there's like a little bit of like we do some like some of the real time JavaScript stuff is
like you have to run like Node, the node real time stuff because there's not anything in like the, I forget what the, what the, what the stuff, what the CDRTS are called. But there's like certain libraries where it's like, yeah, it's only in the JavaScript ecosystem right now, like like YJSI think is the one. And so it's like we have like some micro services, but our main like you can run our app on just one thing. And I've been in the I've I've been in the world where it's like, that's not true anymore. It's very, very difficult. All right.
What I think we can, we can probably start wrapping this thing up, but what is your like favorite tooling in the Elixir ecosystem that like you wouldn't start a project without? That's a good question. It's like probably a basic
answer, but like I think I would only use Phoenix at this point. Like I 'cause I know a lot of people just use plug or like I could, I could do that myself, but it's like I like what it gives me. So I, I think every, everything I use would probably would probably use Phoenix. I think otherwise it's like it's sort of hard for me to say 'cause it's like, it's like I would probably lean towards the stack we have now. It's like I like what we do with Graph QL. Like I like that aspect of
things. But I don't even think, I think it's like it's, it's, I feel like it's almost like different with, with, with Elixir apps where it's like I don't necessarily have like go to libraries. I sort of just like, it's like I have tasks I'm trying to do right? Where it's like I need to send some Http://requests and I'm like, all right, I'll use rec for that. At this point. I, I actually historically I've used like HTTP poison, but it's like I'll use rec for that. All I need jobs are always open for that. OK, I'm going to be doing a multi tenant SAS app. I'm going to use the library I wrote because I'm familiar with it and it does what I need.
But it's like it's, it's more like whatever. Like the topic that I'm trying to solve is versus like necessarily like I have like a go to like secret weapon or something like that. Well, I, I think what's funny is like, well, you mentioned you'd only use you, you'd use Phoenix and IA. 100% agree. Because when I first started I was like, oh, I'm just writing a back end. I'll just do everything in straight Elixir with plug. Writing endpoints and things is so much easier when you involve. Phoenix Yep, Yep. And I and I, I've done like the
pure plug stuff before and yeah, it's just it is easier with with just. You'll get moving a lot faster, especially like when I was first starting, I was also learning Elixir, so that hard learning curve. And then when I finally brought in Phoenix, I was like, my life is much simpler. But then I would say like tools. I couldn't live without Ecto, but we kind of have that out-of-the-box. You don't even really think about it as a. Tool yeah, I'm pulling up my mix file see and see if there's anything interesting that I that I forgot about and I'm like looking at this I'm like yeah,
sort of boring. I think like like I, I do use distribution and I really like like DNS cluster is like a library that solves that is like very nice because I've I've used other things in the past and and I really like the like DNS cluster for that. Obviously I'm talking about like graph kill using absinthe. I really like that. All right, I'll, I'll, I'll bring up a new one that's like, I'm looking at my file here and I'm like, oh, what's an interesting library that people may not know about that is for a
common problem. So for sending emails or like for for creating emails that are going to be sent by the system. I really like this like MJMLEEX library, which is basically, I think, I think it's like a Rust wrapper for this, like this thing called MJML, which is a way of doing like e-mail markup languages. Because emails are very, I, I could not write an e-mail from scratch and have it be correct. Like you have to do a lot of crazy stuff with like tables and stuff. And so with this, they basically
give you almost like components that are like abstracted away and you can write really good looking emails. This is amazing, you know, like this is perfect timing 'cause I was just about to implement some e-mail in. Yeah. So this is I think starred MJMLEX. I'm trying to think of who it's. Alex wrote this library, so it's. Like Alex is. Awesome. Yeah, he's awesome. And this is like this is born,
like this is born from him like doing SAS products, right. And like he was like I need, I want to have. Beautiful emails. He has a a SAS platform for like automotive repair or Body Shop which is. Really. Yeah. Body Shop, like, like, yeah, Body Shop management or like it's almost like it's like the, when you're doing the like active, like, you know, marking up a car for insurance, yeah, yeah. Paint and all that, yeah. Yeah, yeah, he's an awesome guy. So that's that's probably my
most interesting one that's in my that I would probably use anytime I knew to do that that is not in people's typical stack. No, I love that. I'm glad you brought it up. I feel like there's so many cool things in Elixir, it's almost hard to know them all. And I know people always complain that there aren't enough tools, but they're I think. They're I very rare. I at this point, I very rarely have a problem that I can't solve. And they'll be like very specific things where it's like, all right, I'm, I'm using this YJ like the the client library I use for my real time editor or for my for my text editor has
real time stuff built in and it uses YJS. It's like you cannot use anything else. You like have to use YJS. And so it's like that's starting to become a thing in Elixir where people have like YJS compatible like libraries and, and data structures and, and whatnot. But it's like, you know, that one very specific use case, It's like, I don't have a solution for that. But it's like like pretty much any problem that's like that's not niched there is like there are good solutions for. We have a question I am on.
I'm not familiar with this library but you might. I don't know what are your thoughts about Pow and would you recommend a straight Phoenix auth or Pow directly? So I was thinking about this and I said not to say it. I, I would probably use Pow. I use pow now I'm not sure how I feel. I would say I'm I, I don't feel strongly about it, but I do feel less inclined to use something like Phoenix Auth than maybe the community at large is is like
the community at large seems excited by it. And I'm like, that's awesome. I actually really like Pow and like, I really like devise as well in Ruby, right, which has its own reputation. And I, I use pal and I, I even have customizations around it and stuff for like, you know, as, as you do, as you build an app, you, you end up customizing stuff. And I've always been able to do the stuff I want to do. And I feel like, I feel like the like there are things that are handled for me that I don't have
to think about that I'm that I know work well. Like it's particularly on like the security of of the system. And so that makes me like and recommend PAL. And it's like, I haven't had a bad experience with it. So I'm like, would I use it again? Probably, yeah. I'm. Going to have to check it out and I'm going to so Owen in here, he said take a look at web auth and components if you want to support pass keys and then it goes shameless plug. So I'm guessing Owen wrote this library and I'm checking it out. It looks really cool honestly. And especially I know web auth
is actually not easy to get started with. So it's, it's like the fact that there's a web auth library for Elixir is like awesome, right? It's like, 'cause that's that is not a from what I hear on the street, that's not a an easy an easy protocol to to get set up. Owen, you should DM me on X if you're on there and let's get something set up so you can come on this podcast. That'd be fun, but this has been a lot of fun. Where can people find your book?
Or what is I should say? Books on Prag Prague is it is it yeah Prag prague.com. So typically I imagine Google like from Ruby to Elixir or real time Phoenix. Real time Phoenix is like a couple years old now. It's it's like a little like it's actually not out of date cause channels hasn't haven't changed dramatically. So it's actually still pretty relevant. And from Ruby to Elixir is is you know, within the last. You know. Six months. So that's that's, that's pretty, pretty new.
When did Real time in Phoenix come out? That was like early 2020 I think if I recall. The only differences would probably be the way the the views are rendered right? Like the? Yeah. Well, yeah, I think, I think the actually the the biggest differences are like it used that there used to be things that were automatically started for you. Like the the the the communication mechanism that that Phoenix uses internally used to be started for you automatically. And now it's like you have to start it yourself.
So it's like you have to put that in the application tree. But it's like from a code perspective, like all of the code around channels is actually exactly the same like that the interfaces haven't changed at all. The like the way you write that code hasn't changed. It's like how you set up the app has changed a little bit, but not not that much. So it's still, it's still very relevant. It's actually very relevant for live view because live view is built on channels. And also it's actually a book more about how you build real time applications less about and like channels is the mechanism
for that. Less about like channels specifically. So, yeah, they're both on Prag Prague and I, I, I mean, Google it and you know, that's, that's how I always find it. Or you can go to like Prag Prague Elixir section and there's always like, like if you're looking for the PDFs and you want a discount code, I think unfortunately the discount code is like promoting a, a platform, but it's like devtalk.com, that's the discount code. So they've, they've managed to get a good discount code for themselves, but it's like all Prag books are like 35% off when you use that code.
That's awesome. And that's like like at the most in like like a Black Friday event, you might get like 50% off or 40% off like so like always having a 35% off code is, is pretty good. Yeah, Jamal just asked any coupon codes for Elixir Mentor and I like, no, I'm not cool enough. I'm gonna have to try to get one. Elixir Mentor needs a discount code. Are you able? Is that, is that a thing you're you're going to be doing or? I don't know, no. Yeah, yeah, Black Friday
discount. Yeah, there we go. You have a. You have a month to figure it out. Well, anyways, thank you so much for joining me today, Steve. It was awesome chatting and hearing all about Supered and Ruby to from Ruby to Elixir, which I do think is a great name, but everyone listening, it's just good. If you're new to Elixir, so also support Steve, check out that book. And yeah, I hope everyone has a good weekend and anything, any
last comments before we sign off, Steve? I don't think so. I appreciate you having me and enjoyed the combo all. Right, cool. All right, See you guys have a good weekend 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...