In this episode of the Elixir Mentor Podcast, I talk with Elliott Clark, former engineer at both Facebook and Microsoft, who now runs Batteries Included. Elliott shares his rich background from working on the .NET team at Microsoft and infrastructure and developer efficiency at Facebook to creating a platform that simplifies cloud deployment for developers of all sizes. Elliott explains how his experience at tech giants shaped his vision for Batteries Included, particularly the pain points he observed while at Facebook's developer efficiency team where he saw firsthand how complex configurations led to outages. He discusses why he chose Elixir and LiveView for his platform, highlighting how the unified language environment allows backend developers to build cohesive UIs without the traditional frontend/backend divide. We explore how Batteries Included automates complex infrastructure tasks like setting up Kubernetes, Postgres databases, Redis, and monitoring tools with just a few clicks. Elliott also shares insights on their "Robin Hood" business model - keeping the platform free for smaller developers while charging larger enterprises, a philosophy informed by his time with open-source projects at multiple companies. Our conversation dives into technical territory with discussions on managing large Elixir codebases (approaching 300,000 lines of code), challenges of umbrella projects, and the testing philosophies that help maintain quality. Elliott brings valuable perspectives from his work on large-scale systems at Facebook and Microsoft, offering insights on preventing regressions and building resilient infrastructure. Whether you're interested in Elixir, deployment infrastructure, or the challenges of building developer tools, this episode offers valuable insights from someone who has worked at both tech giants and startups. Elliott's practical approach to solving deployment pain points demonstrates how developers can build tools that truly make a difference in the development workflow. Resources Mentioned: - Batteries Included: https://batteriesincl.com - GitHub: https://github.com/batteries-included SUPPORT ELIXIR MENTOR - Elixir Mentor: https://elixirmentor.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
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 testing. What's up? I'm Jacob Litzow, 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 welcoming Elliot Clark, a former Facebook engineer who's Building Batteries Included, an Elixir platform that simplifies cloud infrastructure for developers. Elliott, welcome. I'm excited to have you here. I think this is going to be a a really fun conversation. If I missed anything in that little one sentence introduction, feel free to fill us in and maybe give us a little bit about your background and
kind of what brought you to building Batteries Included. I think the, the intro was, was a pretty good description of, of what we're doing, but I think the, the kind of story of how it started tells a lot about it. So I've been a back end developer database, distributed database kind of person for quite a while. So always in the, the infrastructure tools area. For a while I was at Facebook. I was also on the dev efficiency team, which took a look at, you
know, how do we make developers faster? How do we make it so they make better features break things less often? Is that? Possible to break things? Less often. It is, it is we can, we can absolutely talk about, I am passionate about testing and how you make, make your systems kind of more resilient. So I think there's good, good conversations there. But as I was at Facebook, got to do machine learning with ads, got to do, you know, big systems, all of these things, at some point I knew I wanted to
leave Facebook and started trying to figure out what the next startup was going to be built, you know, the the MVPS of a couple different startups. And during that, the thing I kind of realized was I was missing the infrastructure that I had while I was at Microsoft and while I was at Facebook. I kept rebuilding parts or thirds of it and saying, man, I really wish I would have had that. I had it so easy. I just clicked a button while I was at Facebook and it's a team. Made my wishes come true.
The worst part, the worst part of starting any new project is all the skeleton structure and the deployment steps. You have to kind of get together just to get your MVP up. And everyone needs a database and you're all setting up the database and then everyone needs a load balancer with SSL search and right. And I was a Facebook, they're called P ES, but in Google speak the Sr. ES Sr. OS, right? So it's kind of the half developer, half operations.
And so all of those tools I wanted while I was designing a new startups and those startups weren't for me, right? I wasn't going to be the political fundraising startup person. I just didn't, didn't care in my heart and soul, but. Dude, it's hard. I can't do it either. But the common thread was, oh, this infrastructure, I have some deep opinions about it and things that I wish I had. So that kind of became the, the idea of, man, what if we just gave every, every team and
infrastructure team, like the ones at Facebook or Google or Apple, where just your wishes kind of come true because there's so much automation that you don't know how, how complex things are under the covers. You just kind of get AUI and off you go. So that's, that's where batteries included came from. And you know, Elixir has been a big part of that story. So it's been it's been good and fun. Yeah. I'm curious to like, what brought Elixir on your radar and
like what kind of got you moving towards like it's a big decision to choose your text stack and to choose it properly. And like, I feel like like an operational style platform like this Elixir is kind of a unique choice. It is, it is. I'm I'm kind of a language nerd. I like trying new ones all the time, right? I usually choose a new language and write, write some library in it on games, be it poker or Sudoku or something like that.
And so at the time actually I started writing batteries included in Rust. But part of what I want to say for batteries included is that everything's connected and all of the systems work harmoniously together. And so I was finding a lot of disconnect well is building with either rest or go between the UI and the back end parts that I was trying to tie in. So there's always kind of a a front end project and then a back end project.
And I didn't want that disconnect. I wanted to be able to say, you know, the UI self updates and gets exactly what's happening on the cluster and there's no breakages there's. And I wanted the team that's doing that to be able to kind of pick up all of the tools easily and do it as one integrated thing. And I was finding other languages really didn't and then picked up live view and being able to kind of write the same language for UI that you are for, you know, a Genserver that's watching some background processes.
It's just super powerful. So after kind of starting doing that and tinkering with it off, off we went for the last four years. Yeah, that's awesome. I will say like 'cause I, I'm a a back end dev as well and I just always hated doing any front end work and live view is like the first time I started like kind of teaching myself And it is like you already know Elixir, you understand the syntax and it kind of just, it works so nicely. You just. Yeah, right.
You just have to suffer components. If you've got components, you you can pretty much get there, right. So yeah. Exactly. There's some building that you have to do get your components to look the way you want, but that that's that's any part of a project. You've got to figure out what it looks like, how to how it's going to be smoothed through the different processes. But Elixir doesn't put any, any roadblocks up for you figuring that out. And that was super. Important. Yeah.
So I was, I was looking through like your website and your demo videos and by the like, I love your, your UI and UX. It looks, it looks amazing. But like right before we went live, we were talking about deployment and how I was like, I don't really know what I'm doing when it comes to deployment. Like, I'll get it set up. I hack my way through, I make sure things are secure enough as far as my knowledge goes. But at the end of the day, I'm trusting a lot of random blog
posts and YouTube videos, whatever I might have, you know, accumulated to get to the point that I'm at. And one thing I like with your platform is you've got you kind of remove the configuration component, right? It's just kind of like you click what you need and it's all it's all done for you. Exactly, I would say the configuration that we give is the the minimum amount that you need, right? So the while I was at Facebook,
I ran site review. So sev review whenever there's anything that goes, goes wrong. And I noticed that one of the big trends that we had is developers are the cause of a lot of outages. Basically they make a change that they don't really understand what all of the knobs do and they committed the change and the person reviewing it didn't understand how complex some of the knobs were. So there's a continual kind of all right, we'll, we'll remove
all of the complexities and ask less complex questions and generate the what the more complex configuration that runs the actual software is. So there is a continual move towards that kind of ask the user questions and those user questions can be the generation for more complex Jason or YAML or whatever. And so that's really what we do with batteries included. The UI is those kind of do you want it big or small questions and then the actual
configuration becomes much more in depth behind the scenes. But functional language is really tie quite well for that, right? Here's some input stuff. Give me the more complex output configuration code. It's easily written, well, testable, that kind of stuff. Yeah. Do you have any like good guides? Like if I'm going through and I'm just, I don't know, like a pet project and I'm using battery, batteries included, and I need like a Postgres database instance. Let's pretend I don't know much
about it. Like what's the difference between like tiny, small, large? Like how do you work your way through those kind of things? Yeah. So most of them are just different ratios. So while I was in my career, I've seen a lot of different kind of database usages. And so these are kind of some checkpoint sizes where the the trade-offs are about right. You don't want to storage, you know, that's just completely out of control compared to the amount of memory that you have
because you have constraints on indexes and inputs and that kind of things. You also don't want to over provision RAM when you can't actually store any, you know, reasonable amount of size. So these are just kind of some some good along the way checkpoints. And then if you want to, you can just flip to custom move some sliders over and choose your actual exact size. So it's good good starting points. Good. Hey, go try this. If it works for you, off you go. If not, try it yourself with
what you want. OK, how does like with like, I know like especially like obviously like node clusters and things and like spinning up new instances of like your Elixir application, right? Your Phoenix application is relatively like easy. You kind of know when you need to do it, but the database is kind of a different animal. And so do you, Do you auto scale database instances and pool size and everything or how does how's that work on?
So we won't auto scale your database. All of them are automatically in a cluster. So we can add read replicas by just pulling the slider over to the right hand side. And you can obviously add add more shards by adding more database clusters very easily. We won't do that automatically for you. The thing we will do automatically is all of them are impact on the number of nodes that your cloud provider will give you at the optimal price. So if you can say I have one,
one Postgres cluster and you slide the little slider and say I want, you know, more replicas, we will go add a node and we'll add a node in a cost optimized way where we say, all right, we have this much, you know, memory usage that we have and this much CPU. What's the cheapest way to get some nodes that will fit this on AWS or wherever? OK, cool. I will say like my limitation cause a lot of my projects that I've been part of are so small.
Like I have rarely hit the point of like really needing to dive into data loaders and knowing how to scale. So it's yeah. But that's that's most projects though, right? So most projects spend most of their time in the kind of infant trying it out stage. Yeah, a few 1000 users you don't really have to worry about much, right? Yeah, most projects you're, you're figuring out your path. Once you once you get a lot of traction and you get that hockey stick growth, then scaling
becomes your kind of top priority. But for a lot of the time, your top priority is how do I move fast? How do I build faster? How do I get things out of my way right? I don't want anything to say no to me or to say I've got to go learn, you know, a week's worth of stuff to do the next step. You want something that helps you move fast, so. Yeah. And I, like I've said, like so I recently joined a team on collects and they have, you know, 300,000 daily users. And like, so it's a whole new
experience. I'm not too involved with like the scaling aspect of the app yet, but I know that I have to be very like, very sure that my database queries are performant and all these things because you can just take down an entire app having a slow query. And those are things like like small size projects. Everything's so forgiving 'cause you don't really know. You have slow queries when you don't have a lot of data. Yeah, you, you, you have some places that you haven't stubbed your toe yet.
Exactly. But once you've got enough users, they will find those places for you super fast. Yeah. So it's been a learning experience since January for me because I've just always been the small startup, you know, build almost everything. But you don't really have to worry about anything past, you know, a thousand 1000 users if if that you know. Yeah, yeah. For me that's. Really where testing comes in, you got to be testing everything. Yeah, I'm a big believer in unit
tests and running tests because regressions are the worst thing ever. You don't want to run into any regression bugs. Yep, Yep, you were you were talking about. You're not AUI person. I'm not usually either, but we ended up writing our own kind of front end unit testing library just because I'm not the front end person and we needed some help testing front end stuff. So yeah, it's, it's a, it's a problem for us, but it's a, it's
a thing you got to, you got to face head on, I guess. Yeah, I feel like, so I, I shouldn't say this because I just said I'm a believer in testing all my projects. I've never done any like front end live view tests and it's probably a good thing to implement right? Just to at least make sure things are loading. Yeah, make make sure things are loading. And the other thing I've really found is we have a testing project called Heya, HEYYA. And it does snapshot testing,
right? So you feed it a component and then we take a snapshot of what the HTML looks like and we can then compare the versions all the time. We found that makes it easier to write those tests. Yeah, that's. Just kind of say, here's what the here's what the component usage should be, and it's really just a test to make sure that, yeah, the component works. Looks like it should look. Yeah, outputs H the same HTML
that it did last time, right. And so those like super fast ways to get some, yeah, Qi tests because I, I think I, I like UI, I don't have nearly as many UI tests as I should, but having some base ones I think helps a lot. Yeah, no, this is awesome. I'll have the library pulled up. I'm going to check it out. I'll add it to my my browser of hundreds of tabs of things that I want to check out. Yeah, the the To Do List of things to check out never, never
seems to go down, does it? No it doesn't. It just grows. So right before we went live, I asked you how big your team is as well and you it's it's a relatively compact. I think you said you had two engineers and then two like marketing business side people, right. And I think like that's kind of the trend of a lot of companies now. And I think we're going to be able to keep smaller team sizes
for a lot longer than we used to be able to. And I think like choosing Elixir and like Phoenix in our stack kind of even helps that even more. What like what is your opinion on on that angle? Yeah, For me, the Phoenix and Elixir have allowed me to kind of build up a reasonable UI base and then I can build the rest of it without having a bunch of engineers dedicated for just
front end. And so it allows me to kind of not ignore but depend, depend on the UI without having to invest in it continually. So I can go solve the business case simply, right, just the business case. A lot of that is we spent some time really kind of nailing down our components and our usability story before we started, right. So had a had AUI contractor that helped us out with getting all
of those things in a storybook. So the storybook shows how we're supposed to use all of the components, all the different options. And then that made it really easy to just kind of keep it, keep it trim small team. Yeah. Yeah, that's nice. That kind of allows you as the engineer to continue your designs versus always hiring a designer for every new feature added. Yeah, I can. I can follow the pattern, right? Here's the normal way to lay out three or four different pages. OK, choose from one of those
page layouts. Here are the ways we do different components. Put those together and it might not be a perfect design, but it's 90% of the way there, which allows me to kind of get the feature built, get out the door and then say, OK, now I can go back and put some effort in it after I've got users complaining to me and telling me. You're like a pretty feature rich platform already. I feel like what, what was there? Like what, what did the MVP list look like for you to like
officially launch? Because I feel like like where like what do you choose is like a necessity in a system that has to help you deploy everything. Yeah, mostly it was dog fooding, so batteries included. The MVP was basically the the MVP of being able to launch batteries included, so mesh networking, load balancing, post graphs and being able to host a web application and connect all of those.
OK, That was kind of the the minimum requirement. And then while I was at Facebook, I was kind of on the PE team. So I also needed monitoring. I needed to be able to figure out where I broke something. Show me, show me a graph of what's going on. So that made it into the MVP. Maybe it shouldn't have, maybe that was a little stretching the MVP definition. But yeah, that was that was kind of the continual things that I needed before I would go live. I I wanted to go live on my own
platform. How? Yeah, I love that. So batteries included uses batteries included. Indeed. Our It's like an inception. We, we had to put in a special little, little case for the link for our home. We have a home where you can go see all of the installations and how they're running and their current status. OK. Because our home points to itself, we had to put a little a little inception link where it's like all right, but the internal one, this is just hard coded
'cause our link is onto itself. So you can't just redirect back to 127. It actually is itself. Go Yeah. That's awesome. I like the. So I always find it like an interesting like monetization model when you have like the open source project, which is good, right, But then like to figure out what features you charge for 'cause like like open is a good use case as well. Like I feel like they do it
really well. What, Like where did you draw the line where you can like allow people to love your product, use your product? And then how do you like, where's that cut off when you're like, OK, but now we have to charge for these features? Yeah, it's a great, good question, one I'm super passionate about. So before Facebook, I was actually at a company called Cloudera, which was an open source company that did Hadoop and H Base. So, you know, an open open
source projects that you're trying to, to give away, but also they're trying to charge for. And I really, I found that that kind of dichotomy of what features you charge for inevitably sets the developer community and the company in charge of the project at A at opposites. At some point, the community wants to make your project easier to use.
They want to make it simpler, but you, you have some simpler, easier to use features that you charge for. And so that is then something you don't really want the open source to become too easy. And I saw that just kind of strangle projects. Hadoop's definitely one that I think got strangled that way. You can definitely see the kind of how do you keep the community happy?
Is is a hard choice. So the way I think about it is I want batteries included to be the the Robin Hood of infrastructure. I want to give to the small companies, I want to give to the small developers and I want to charge for the larger ones. So our our licenses is free forever for smaller clusters. So if you're on three machines or fewer, you're free forever, and it's part of the license.
And I feel like that's a pretty like generous free tier, like 3 machines is a decent. Size and honestly we're not charging right now for so we won't charge for probably even higher than that. But you know, part of the license is 3 yeah you get you get three of your you know server grade machines at your at your office. You can you can grow for quite a long time on that. But if you get bigger than that, charging some amount per hour on
how much your usage is, I think it's kind of a, an easy path of going from, OK, there's not a big wall, there's not a thing you hit. But also you do want continued development in the platform. You do want the projects that you're basing your company on to have a lifeblood, to have people that are loving it and caring at it. So trying to find that balance where you can give to the small companies, the small teams, the engineers, they're trying it out
while also as things get bigger, bigger companies and bigger, richer companies have to pay more of their share. That was at least what we're trying for. It's a real hard balance to get. It, it is hard, but and also you need to make a living and you don't want to be scraping by like because you have an awesome product, right? I do. One thing I really like about that too is you kind of you get your foot in the door with developers as they're learning. And then when they get hired by
bigger companies, they might, you know, implement your platform at the deployment level. And that like I feel like that's a, a smart strategy, right? Yeah, also, I, I want to be really upfront early, right? I think a lot of these kind of open source, it's free projects. They know that at some point they're going to have to start charging. It's not going to be free, right. So I want to be open as much as possible, give code back to the community as possible, while
also being super transparent that like someone still has to pay for this at some point. So this can't be free forever. So there's no kind of gotcha moments. There's a, you know, it's coming. If you get big enough, you will have to pay something. You're not surprised, but it's still coming. Well, it's smarter to launch that way too, versus adding the paid tier after you open source. That's when you get a lot of angry people, especially software developers. Software developers really like their free projects.
I don't think it's actually just software developers. If you go look in kind of the psychology, one of the huge things is the anchoring principle. So your brain when you see something for the first time, puts it away in a bunch of different filing cabinets kind of by category. And one of those categories is how much does it cost? How much is it going to take from me? And moving something from the this is free bucket to this is a very expensive, is a really hard
thing to do. It's it's why everything is $0.99 because they're hoping that goes a lot closer to the free bucket. So this is kind of a thing that, you know, humans just are susceptible to. But then we give away open source software, and then two years later, the team comes and goes, yeah, it's open source, but now I need money. And that kind of transition from one bucket to the other is super, super hard. Yeah, and like, I get it, it's painful cause like one, we all
like, you know, the free frameworks and libraries we can use in our own projects. But you also understand like the struggle and developer aspect where you know someone's just trying to put food on their table and you don't want anyone ever in a situation where they're not making a living. Yeah, but you still want the ability to go try things. You still want to be able to go experiment, to go poke at, to go learn, right. So it's really hard to walk those balances, to give everything to everybody. Yeah, it's a soft software licensing is a hard, it's a hard
call for everybody for sure. It is so like me, I, I have a lot of like small little like you know, 1 droplet projects that I work on. What is like a like, how would I go about taking, you know, batteries included for a test drive? Like is it difficult to get up and set up? Can I use digital ocean droplets? Do I have to use Kubernetes? Like how does that all work? So we are Kubernetes under the
hood, but to use us it's it's super simple. All you need is a machine with docker. Right now we work best on Linux machines, just docker on Mac is is sometimes. I only use it for a local environment when I use docker, but I use docker on my Linux boxes for all my projects, so that's good to hear. So we have AUI that you can go to and you can choose where
you're going to install your your installation and we'll start the Kubernetes for you in that location. So if you're just on your one machine, you say, hey, I want I want to try it as a local instance. We will start Kubernetes in Docker. It's called kind. Then we'll start all of the open source projects inside that environment and then we'll give you kind of AUI click Click to that same software can also go install on AWS where we will spin up a load balanced, you
know, on demand Kubernetes cluster for you. We spin up wire guard in there so we can talk to the installation without opening everything to the world. And then you can turn on Oauth, you know, if you're in a production environment and use that as your your single sign on. So you can kind of go from your local box where you've got it on kind and a local desktop to install it on cloud provider, AWS, that kind of thing.
Or if you've already got your own Kubernetes cluster, right, you've got your machine somewhere we can just go install on top of the Kubernetes that you already have. We kind of have the whole, the whole gamut of you can go from single developer box all the way up to host it yourself on your on your cloud. OK, nice. That's awesome. Yeah, I am. I'm definitely going to give it a little spin. I think it's worth trying because like I said, I hack my way through DevOps. Yeah, it's it's kind of fun.
So we've got a a whole set of development tools for you and then hopefully all of the things are automated that you don't have to to know them. So we put all of the dev OPS stuff in the magic tab. Hopefully it can be kind of like the The Wizard of Wizard of Oz isn't. It really called the magic tab. It really is called the magic tab. Hopefully you don't have to go see where the magic is the the guy behind the curtain never gets found out. But the the secret is, it's all just a bunch of open source projects behind the magic tab.
OK, that's cool. Yeah, No, I love that. I love that It's the magic tab. It's the magic black box that just works, you know? Yeah, yeah, all the tools are there for you, but hopefully it's automated enough that it feels like magic. Nice. I love that. Yeah, that's cool. I'm excited to give it a try. Let's see. So all right, I know you mentioned, well it's an open source project and I you believe it to be one of the largest
Elixir code base open source projects, right? Like you said, it's over like 100,000 lines of code or something. We're, we're, we're fast approaching I think 300,000 or two. 100,000 OK, that's wild. Yeah. How have you found it like scaling that size project with Elixir? Have you ran into any like roadblocks or like really like hard challenges that you had to kind of overcome and like any
crazy experiences? Yeah, I think the there, there's definitely a bunch of bugs we ran into kind of early on with Umbrella projects. So kind of compiling umbrella projects with with a bunch of protocols and a bunch of different things wouldn't always update. So you'd add a field in one project and you wouldn't see the Jason encoder for that. So like deploying a project that
has the umbrella structure, Was it difficult? Yeah, just there were there were a bunch of bugs around kind of handling of that and you you end up having a bunch of extra mix cleans and before your compiles and those kind of things, just a bunch of little stuff you had to go kind of stub your toe on. The other thing I'll say is we've had a real hard time. You don't don't use many macros, but when you do it, it really
throws off kind of all of the tools, right? You you don't have where is it defined? You can't rename things. So macros and kind of the source code tools, they don't always play so nice together, but that's our. Yeah, yeah, I I recently just released some videos on my YouTube channel for like building a small like DSL like manually. And I like to this day I always have to like refresh my memory.
Like I think it's one of the hardest things to write ever. And I always confuse myself as I write a macro. Yeah, we've got ADSL basically for defining resources that go into Kubernetes. So, you know, you can think we're built on top of Kubernetes and a bunch of open source projects. So we've got to create those resources, configure them, update them, we want to know what version we're on, all of those kinds of things.
So we have a DSL just for that. But then kind of saying, all right, go from here to this calls a function to I want to rename it to the thing. And when you've got a couple layers of those DSL like macros, yeah, things get a little a little hard to navigate. So, so code base, you've got to kind of got to learn to navigate it a little bit. Yeah, yeah. Well, I mean any code base, especially when you start approaching like that much code,
it's it's hard to know what's going on everywhere, especially if you are a new developer entering a project of that says. AB absolutely. Yeah, you've we've, we've got it split up into a bunch of different projects in the umbrella project. And hopefully the, the thought is that you can dive into one of them without having to learn all of them. You know, you can get some, some silos you don't have to dive deep into.
That's that's always the hard part of the more code you have, the more code you're you're carrying around. You're you're paying a cost for all of your code for sure. Yeah, that is true. And yeah, like, as like a new developer, well, the new developer joining a team of with a large code base, there's so much going on, you don't know until you have to dive into it or you break something and then you have to go fishing. Yeah, we've, we've been
investing a lot in the past, you know, three or four months into integration testing, So getting a bunch of Wallaby stuff that will make sure that all of the stuff works, right. This transition to this one is, isn't broken just because a lot of those were, were knowledge that, you know, the 2 developers all had between each other. Hey, you checked that thing, didn't you, before we made our last release, right? Those are the the kind of knowledge that gets gets forgotten over time. So you gotta make a unit test,
gotta make your company. Yeah, yeah, yeah, yeah. Breaking tests is the best, right? At least you know your feature doesn't work. Yeah, well more I'd I'd much rather run in run into it as well. The pull request is getting merged then I will in in production you. Will find it in production, but it's a lot more stressful to find a bug that way. It sure is. It sure is. And I've, I've been there, done
those sleepless nights where you something's down. I don't want to do those anymore. I'm curious. I I'm always curious by how people set up like their development environment through staging, through production one. Do you have a development end staging or is staging kind of both? Staging right now is kind of both. So we have a staging dev environment and a prod environment, and then we have your local development
environment. One of the nice parts is because everything for us is on Kubernetes, we spin up and down full environment so frequently that our we don't find much drift between prod and staging that that's one of the kind of cool things of being completely containerized there's. That is. That is nice. Yeah, yeah. It works in one place, it mostly works in another. I used to be like what?
Well, one I think staging should always like be almost a mirror image of production, right? But I also I'm I'm seeing less and less of a a use case, especially if you are heavily tested for a separate development environment. Yeah, the only reason we we need one is for upgrade testing. So for upgrading, you know, we had version whatever of a database. The new version just came out
and we automatically have tools that will upgrade you from, I don't know, 18181 to 18 four or whatever. We want to make sure that those tools get tested on a place that has had data written to it for a while so that we can test that upgrade. So since we have so many kind of data tools, we need to have that kind of old testing environment. Other than that, integration testing mostly handles our our
use cases. Yeah, yeah. That's nice. Right. And our integration testing includes integration testing the tools that we're starting up, right? So it's the control server can start Grafana and you actually can get a graph from Grafana with data already there or you know you've got the TLS certification that fully comes up for your application. We make sure that too.
Right, so the. The integration tests that we're writing in Elixir aren't just for our system, they're for all of the systems together. So everything going through your system? Everything going through our system, yeah. So we're we're writing integration tests for not not Elixir code in Elixir. Yeah, yeah, that's awesome. So you just know it works better since the test is written in Elixir, you know? Exactly, exactly the end. The end result was Elixir, so it has to be good. Like so I'm curious now that
you've built a whole platform and you have all this Elixir experience building it, do you, do you ever want to leave? Do you do you enjoy writing other in other languages still or do you find it more difficult? I don't know that we want to leave for sure. I like Elixir a lot. It's also really hard to beat
huge communities. So every once in a while, the rests of the world, the goings of the world, just have a community that produces something super cool that it's hard to to look away from, right. So, you know, the performance aspects of of Rust sometimes are hard, hard to look away from. The just community of Kubernetes developers around Golang is sometimes hard to look away from. So I think the only thing that
can really pull us away from Elixir would be, you know, projects that can't be replicated because the community has done such cool work in other languages. Have you run into the need to do any of the like nif stuff in Elixir where you have to write little aspects of your app in in say Rust with the rustler or something like that? We have a few that we depend on, but we haven't had any that we have to write yet. We we have some that are going
to be coming up and unfortunately I don't think we'll be able to do it. And if we're going to have to shell out to another, a lot of the, yeah, a lot of the stuff for Kubernetes is written in Goang. A lot of the kind of cloud related stuff is in Go. So if you want to deal with AWS and you want to deal with GCP and you want to deal with Azure, the best set of libraries for those kind of only exists in Go. And I would love to be able to
write a NIF for that, but haven't been able to find a way to do that. Yeah, Do you? It's like that I was kind of a well, I think it's awesome that you wrote everything in Elixir. But like, yeah, the go to seems to be always go Lang for at least like platforms like this, like yeah. It is, it kind of is. So, you know, there, there's some some stuff right now where we had to write it ourselves and then there's other stuff when we
get there we'll have to shell out to somebody else, to some other. Do you feel like the the hurdles are worth it or is there any regret ever not going with Go? No, there's no regret. The, the end result of Elixir just makes us build a better product because we spend so much time in the language that's writing the UI, It means we care about the UI more, right? We're not kind of saying, oh,
that's tested in some other thing. So I don't worry about it. It makes us, it makes us a better engineering team. So I I wouldn't trade that off. Yeah, the I, it was funny, before I started writing like with Elixir and like using Phoenix, I was a big believer of like separation of projects that like, you have your API that sticks to itself, you have your mobile apps, they stick to themselves, and then you have your web app, right?
And I, I, I 'cause I always thought like, well, if you want to update one of them, you'd have to rewrite your whole system if it's all like kind of entangled. And I feel like I had a Joe say on like way back when. I feel like it was like almost a year ago now, but he made a good point. He's like, if you're already considering like rewriting any aspects of your app, you're probably doing a full rewrite anyways. And I feel like, like since he said that, I was like, yeah,
I've never not, I've, I've never just rewritten parts of an application, you know, to make it not like to make it feel like you're entangling your front end and back end. If you rewrite your front end, you probably are rewriting it in such a way that's gonna change what data and in what kind of chunks and formats you need it. So you end up rewriting the API even when you rewrite the front end. So at at some point there's some motion no matter what, right?
And so for that motion to just be, well, my module over here got rewritten, that's a lot easier than I added a new API V3 and I added controller tests and the new stuff got written and shipped. So now the, you know, mobile dev can start using a new VV whatever API, right? There's just a lot less friction in making those changes that even if they're entangled, that it still ends up being better. Until you open up your API to the public and then you have to
backwards maintain everything anyways. Yes, well, the whole the whole batteries included platform also has an API for all of these things. So while I'm saying that, I'm also writing those tests and all of. Those things. But yes, yeah. Like when you keep everything in house, everything's nice, right? You can immediately deprecate things and it doesn't matter ever. But then the second you have all these separated concerns, now you have to have your backwards compatibility for everything. As soon as someone else is depending on you, they're gonna
they're gonna find the ways. Yeah, as soon as you give it to somebody else, something you thought was just an internal development behavior will become absolutely depended upon and can never be changed as soon as somebody finds it. For sure. Well, even just like writing your own mobile apps, you know, like it's crazy how many people don't update their applications on their phone and then you have to maintain, you know, your compliance for you, you know,
who knows how many versions of your app now. Yeah. So before I was at Cloudera, I was at a company called DNA, which they purchased the company I was at which was Ngmoco. So we did iPhone games, you know, the farming type simulator games ruling the country type simulators. And that was something we had to figure out for analytics was we had to put the version for every event because we just had so many where it's like, all right,
we're still seeing this bug. We're still seeing this happen. Is this because the version is just not deployed to everybody, or did we not fix it in Pride? It's super hard to figure out when you're not in charge of what version everybody's running. Yeah, that's wild. Yeah. And, well, games, games are even a different animal, right? Like. Danger, different animal. And then the behavior of people updating is different continent to continent, right?
If you're in Africa, you probably don't have much mobile data, so you probably turn off all of your updates and things. If you're in the US where everyone's got 4 or 5G, you don't care. It's downloading whenever it's downloading. Right. Just do it, yeah. Yeah, you're in Japan. Japan actually, their cell phone contracts include money to spend in mobile games. So they're not just auto
updating, they're wanting to spend money on the latest and greatest. So just the way people see your project is so kind of localized and they all have different experiences. It's, it's a real thing to figure out as you're, as you're deploying mobile, you got to figure figure that people aren't going to be like you while they're experiencing it. Yeah, that's yeah, that's so wild. Yeah, I used to be an iOS developer like full time. Now I dude, being on the back
end is just so nice. But yeah, like the whole localization aspect and having to kind of change, basically you need sometimes different UI versions for each continent that you're on to match the culture or no one will use your app, which. Yeah, exactly. Which is wild. Yeah, it's actually something I haven't haven't gotten to yet at batteries included is kind of the localization, but yeah, localization of Phoenix projects
and that kind of stuff's coming up on our on our road map coming. Do you think it'll be like, do you think it'll be that big of a hurdle being a tool like continent to continent or more just making sure things are translated properly? More that things are translated property properly. There's a lot of differences in date and date display. So showing people, you know, when things happened, what the ordering is.
People have expectations, you know, right to left, left to right. You know, those kinds of things become kind of important when you're talking about time zones in different countries and, you know. That's true. Those Europeans, they like to mix up the day and the month, you know? Yeah, yeah. Or, or we mix it up. I don't know. I'm somewhat convinced. I, I prefer, no, I just prefer to say we, I like, I do it the
right way, you know? I, I I. Yeah, for sure. Whatever way I'm used to is currently the correct way. Don't make exactly something else. Exactly. Like, wait, what? Oh man. So we'll have that and then, you know, pluralization of things is always is always fun. So go figure that out. And then British English with all their extra letters. Or do we have extra letters? I don't know. Nah, we we definitely dropped a bunch of letters, our spellings,
my spelling. Yeah, exactly. Fast and quick, maybe not perfect. There we go, that's what I rely heavily on. Auto complete. Exactly, exactly. That's that's why I type things rather than handwriting things. I got. That second chance? Penmanship is another story. Not only can you not read it, nothing spelled correctly. Yeah. The keyboard lifesaver. That's funny.
But yeah, I, I feel like, like localization is something you don't really think about when you're, well, you should think about it, but it's something that it kind of gets put on the back at. Like you will worry about it when we have to. But in a lot of like UI design and the way you implement things, you kind of have to at least know to be prepared for it at the beginning stages of your application. Yeah, you absolutely should be keeping track of it. I I wish we've done a better
job. The other thing that kind of caught us up that I wish we would have done a better job of is thinking about light and dark mode. So those kind of design considerations as you're building things, you, you go most of the way through and then you go, OK, now let's now let's try it in dark mode and suddenly things aren't readable. You've got to, you know, reorder things. There's a lot of those kind of considerations that would have been easier if I thought of
them. I just don't know why dark mode's not the default. And you know, I always question people that are using light mode. I'm like, something's off. Can I trust you? Fair enough. Fair enough. Yeah, I mean it. It just means you get to design everything twice, right? That's true. Yeah, I feel like a lot of like UI libraries are making it easier and easier to to make it more of a toggle with like the
color palette that you use in one mode or the other. But there's always that instance where it just doesn't work. It doesn't look right. You can't read your font on the dark background or something. Yeah, yeah, We ended up just having to do our own component library. We couldn't really find a AUI library that we that we liked. There's a couple of them that are starting to pop up in the live view world, which is exciting to keep an eye on, but
I feel like they're all kind of in their infant stages. Yeah, there's some that are definitely farther along and we used some of those for a while. One of the problems we had was bundle size and just kind of size in general. If you're using Tailwind, it, it culls the amount of CSS that you have based on the strings that it can find. But if you're using a component library, that component library
probably has every component in there and you're not using all of them. But Tailwind will see those as possible used styles. And so you end up with a giant CSS file because some of them are referred to in some spots, which meant we were shipping, you know, like a four Meg CSS file. Around. Because they're the bigger component libraries use just about everything. Right.
And you're not implementing them all, but they're there. But they're there. And so it would never kind of tree shake those out. So figuring, figuring out what we were using, what we weren't, and then we are having to, you know, finagle off on our own kind of at some point, but all right, just make our own component library and off we go. Yeah, yeah. Well, once you kind of have your project laid out to you kind of know your like what components
you're going to be reusing over and over. And I feel like to build it once and then just make it a nice component is not too difficult of a task anyways. Yeah, well we have multiple different Phoenix applications inside the one umbrella app, so we had to pull out a module that had all of the styling and sizings and the different options anyway that can. Be used across all of your. That can be used across all of the different projects 'cause we want a button to feel similar on your control server and on the
billing server. Right. Right. So by the time we're doing that and we're making our own wrappers and we're doing the sizing in one place. You didn't want to do it. You didn't want to just keep rebuilding it and all of the projects. Yeah, yeah, yeah. But once once we got that, even someone who's a back end developer like me can still put together AUI pretty fast, so. You know how to call your components? Yes, exactly. Exactly, I can follow the example, call the components and they all look look right.
Yeah, that's not that is like once you like have a see honestly like the setup of all like beginning projects, it's just like so much work to get everything the way you want it And then once you have an established project, things are just beautiful. Hopefully once you've picked the path and you're just kind of walking the path. Yeah, it's like getting your your like test suite set up too, Like how you like the flow of all your tests, how your like
maybe your data factories or whatever you're using to create mock data, just like getting that stuff in place too. Once that hurdle's done, it makes life so much easier. Yeah, once, once you have a few tests that kind of show how you how you need to do it, it's much easier to keep those up than to. Build back from. Scratch, yeah. Instead of thinking about needing to start testing when you've already when you already have a working project. Yep, Yep, Yep. Now that the tests, the tests
need to be there, but sometimes, sometimes are pain. Are you a Test Driven development or just have a test that covers things well? I just want to test the covers things. Well, for me, I, I will pull up a test when I'm figuring out how it should work. Yeah. So if I'm, if I'm struggled and I've, you know, worked on this same piece 3 or 4 times, I don't really know the shape of it what the API should look like, then
I'll start writing a test for it just because I know I'm, I'm digging around in an area. But for UI and those kind of things, I'll have to do tests after the fact, right? I've, I've tried it myself. I know it works now go automate the tests. Yeah, I can't do the test driven for some of those things. I just. Well, that's a little harder too. Right 'cause UI you want it just to look a certain way and once you're happy then you write a test to keep it that way. Yeah, I'm, I'm playing around until I'm pretty happy and then
once I've once I've played around, then I want something that shows that it's still working. Yeah, but that experimentation I for you, I at least I don't find is very fast if I already have a test. Yeah, but that's, that's why we have the snapshot testing library is because I want to just kind of play around, play around and then say assert that it looks like this from now on. And I'm I'm done. So you can also snapshot tests
on live view. So you can say like go to this live view page, click these things and then assert that, you know, some CSS matcher has the same contents as what it's supposed to. So that's that's kind of the way I write UI tests is just assert that it still fits. I think that's all you can do, right? Like you just have to make sure it's there and it's in the order of the way you want it, right? Yep. Yeah. Or got there at some point.
I'm always like very impressed like at least like from the logic end like when like with back end dev, like I understand test driven development a lot right 'cause like you know what you want. I still can't do it. Like if I'm working on something really difficult that I'm struggling with, I'll do the same thing as you. I'll do the test driven development style where you write the test the way you need the output to be and then you go. But I usually go back and write my tests after but. I find that I have a lot better
ability to kind of write tests earlier, the better my tools are for changing the source code. Like for a while I was at Microsoft and we're doing C# inside Visual Studio. It's much easier to kind of reorganize things because I could just click a button and rename it across a whole code base, right? I can click and drag some things into just another method and C# and those tools just kind of make a new method and everyone calls that code automatically.
Whereas Elixir doesn't have some of those kind of nicer LSP stuff. So I don't find that I can do those as much because I don't want to have, you know, 20 or 30 tests that I've got to go copy and paste the new method into. So I do less of that kind of changing along the way. Yeah. C# that's that was another favorite of mine, but I haven't written it probably for like 6 years or even longer, but that that was a favorite.
Yeah, I was on the.net team, so helping write the the.net C# and WPFUIS. So for me it always, it'll always have a a soft spot. It's those developer tools are kind of almost second to none. It's hard, hard to not have a soft spot of when you got to write with those. But yeah. Yeah, I way back when I was building like a learn to code platform, it was called Dev
Slopes and we had like all these video players for everything. And our Windows version was, yeah, it was, it was C# and I miss writing it. And then I also did some like Unity stuff and I believe Unity is C#. I can't remember, but I always enjoy writing it. Yeah, it's it's another cool language. I don't know, There's the the people behind it. Anders is is super smart so. Yeah, yeah.
And then there's languages that I don't ever need to touch, and Java and JavaScript are two of them. And I still have to use JavaScript unfortunately, but I wish I didn't have to. I so I had I had a time as a professional Java programmer. You know, the language is pretty verbose, but the, the actual JVM itself is, is nothing short of a technological marvel, right? It's, it's got the best of everything. Like it has the best garbage
collector. It has some of the coolest multi threading stuff. It's it's an ugly language that I'm glad I don't have to write in, but it has some super cool stuff for sure. I feel like, like I'm probably like, yeah, a little harsh on it, but it is mostly because it's an ugly language. And I was, I dropped out of getting my master's degree because of Java. OK? That's all that they taught in. And I was like, I can't do this. Like I wanted to do something
more modern and I had projects on my mind and I wanted to build them. And I was like this is slowing me down. Well, Java also encourages a lot of the kind of developers who are going to over design right the the slow to actually write the code. Let me write all of the boilerplate first. Let me think about the object tree before I actually start building anything. So, you know, I, I get the hate for it, but you know, more, more I think just the the older I
get, the more every language has its thing that I can complain about if I've used it professionally. Of course has something where I'm just like, but that is so annoying. Yeah. Just kind of you get used to them, you know, their kind of their personality. Yeah, well, yeah, you can get used to, you know, having the shitty part of your job that you're just used to, you know how to handle it. It's a a broken tool, but it still gets the job done.
Yeah, but every person who is it like true crafts person has some way to complain about the tool that they use day-to-day, right? It is always if you if you want to ask and listen for 15 minutes. At some point one of us will say, but I hate this part of this tool. Well, like if you want to talk about a tool to complain about like being like an like an iOS developer for so many years, it would be X code like 1. Like X code has like so many amazing things but it's such a bloated, slow, just giant tool
that is going to take up half your hard drive but and suck up all your memory but. That's the way you know you really did it is because you have those complaints, right? You have those things where it's like I stubbed my toe on that often enough that I will never forgive it. Ben in the comments he goes. People get used to prison too. Doesn't mean you want to keep living there, that is. True. All right, that's fine. Yeah, maybe it's a little bit of a coping mechanism.
I'll give them that. But they're all are also like aspects I've miss of of X code, like with a lot of their like now I'm going blank. But they're like memory leak tools and all their like built in tools that just like work phenomenally. I mean with you know you have to have a lot of RAM to support it, but I mean if you already are running X code, you're you're good. Yeah, I mean, I miss C++ fuzzing.
For me, that's one of the tools I really being able to kind of say here's a unit test or a test, go throw stuff at it until you've got 100% coverage, 100% branch coverage of something is just super, super cool for kind of Peace of Mind and there's. Nothing cool. Is there anything like that for like Something like that for X unit tests would be so cool like. There are some property tests
that will generate somewhat, but my understanding is that they're not coverage based, so they don't really have any insight into whether the next thing made you go deeper into your. Code. Well, that's a problem and. It's hard. Like when you do like, when you only solely focus on like code coverage with your tests, I like, but are your tests like, are they high quality? Are they actually testing through edge cases? That's like, like that's what we need a measurement of, right?
Like how many good tests do we have written? The way I've talked about it before, but you need to think of your tests and your unit test as a system. Just like you think of your, your database or your whatever. They're a system that's running and giving you something back. So you need to think about the return on all of your unit tests, which ones are the ones that actually flag things being
broken, right? There's almost always a set of, you know, 10 that these ten will catch 90% of all of the real bugs, right? These are the 10 tests that mean production is well covered. And then there's a bunch of other ones. And sometimes you need to be pretty ruthless when the other ones become flaky or they become more effort to keep them around than you're getting back, right. So the the test that you wrote 10 years ago, just because that
code is still there doesn't mean that you're getting something back from it. For those ten years after the code stopped being interesting, maybe you'll still need those. But if someone goes and touches that code, you want to know if that test is going to fail. But do I, if it doesn't actually get used in production, right. If it's if the other 10 show me what actually I care about? Yeah, Yeah. And then I have to spend keeping up some library to the behavior
that it was before when no one's actually using that library. There's a lot of stuff where people just don't want to break it without actually seeing whether it's still used, whether it's how do. You feel like, you know, like when you like if you have an ecto schema and then like work your way out, like context files, maybe controllers, maybe graph resolvers, whatever you might be using. What is your feeling on? Do you test at every part of the
way, or do you just care about the end goal of where you're interacting with that code? And I'm more about where's it getting broken, right? So I want to know the places that it's getting broken often and make sure those are really well covered, right? So I care a lot about whether it's broken for production. So I want to have a good set of kind of integration tests just before prod, right? The the pre prod push is good. The integration tests of the
version that's about to get released are good. Those kind of tests I care a lot about the along the way I don't care as much about until I see that, you know, that library over there has been a problem 3 or 4 times in the last thing that we've done. Cool, now I need some tests around whatever that layer is. So I I see them more as a thing you add when you see that the area is having problems. OK, Yeah. Fair.
And then I feel the inverse for you've got to do that for the tests, kind of cull the tests that aren't showing you something that aren't used very often and are just kind of old and crafty. Yeah, but they make your code coverage look better. Yeah, they they make you feel better. You get a warmer fuzzier when the number is bigger. Do you Do you know what your code coverage is? And is it a? Is it a high braggable number? Or it's 60%, but it's 60% also
because Elixir has a problem they won't report code coverage across applications. So when I really when I have an umbrella project, you only get coverage for the unit tests of that project. Oh, right. Yeah, yeah, yeah. But a lot of my like common stuff gets tested later on right? The web UI calls to get the actual thing, whereas in other
layers those codes just get mocked out, and so the only place they get seen is in the web layer. But the web layer's a different project. So yeah, I think we're probably closer to like 80%, but their reported number is 60%, so it's fine. But where the heavy lifting is done, you have your code coverage. Yeah, right. We have a full 100% on every screen gets full integration tests, which means that you know the schemas get tested, but I
don't know some of the reported for some of our echo schemas is like 20% of it gets touched. Yeah, I know that's not true, but do what you got to do. Do you have with batteries included? Is there like a like CICD stuff or would you still like lean on like GitHub actions and things? I would lean on GitHub Actions. Main reason being it's super
super hard to integrate CI into production without having big giant gaping security holes. So having a. Having a kind of separated environment that does your build that does your test and having that be separate from, you know, where you move to production, it is is good. I don't, I don't, I don't trust that there's not some downstream that's not gonna leak something. So being able to test that, it's
good. Yeah, that makes sense. That does make sense. Test and build before you push to deployment or. Yeah, the way the way I kind of think about it is go all the way to where you'll tag a Docker OCI image. Once you've once you've tagged it, then you're pretty well set with what's in that code. Then you can go run it in your dev environment. You can go run it in your pre prod environment there, but the kind of unit tests and stuff should be off off somewhere
else. Yeah, yeah, that makes sense. Yeah. Let's see, I have a list of things that I got scattered because I feel like I didn't go in order, but that's all right. Oh yeah, all right.
Can can we just talk about the your like, we don't have to go into detail, but I like I want to touch on like the features you already have on your platform from a very high level, like just like spinning up post grass, whatever it may be and lane. Like what does your road map look like? What are you excited about adding and what features are like up and coming? Yeah. So right now we have, we'll spin
up Kubernetes, whether that's in your cloud or on your local machine. Then we'll start up Istio, which is mesh networking and a Postgres database and a control server UI. And then from the control server, you can spin up your own Postgres, your own Ferret DB, which is Mongo DB on top of Postgres. So you can do Postgres or Mongo DB. We've also got Redis, so you can spin up Redis clusters or Postgres clusters. We've got a full monitoring
stack, so you press a button and you've got Grafana, Victoria metrics, all of the different scrapers. I do, I think that's, so that's like, so I, I think it's important to have in your MVP like because having metrics and knowing what's happening is so important. I just want to know where I've messed things up, right? Like we've talked about all the different ways, but we're all human, right? I test all of my things. I do all of those, but I, I need to be able to fix it. So we've got that tracing also available and then we're
starting to get the one click self host AI stuff. So we've got ALM hosting, embedding, model hosting and then Postgres can also we start up a vector database for you. So PG. Vector. Right, So you can do the full, you can do the full rag stack where you input your documents, get an embedding, put it in Postgres, send it to O Llama hosted model.
So you can keep all of your Lol without giving all of your data away to open AI and then a full set of debugging tools. The the new features that are kind of coming are all about setting up those projects with kind of those base tools in ways automatically, right. So we'll get a button where you can say I want a rag stack and you get all that's cool if you're from Jupiter Notebook, all with the, you know, password
set up and the environment variables in Jupiter Notebook. And all of that will be set up with one click. Now my question is why aren't you using Live Book? 'Cause the the real world is mostly using Jupiter notebook. If you go talk to most, most data scientists, they're they're. Using, they're all. Of course they are 'cause they're all using their Python And Jupiter. Yeah, Python. Python's just winning the ML world.
And so, you know, I'm, I'm kind of pragmatic and I will, I will push the things that I think are better, but only to a point. I'm not gonna tilt at windmills and Jupiter notebooks winning that one, so. Yeah, fair enough. I have to. I had to throw a little shade at you. Absolutely, Yeah, no. So right now we're working on kind of those sync things where we'll have some projects that are pre set up. You know, we have K native, which does serverless web
hosting, right? So it'll spin up and down inside of Kubernetes all the way down. So setting those up where you have, you know, here's a web application, it's got database and server lists set up for you. And you know, here's the rag stack. Here's all of those. That feature will also be how we do deployment from pre prod into production because each of those productions will have or each of those projects will have a way to sync from different clusters to the next. That's cool, very cool.
Just the easier the better. Push a button and have your app up. And also push a button and copy the what's running in production to your local machine, right? So you want to debug something, the project that's up on prod? Take a snapshot of it, pull that exact thing without the data, but the exact here's all of the configurations, here's whatever on your machine, go poke around at it, right?
Get it, get it working. Take a snapshot, push that snapshot up to production. Production can import that snapshot with your change and off you go. Oh, wow, that's nice. That's. Yeah, I'm excited. I'm diving into this. I'm gonna. So that that feature is I'm I'm currently working on, we've talked, we've talked today about UI and stuff and I'm not AUI developer, but I'm working on the UI of all of that. So yeah, that one's to to be done soon. My dirty little secret that's
not so much a secret anymore 'cause I talk about it all the time. But Claude is really good at UI design, OK, And like it will do like Tailwind and everything. I'll like ask it to like, you know, tweak a button for me and it, it, it does a pretty good job. OK, OK, you might have to keep it in line with like writing too much like Tailwind classes and things and like, hey, no reuse this 'cause we already have it written 'cause it's really good
at just writing more and more code versus reusing code. So as long as you keep a, a handle on that, it's pretty good. It's. Eager it's. Yeah, yeah. Yeah, it is. OK, my last last few attempts of AI writing code have all all failed pretty badly, so maybe it's time for me to go try it on some UI code. Yeah, I like I've, I've, I've experienced it where it works really well. And I've also had experiences where it's just like, dude, I'll write like, I don't want to wait
for you to like reply, so I might as well just write the function that I know how to write. But I think, batteries included, the project itself is getting too big and it just hallucinates. Oh yeah, that's a problem too. Like you have to be so like focused on what you're working on. So it's like that's that's hard with big projects because you can't be like, OK, but I also have like this helper module, this module here, here and here. Pull it like it doesn't really know. It's hard for it to like go out
of scope. Yeah. And when it goes out of scope, it's pretty confident and just call this function and you're like there is no function like that I. You made that up bro. Yeah. Yeah, I do. It is. It's definitely a lot easier to use AI on small projects. Yeah. Yeah, I've found. One of one of the business people was showing me it's like, yeah, I built this with AI in in like a week. I was like, man, that that's pretty, pretty killer, right? Going from zero to 75% of the
way is is pretty awesome. And then you kind of hit your wall, right? Like 'cause so I wrote like a, a, like a web scraping like browser extension that basically just web scripts, certain data, gives you some stats back. And it's a small project, right? But like AI actually wrote a lot of like the annoying code like where you have to go look for the specific division that you want to grab.
Like I was just like feeding it the source code and that moved really quick. But it's also like a small like pet project that you know, it knows the entire code base because it's only a few modules large, you know? Yeah, absolutely. Yeah. But it can be helpful for things like that. And I do find it helpful for like rubber ducking, like especially like when you're working by yourself in an office, you can be like, hey, what's the best way to, you
know, go about architecting this feature? This is what I was thinking. And then it will, you know, you're just talking to yourself, but with some LLM out there. Yeah. A little twist, Yeah, OK. You're not a believer, I can tell. I'm not. I'm not. I think that's OK. I, like I find myself on both sides of the road. I think LLMS are awesome and they prove that humans have built some pretty cool stuff and
show just how powerful language is. I don't, I don't trust them to be authoritative on much right as a as an editor, as an explain something that's, you know, 2 pages down to a paragraph. Sure as as much much beyond where I can throw them. Not as much. Yeah, yeah, I'm, I'm much more. I think the the types of models
are gonna have to explode. There's gonna have to be a lot more models, a lot more specialization, before I really start trusting them to do the the kind of cooler unguided. Yeah, yeah, I agree. And I think we'll probably we'll start seeing the more specialized models pop up in like smaller startups using it for specific tasks, right, where they're leveraging what they're good at with their own like LLM.
Yeah, their their own data. And also the the really interesting stuff's super hard to describe in a book, right? You end up needing mathematics or diagrams or whatever. So all of those times where there's something interesting where you couldn't just explain it with a word are all going to need specialized models. So there's going to be a bunch of those that end up having to be written once. Those can be interfaced easily with LLMS, and I don't have to
know how to describe the exact knob setting that I want. I just describe it to a computer and then it knows this other specialized thing over here is a tool. Then. It'll be. I think that'll be really cool when people or companies start training their own LLMS for just what they're selling. Like imagine you have yours, right? And it is just basically a deployment platform. So it's like an expert in deploying all the things and I
think that'll be really cool. The specialized, trained and has has some kind of inbuilt knowledge in it. I think will be will be where it's at. I don't remember who I was talking to, but it was, it was like an author or we were talking about an author and all these like really smart people that have like tons of books out there and you know, lots of writings, blog articles. They're talking about like like you as an individual can build
like your LLM and then people can have conversations with you and have like all of your knowledge base from all your creations that have been published. And like stuff like that, I think would be is is a really cool concept. Yeah, yeah, I'm, I'm in for that. Let's give it a try. Yeah, so I just upload all your knowledge to some text based AI and we can find out all your deepest darkest secrets.
Just asking that questions. Yeah, yeah. But yeah, I don't know, I think the AI world, it's an interesting one. I'm keeping an eye on it. It hasn't replaced me yet which I'm disappointed. I was just kind of hoping it could be doing my job by now. No, I mean I was I was deep in it at Facebook for for a long time. It's with the right amount of data, LMS can absolutely move the world or non LM models can
move the world, but they only move the world a couple percent, which is enough to make the world change a lot, but not enough to. For sure. To do everything that every Chicken Little is saying. Yeah, well, and then like I feel like the the hallucination stuff is like a big downfall too, because it like if you're trying to program with like cursor or you know, any of these ID ES or whatever you want to call them and you don't already know how
to program, you wouldn't know that it's just spitting out garbage. Yeah. Well, I think that is kind of to the LLMS are good at language and it turns out that not everything that's just somewhat close to language is actually the same thought process, right. You can, you can somewhat get programming from LLMS, but not so great. It doesn't go well from going from small amount of non prescriptive text into solving a
problem with a larger amount of accurate text. And I think that's just down to the fact that we haven't figured out those kind of planning models, those kind of reward models of how we build them. We've just been making LMS talk to themselves. But those are actually different problems that we're kind of trying to shoehorn language into solving, but they're not there yet. Seeing real, real models that have like got to see inside of
ads or Facebook ranking or all of those. The models that have a. Here's what my reward is can produce some amazing results and I. Bet the the ad stuff at Facebook, the ad stuff that you probably worked on at Facebook is probably wild like. Absolutely. It's it's super wild, especially when the whole company kind of understands that that's the goal, right? The whole company understands we want to make a better ads marketplace.
So you are so focused on can we make those numbers better? You can. You can really move the world with some data scientists and enough enough silicon. That's wild. Probably like way over my head and. The math, the math sometimes was over my head too, right? It's, it's fun though. It's great. Yeah, well, I like, I can't. I'm sure the experience you gain there and the like, the amount
of knowledge you probably were surrounded by, like probably awesome. Yeah, I think the most impactful were honestly the times where we broke things. For me, a lot of the stuff you learned at Facebook was what broke and what did we do to make sure we didn't do that again, 'cause Facebook's a chaotic culture, right? It's moving fast with people doing stuff all of the time, and they still somehow end up with a pretty stable end result, right?
Like most people wouldn't know the last time Facebook goes down, or if it was, it was years ago for them, yeah. That's true. That's pretty incredible. So those kind of how do you do that, How do you move that fast while still kind of keeping your software to a level is is interesting to say the least. Well, and like people don't understand how difficult things get, but the more users you have, the load you have on your servers, how you balance those
servers, like it becomes so complex. We talked. About earlier, yeah. Yeah, the fact they don't have outages is impressive. Yeah, we talked about earlier how if you skip something to production and you have 300,000 users, they'll find the problem. Yes. If you have billions of users, they won't just find the problem, they will find the problem. Overrun the problem, make it become news, right? There's just a different level
of that will be there. It will be found. Yeah, dude, a billion. I can't even comprehend that. Like, yeah, that's. What is you take something? Down is that Facebook like daily user is that is it a billion? Cannot comment on numbers. Oh, OK. Yeah, that's fine. But it's a big number. They they have over what do they have? They publish. They have over 2 billion monthly users. Monthly. OK, yeah. Wow, that's the. Same. You know the number, the number
of people that are there, like main core users, how many are coming? You've also got to include in that number. They fully host WhatsApp and Instagram, so between Instagram, Facebook and WhatsApp, the number of people that are using it daily is pretty, pretty insane. Everyone with a smartphone. Basically, yeah. Yeah, that's wild. That's a different level. That's a different level.
It is, it is a different level, but you know, at some point they're they're still just software engineers. It's still the same tools. No one, no one, no one has solved. Just that that squeaky wheel breaks things instead of just annoys things, you know, like. Well and you have a whole team that will go after the fact right? So the the bug report that is some squeaky wheel around and medium sized company gets 10
people and a after action report at Facebook or Google or Amazon, right? You you get a, you get a lot more attention to the things that need to be fixed. Yeah, yeah, yeah, different ball game. I don't know if I could do it. I don't think I could do it the the Fang company but I'm sure the experience is amazing. The people are, the people are smart, right? The, the machine learning team is the Pytorch team that's
actually writing Pytorch, right? The, the people, the people that are writing the white papers on Llama are the people that are writing the models that you're running here. So yeah, it's a it's a heavy world for sure. Yeah, that's wild. Well, Elliot, this was awesome. It was awesome meeting you. It was awesome talking about batteries included and the the link to all this guys is in the description below. So check it out and I feel like
this is just one of those ideal products for, you know, especially like indie developers, anyone with small projects, anyone with an MVP, like almost anything cuz and open source you, you and it's free for up to like 3 machines. Like I don't know, it's hard to outgrow. Like if you're outgrowing the free tier, you're doing good, you're doing well. Yeah, I, I hope, I hope that if you outgrow the three tier, that's because you're, you're
having good problems to keep going. Yeah, exactly. That's when the good problems start, right? Yeah. You've got interesting problems we're in. Yeah, well, if there's anything you want to close out with, where you want to send people, how they can connect with you, anything in that window. So our website is batteries incl.com, but the the biggest way to find us is on GitHub. So we're GitHub slash battery stash included.
You know, we're we're mostly developers just building the product. So you want to come try it out and tell us what's broken. We'd we'd love to have you, love to love to help you. Yeah, I love it. How is your experience with open source projects? Did you have a lot with like managing them before batteries included or is this kind of your first? No, I've always been in open source so did did open source and Ng Moco used open source H base and Hadoop.
Then after that actually became APMC member for the H base and Hadoop projects was a committer for Hadoop. And then Cloudera was an open source company where we went to enterprises and helped them with open source. And then I actually joined Facebook because Messenger ran on Hbase. So every time you sent a message on Facebook Messenger, we stored the message and the read
receipts and the whatever was all in Hbase. So Facebook contacted me and basically like, hey, you want to do open source distributed databases, but you want to do it at Facebook rather than down the street. So that's, that's kind of how I, how I joined Facebook was open source. So open source has been my, my kind of lifeblood. I've, I've lived it, built it for quite a while. Yeah. Yeah, that's amazing. Well, you, you seem to be pretty good at it. I love it. And yeah, guys, go check out Batteries included.
The GitHub link is also in the description, I believe. And if it's not, I'll add it. And then tomorrow this will be out on all the podcast platforms. And then basically I just wait for YouTube to finish processing all the closed captions and then I put it out everywhere. Well, perfect. This has been a great conversation I really appreciate. It yeah, this is fun, and if you ever want to come back on, just reach out. All right. I appreciate it. Thanks so much. All right, 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...