In this episode of the Elixir Mentor Podcast, I chat with Isaak Tsalicoglou, author of Elixir Software Engineering. Isaak shares hard-won lessons from building production Elixir API clients, covering validation strategies, error handling approaches, authentication flows, and architectural patterns that actually work in the real world. We explore Isaak's journey back into programming through building internal tools for his family's industrial equipment business, and how that led to writing a comprehensive guide on REST API client development. He explains his approach to request validation, why he ultimately decided against using Ecto schemas for API responses, and the importance of resisting unnecessary complexity in software architecture. The conversation covers practical API design topics including how to structure clean RESTful routes, avoiding tight coupling between APIs and UIs, and finding the right balance between over-serving and under-serving data. Isaak also shares his thoughts on LLM-assisted development, explaining why he prefers using AI as a code reviewer rather than fully automated coding, and discusses his self-hosting infrastructure setup for privacy-conscious applications. This episode offers valuable insights for anyone building API clients in Elixir or thinking critically about software architecture decisions and their long-term implications. Resources Mentioned: - Elixir Software Engineering: https://leanpub.com/elixir-software-engineering Connect with Isaak: - X: https://x.com/realMrLaminar - LinkTree: https://linktr.ee/tisaakx SUPPORT ELIXIR MENTOR - Elixir Mentor: https://elixirmentor.com/?utm_source=elixir-mentor
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.
Hey, I'm Kimberly with Elixir mentor Jacob recently added recruitment services to help companies hire pre vetted Elixir devs. I help with company outreach, so if you're hiring, I may be reaching out, or you can connect with us anytime at elixirmentor.com. 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 and libraries shaping Elixir's future. Isaac is back, I believe last time we talked about ecto modeling and a book that you recently wrote. And now this time we're going to be talking about REST API design and architectural patterns and who knows, we'll go from there, right? I think we'll we'll have a good conversation.
How are you doing? Good. I'm doing great. Lots of work, a lot of it in Elixir, increasingly so. So I'm happy about this and lots of rewriting. For those that may not know you, you want to do a brief introduction and I didn't want to butcher your last name so I'll leave that to. You the last name is. I mean it's how you read it. It's Alico Blue. Just read it straight on how you see it. I'm a mechanic engineer by training, did a lot of R&D, did fishing neural networks and
classical machine learning back like 10 years ago, then switched to, did an MBA, switched to management, product management, product development management. And now for the past six years back in Greece where I've been running two or three different businesses depending on how you count them primarily. I mean, I'm always AB2B guy. I grew up in a family business. So we discussed this last time, right? And now I'm continuing industrial equipment sales. I've been building over the past four years a set of little programs that I use. And that's how I basically got
into API clients, got back into programming. And part of what I'm building now with this book is primarily for my own needs. But I saw that it's something that deserves to be talked about. I didn't find a guide like this. So I turn into a book and open sourcing the the result. I could have really used, I couldn't really use this book because it was a REST API project that actually got me into Elixir. And it was I, I actually would would not want to go back and look at that code base right now.
It's probably. No, no, I our part of the motivation is that that's how I got back into programming because for years I was not programming. And then in 2021, I wrote some programs from my father's business to manage product data, to manage a customer list, to pull data from the Greek tax authorities for company registration numbers and addresses. And I built a little suite of of API APIs actually with Jungle, Jungle Ninja and Fast API, which is more fantastic.
Like, OK, don't talk about performance, but I don't need performance in a way purely for internal use. And that's how I got back into programming. And then I started writing little API clients for other APIs like here Maps, and that got me back into programming. But the problem is after four years of no development on those, I, I started to outgrow them. So now I've started reimplementing everything for my own business that does the same as my father's business, industrial equipment training. I've been writing everything in Elixir, in Phoenix, in Phoenix Live View. And this book is part of what I need in order to manage files
because for example, I share files with customers, I will send them the technical manual. And I, I really hate attaching documents to 2 emails and send me like a 10 megabyte emails with three PDFs inside. So I use it as my job self hosted. It's not distributed. It's not like S3 or garage or Minio. Minio, by the way, painful story for everyone who's been relaying. I don't know if you read about it. I don't you want you want to catch everyone up on it. They clawed it back, right? So they stopped maintenance and everybody who's been relying on
Minio is now sadly out of luck. So, so I mean, I like S3, the S3 API because the standard and we use it in in on brick dot GR. We use it on digital ocean spaces, but it's also overkill. If you want to share a file, you don't need to use S3 or a bucket. Plus it's it's in transparent how the files are stored. You cannot access them directly. It's like a Hass BLOB somewhere. And I prefer to have simpler solutions. So that book is now about an API API client that targets a specific undocumented API or
file browser. It's like a drop Dropbox self hosted to Dropbox and also talking about how to build this and about the mental process behind it. Because I document, I document basically everything that comes to mind. That's the same approach as the other books. I feel like I need to I need to do this for kill switch. Yeah, it takes time though. It takes a lot of time. Like if I if I want to be done in one week. But The thing is, yeah, that's how I did it back in 2021 with the other APIs.
I did them in one week. I don't want to ever touch them again because they are crappily designed. They just work, but they just properly work and get the job done sometimes. Yeah, I need the solution, you need the solution and the results faster than good architecture, but. If you can do well, yeah. At the time we need the solution because we have the, the, the government in Greece established electronic mandatory and electronic invoicing. So you have to codify all the products that you offer so that you can eventually invoice them using electronic means. And we had absolutely no
codification for 20 years. It was never mandatory. So we needed something really fast by end of September 2021. And I just sat down and wrote like 7-7 API, little AP is called the micro services. Doesn't matter. They're not like deployed like micro services. Wrote them in six weeks, worked fantastically well but I don't want to touch them again. It's like toxic. Like micro lifts instead of monoliths, right? Yeah, it would be a bit of a stretch. I mean each one would be a bit of a stretch.
Each one has its own SQLite database because Escalite, I love Escalite or I mean Django is the one. One of them is public facing. Facing with shows your QR codes. So you can scan the QR code on an offer that we send and it takes you to the tracking page where we used to enter data of where the order is along the way like it's been shipped awaiting confirmation. But part of the the new business is to make everything as streamlined digital as possible so that I could basically even send offers via isotech dot GR,
which is the company website. So this will this already finished slide and I've been working on the on the authenticated pages now. That's awesome, very cool. So this current book, it's, it's chunky and you're only 65% done. It's called Elixir software engineering, correct? Yeah, it used to be called something else. It used to be called Elixir File Browsing. I know it confused me. Yeah, it confused me too, because I got confused many times while writing this.
I started off as a little quick line for the undocumented API of file browser. They haven't documented it fine, but it works really well. And it's also really well built. I mean, file browser is in building Go. I actually like Go. I think it's, it's easy to read. Yes, it has a thing with if error and so on. It's a bit verbose. But there is also something new that came out. It's called, I don't remember the name, but basically you write in a more concise way and it it converts it to Go. So Go actually looks more
natural to someone who writes a lecture. And so anyway, it's easy to parse. It's easy to understand what's what happens. And the book actually contain an exploration of the Go code, even though it's an Elixir focus book. It all shows you how to spellunk into code. And how do you discover what is in there? It's undocumented. OK, but how do we figure out what we target? Because there's no documentation to be found online about this. Yeah. And I know as a simple client I wrote almost all of it and realised it is way too difficult to understand because it was
jumping back and forth. Scrapped it, wrote it again, focused on the authentication flow initially and then what this enables. Scrapped it and this is now the third version. It's the one that's stuck where it is deliberately over engineered. Like you would never probably write an API client like this. I think it is way over engineered. But it's deliberately done to say, OK, let's look at it through the mind of somebody who likes the whole software engineering perspective and do it based on capabilities and you
derive the state of the client and use that to inform something else. But it's, it's also an exploration of what could you do. It's not necessarily what you should do, but it expose all the thoughts about how do we structure it, how we split modules. And it's by no means pretense that I'm some kind of an expert software engineer, but expose you also to some kind of growth of thinking about how you do. You make things complex enough to make it cleaner and hopefully not too complex so that it takes ages. Unfortunately, like every every book I've written, it starts off
like a little nugget of an idea and I get enthusiastic about it and it starts to grow and it's now 600 something pages. That's wild. And you're only half done. A little more than half done. I would say it's a gut feeling like 65%. It's it's certainly not 90. We're going to have a a Bible. Yeah, that's why it never goes to print, because it's uneconomical to ship and to do everything. So it remains an e-book. That's wild. You should just call it the Elixir Bible when you're finished.
No, the two pretensions. I mean, I'm no, by no means, but The thing is that that's a good part about writing books. Not professional, not like to make money. I mean, it's nice to get the royalties, but for me the process is more interesting than the result is all. I mean. Northwind Elixir Traders has now sold around 500 copies, which I never expected. I wrote it primarily in for myself and I don't care that much. I think it has a big value. It has gotten great reviews, but the process of writing it taught
me a lot, which people appreciate because they look through the thinking behind all the decisions when you search for. When you have to teach a topic, you do the deep dive and you'll learn. I think you benefit when you write or like make videos. You benefit more than the people consuming them. I think the tricky part here is to be able to think through the eyes of the reader, and that is the most difficult part. So part of the rewrite, the 1st 2, is that it was jumping around too much. Like it's OK to say we'll explore how to build this, but it's not OK to just brain dump
on how you approach it. It needs to have a narrative somehow. You need to have a progression, and that's the most tricky part. The most arduous part is called the assuring. It is what I call the replay, where I sit down and replay the entire book, every EXIX command, every, everything, every edit to files. That takes ages, but it's part of the process. Yeah. What's up, Brian? We got Brian Cardarella tuning in. I think that might be the first time I didn't completely butcher your last name. You're like a mechanical
engineering from like trade, right? How do you think like that background? Do you think that helps you in like API design? Are there like physical systems that help you design like interfaces and digital systems? From for me, I've enrolled to something always in the summer. I, I have more free time, so I do deep dives and things I like. So no time pressure. So I wrote an article about how software exceptionalism exceptionalism is overrated. Like it's software engineering
is systems engineering, it's just domain specific systems engineering. It, it might take, it might be a whole take, but after having done a lot of system engineering, I really think that it's about understanding the system, the interfaces, splitting the parts into subsystems, understanding the requirements, the interfaces without, without going all the way to automotive style system engineering where you get bogged down to requirements and specs for ages before you release something. So certainly it has impacted a lot of how I split things and how I organize things, plus the exploratory because I'm deeply
an R&D animal. So I I hesitate to stop, I mean, or to put differently, I do not hesitate to do a deep dive into something and nerd out on something and see, well, something interesting came up, or maybe not, but we looked into it. That is, that is just fun. It's fun writing about something that you you understand. Yeah, you understand really well afterwards. And the it's part of part of the fun of writing something like this without any time pressure, without any editor.
But you are the editor. Yeah, yeah. I mean, the time pressure is a real thing. Like I feel like even though I release like free tutorials, right? Like I always over promise and think like I'm going to be so dialed in in my weekends. I'm going to like pump out 10 videos a weekend and have a backlog. It never happens. And then I always feel like I put added pressure on myself to release free content. Yeah. But in the end, I find if I load myself at 120%, I get more done.
It's just I, it's just how I work. Like I always open more construction sites that I can afford to and then I dynamically reprioritize. And it's the same thing with the book. There's a lot of, it's not really a linear explanation of how things came up. It's, it's a restructuring of how I arrive at conclusions and I document them in a way that makes into a narrative. Because if you do it in the other way, you end up with A2 rewrites that I did where you open up a lot of contraction sites and then you figure things
out and then it's a mess and it's not easy to understand. But so I'm deeply influenced by Toyota product development system because I've done all the product development of hardware in the past. And that's where you converge towards something. So you don't start with the absolute perfect specs or requirements first, but you you try to understand the system and then you see where the interfaces are and you start to have them converge so that you open multiple things and maybe some paths are useless. OK, so you cut them out and what remains is like scalping
something out of marble. In a way that has influenced my thinking a lot. Like you don't need to know everything to start, but you need to get started somewhere. And because there's a risk that if you get started somewhere where you might get blocked, you will get stuck there and not proceed. You open two or three things in parallel, you move them along somehow, and then you start to to converge them and combine them and see how things gel together. And it's already a process you can describe. That's the tricky part. There's no, there's no standard resources to do that. No, Yeah, but I like, I agree. The busier I am, the more I get
done and the more efficient I am too with working. Like if you have downtime, you'll end up having too much downtime and then you procrastinate everything you're doing. But if you're so busy and you have to get crap done, you have no choice. I like that. And then Brian, Brian said shoot for the moon. You'll probably at least hit orbit. That's true. Yeah, I agree. Shoot from. The hip. Sometimes you shoot from the hip like It's fun because the at some point while writing this API client, I needed a way to show, you know, to trial how we
make some requests to the file browser API. But I haven't yet written the authentication part. So, so I just wrote a module called Junkie because there's like the junkie client and you have junkie dot token. Just fetch A token and use it. And you see how you have basically different levels of how complex you can build things. So build a REST API client that just, yeah, just sends a request. It's trivial. It's not even worth writing anything about, not even a tutorial. You read the rec or HT poison XPM docs and you're done.
But the idea here is to write something where you altogether prevent useless requests to the to the server. So the idea is a lot of the logic of the API server is built into the client so that requests are cut before you you dispatch them. Which is an unnecessary requirement. But it does open up some questions about how you say, well, now we have this client struct. What state is it in? What state is it in regarding? I mean, is it, what can it be
used for, which routes? And so there's a lot of logic how to parse options like it's a, it's a good opportunity to explore Nimble options, which I absolutely love Nimble options. Fantastic to write your own modules for parsing options, streaming HTTP, streaming to stream in, stream out. Add features actually to to how you use file browser which are not part of the of the API. For example, one interesting one is let's say you want to upload a Linux ISO.
OK, do you now download it and then upload it? Or can you do it with streaming where you stream in and stream out? So you stream it from from an ACP address directly to the to the file browser server? How do you verify that what you uploaded is correct? How do you catch errors that you made? And there's a lot of little gremlins to find there. And that's part of the the fun of writing some that's robust. So the idea is to make it more intelligent than it will be, more safe, just for fun, just to see how.
I'm curious what what are your like creative ways of handling like time outs, rate limits, like malformed responses, like how do you like to handle those things and like a simplified like coherent way though? So. So since it's a, it's a client, not not an API server. There's not much with this except qualifying the the query parameters using a module that does query parameter validation.
One of them is for example validating the body have helper functions do that purpose specific depending on what operation you're in. So you have operations, I generate an operation for me is is a combination of a route and HTTP method. Then I declaratively have the configuration of the API. So that's also part of the idea to to see how you can do it declaratively. So maybe you can take this code and adapt some things and use some part of the code which will be Apache 2.0 license like all of my books code to to do something similar so you don't
have to rewrite everything. Maybe there's even a framework idea in there somewhere. I don't know. I just don't know enough of Elixir to build my own little framework for API clients for API servers. Oh, I. Feel like you know enough? You could do it. Yeah, well, maybe I don't just I just don't have enough time because of too many things. But for API servers, well, I mean I absolutely love Ecto. I love Ecto and changes so much that for brick dot GR where the back end is in PHP I built from scratch. I wrote two classes 1 is called schema and one is called chain
set and basically does what ecto dot schema and what ecto dot change it does in PHP and it cut down boilerplate. You know the repetitive in in in PHP always check if something is null and all that just go on. Just all the route handlers are now using facto as I call it PHP. Oh. You're handling that like client side essentially then or no? No server side. Server side. OK. Yeah, yeah, yeah. OK, so the back end of brick dot GRE, it's written in PHP. It uses those two classes.
So you write a schema for every entity essentially. And you can optimize the schema depending on what purpose you want it for. You write a base schema and then you can basically say switch off those fields or make them required or not. So you have like a base template and then you have a change of class which does the same thing that ectopl changes does without the change tracking. Because we don't care about this. Will you create? Like an ectos schema for most like REST API responses or not necessarily? For API responses. Like third party API responses?
Would you build an ectos schema for it? So I remember I did something like this for the Elixir file browser client, and I came to the conclusion that it's overcomplicating things. You can do it, but I remember, I don't remember the specifics, it's been like now seven months, but I remember coming to the conclusion that it's overkill to to use Ecto internally for your own like internally for the own own project. So you consider the. Operations internally, that's what you stick to, but not.
Yeah, necessarily overly complex. It's overly complex in the end. In the end, I split it into modules. There's a query params validation module, there's a body validation module, there's a header validation module. And it is easier to work like this because then you have to basically make a. Now I'll collect a bit what I did. We have a schema, we have the headers, the body, and then you have custom validation functions for the header and the body, the query params. It just becomes too much navel gazing, too much abstraction on top of something that's already
abstract enough. And but it's also splitting. This is that this is a body, it's a Stringer, it's a binary or whatever. And I remember that I scrapped it was part of the second rewrite and I simplified it. Yeah, but Eileen, that makes. Sense like it's easy. It's easy to think adding all these layers will simplify things and make your code more robust, but it's not necessarily true. Yeah, that's also part of the my my big finding about the term of good practices in software engineering. In the end, it a lot of advice
out there. It's just over complicating things. It's whether you want to make like what what do you call the separation of concerns? Oh, separation of concerns super important. I mean, OK, it's like functional decomposition in system engineering. It's important, but it it's at some at some point you don't need to go all the way to the the full blown software engineering. A lot of it is also inspired a lot by object oriented programming. I find. Yeah, a lot to Brian. Said software developers are naturally attracted to complexity, and I feel like
that's true. Engineers are also natural complexity, by the way we like to. Anyone with an engineering mindset, you know, like you, you overcomplicate everything. And yeah, he said. Resisting complexity is a skill. And I feel like once you realize like the best feeling in the world is when you overcomplicate a solution and then you refactor it and you delete like 1000 lines of code and you have 200 left, you know? So I picked up brick dot GR software development after it
was delivered in version 1.0. Let's say it was an MVP by external contractors and I've basically deleted half of the front end. And so next GS front end, next GS 13. So React 18, no React to shell issues there. Plus PHP, pure PHP in the back end. And I have rewritten half of it. And to be honest, it's the first time I realized what's the point of object orientation because what I did was I wrapped a lot of things in classes and things became much easier than having
the same code again. Again, the same database queries everywhere. But you need to be careful because there you, I got infatuated with traits, for example, Oh, everything's a trait. This is an accountable trait. It's a billable trait. Then you start to over complete again. And then as somebody realize, maybe we overdid it. So let's bring it back down. So I think it's a it's a design process in the end. And people talk about design thinking. So it's it's an opening of the final, closing of the final. I mean, you need to converge in a way to something that makes sense without pretending that
you're Google or someone else who's like a superior software engineer who does everything by the book, clean code and all that. And you get better at it specifically for the code base as you progress. Plus, as you learn more about software development, you start to have a gut feeling of, yeah, we've tried this again and it didn't end well. So maybe, you know, dial it down a notch in terms of how ambitious we are with the abstractions because abstractions kill like I overdid it. I spent two weeks building a master query class in in PHP and I've tried to do like things
like that in, in Ecto and write some kind of a master query module that can do everything. And you realize, no, make it purpose specific. You are never going to need it. You're maybe going to need that kind of one thing to do everything module. The problem with like over abstraction of things too. And like, maybe it's because I'm just not very smart. But like if you enter a code base that has just like behaviors and interfaces and you know, crap everywhere, I feel like it's way harder to like dig
into the code, figure out what's going on and like find your way around 'cause it's less clear when you're not like directly calling modules and thing. I I don't know, it might be my brain size limitation. No, I, I do, I do. I think it's, does it make things more maintainable? Not really. Actually, I think it makes things more difficult because, yeah, it's cleaner in terms of, I mean, you use behaviors which I've never used. Have I used them? Probably not. I don't think so. So yeah, I use more of the
language. If you're good, super smart, super experienced, it comes a second nature, but you massively increase the entry barrier to somebody else who's picking it up. And a lot of the talk about developer experience DX ignores the fact that when you jump around files a lot, you lose track. Like you, oh, this calls that. Oh, and this calls that and this calls that module this, this is killer. I mean, already you are trying to understand and hold your mind the complexity of what the business logic is doing, and you
only make your life different the more you split things into 1000 places where things are clean because there's a clear interface and everything. But it's so green that when you try to get back into it, you first need to understand the universe like you need to. What is it to build the universe to bake an apple pie? The second code, I think that's the code and depends on what you need the software for. You don't. I think requirements depend on not. I think the requirements depend on what also the life cycle of the of the application will be when you build something for yourself plus maybe for others.
It depends on where you're on the spectrum. Is it something for me? Is it something to be a library used by others? Is it an app that is for a small scope, like small range of people? Is it a full blown SAS? It's there's not one truth along the way. You can over complexify a tool for yourself. And yeah, you are proud that yeah, I put myself in the back. I made things more complex than I needed to, so I'm prepared for more, more complex things. Most things are not that complex in the end. Right, I feel like your video is lagging on my end.
Let me see what can we do here? Maybe I can just refresh you. It's. OK, here I mean a green indicator. Yeah, you're coming through great for me, but then the connection to OBS is not great. I'm going to just try doing a little refresh here. There you are. You're back. All right. Let's see how it works this time. No IDSL so no, no issues.
I think no. Yeah, it's not you, it's me. I'm pretty sure Brian throwing a little shade out there in the chat, he said. This entire chat can be summed up to why doesn't anybody contribute to live view. Yeah, I know. I follow Brian and he has his beef with Live View Native, right? But I am staying from Mini Market. Yeah. Yeah. Not my circus, not my monkeys or the Polish, say.
Yeah, some, you know, I feel like, like. The. The hard conversations are good to have though. I think it's an eye opening exchange, right? And like everyone's goal is to like make elixir more readily available. People need to adopt it. They need to see the light at the end of the tunnel. And I think like all these hard conversations need to be discussed. Like why isn't it being adopted, you know?
But I just don't know whether it needs to be adopted because every everything that becomes popular eventually becomes gets its own issues. That's true, yeah. I mean, I like, I mean, I, I know it's like not great overall that, but I like the community. I like the size of the community. And. I I like the fruits of the labor that like benefit me and my projects. Like I feel like no one knows the cheat code, but we do, yeah. That's what it feels exactly.
And I I fear that if if Elixir becomes super complicated, will attract the same degree of overcomplexification and the and the churn that happens in the in the JavaScript ecosystem. That's what drives me mad about coding in TypeScript in XJS. So much churn. Like every time you run all the, all the vulnerabilities and then you run NPM install and oh, this has been deprecated. Why, Why do you, it's, it's a simple library. Why do you deprecate? Because maybe you wrote something else.
You put it on your GitHub. I mean, there's a lot, there's a lot of people, there are a lot of people who write JavaScript and types libraries and they just love deprecating things. Just some things need to be more stable and I, I particularly like Phoenix and Phoenix Live View have been handled. Yes, there are a lot of changes happening like recently with Phoenix 1.8, the scopes that I have to now wrap my brain around it, but I don't have to. It's, it's whether I choose. I, I went back to projects I wrote two years ago in Phoenix Live View before it hit 1.0, it was Phoenix Live View 0.17 or
something, I think. And it was not difficult to to convert the code base to to their latest versions. And this is not the case with Next JS, React, whatever. It's just modelling how things get deprecated and breaking changes every time. Like you spend most of your time if you want to keep things up to date, especially with vulnerabilities chasing after a moving target. PDFJS, disc, react dash, PDF like Oh my God we have nothing better to do chase after NPM packages.
I I will say normally, like if you're updating projects to the latest Elixir version, OTP version, whatever it may be, it's usually pretty pain free. Yes, it is 1.18. Many packages don't do things the way they expect to do. That's true. That's why I stayed in. I found it works OK with one point 18.3. That's where I'm at now. OK. Yeah. I pushed a couple products to 19, but yeah, relatively painless and depending on how
big the code base is, right? Yeah, my code bases are still small. What I do is I have a lot of little things in parallel, like I have 3 little apps, but again I do things on the side at some point reaching the point of deployment. So far none of them has reached it besides my company website which is not fully built. But I'm still on the path of of Elixir of discovery, learning, updating and now with BRIC will bric dot GR will take it to
production over the next six months. A sister API because PHP. If you don't have a runtime, you need to have workarounds like use Redis or use Cron jobs to make some requests. It's like all this nonsense. I Why would I do it? If I if I write an API in Phoenix and that's what I'm porting now, I get all this for free. I don't need to have, I don't need to babysit two or three other dependencies. I have AI prefer the moment. You can spin up processes for whatever you need. You don't need to baby different
dependencies. That's for me the biggest one, especially when you're a small team and we're a very small team, you need to be able to easily without a lot of ceremony because we are at the stage now with the software where we get feature requests every couple of days, which improvements, bug reports and you need to be able to say they're fixed. You gain customer trust. You see the number go up. Oh, you also release a newsletter every time you have a a new point release or a major release. And the more moving pieces you have, the more you have to chase
after. Oh yeah, this now works. But this doesn't work now. This broke because the interface broke. I'd rather have one thing, one code base deployed, done it simple. Easy. Well I mean I think so many people underestimate like the amount of traffic like a single node can handle too without even having to complicate things with distribution and all of that. But if you need to, it's really easy to do. Yeah, I haven't dug into this
yet. It was one. I see that Chris McCoy was posting something about distributed SQ Lite. I want to stick with this. Yeah, as long as it will carry me again, then fine. I switched to Postgres with Ecto. Change the adapter, maybe adopt a couple of schemas, reimport I I personally find that starting low tech easy is the best thing because you need to understand domain first.
Absolutely, I agree avoid overcomplicating things, but it's like the same same approach as you do with like creating a product right? You want as few, you want just the viable features. You don't want to have the Swiss army knife day one. And honestly, I think any product that turns into a Swiss army knife is the death of that product. Yeah, because the UI gets so complex, like for this SAS, which is property management specifically for Greece, would get great reviews for the UXUI because with the liberal, it didn't go the route of saying
this is an ERP. Yeah, it is an ERP. It's an asset management software, but it's designed to work equally well on a on an iPad. So when you look at things. So I call it the Dixon's laptop. Imagine somebody has bought a laptop with 1280 by 800 pixels wide. Like a crappy laptop. If you target this, this viewport, this kind of specs, then you will make a website that looks good on a small screen, looks good on a tablet, make some adjustments, make it also look good on the on the smallest iPhone AC, which not
many people have now and then it's easy to you can, you can add bells and whistles for larger viewports, but I'd like to be conservative with what I'm targeting, not assume that everyone has an M4 MacBook Air with tons of memory and everything. And then you can deal with more things. Same thing same thing by the way. Interesting thing is when I hit the MySQL database from PHP, I get far worse times, far worse performance than when I hit with Elixir.
I was totally impressed. Same connection. Yeah, yeah. Plus you get all the goodness of Vecto and making theories with Ecto. Is magical. We're lucky to have that library. I'm going to just, yeah. I'm going to pause us for 18 seconds and then we'll be right back. Hey, I'm Kimberly with Elixir mentor Jacob recently added recruitment services to help companies hire pre vetted Elixir devs. I help with company outreach, so if you're hiring, I may be reaching out, or you can connect with us anytime at
elixirmentor.com. And we're back. But yeah, like, I don't know, I think we're really lucky to have ecto. Like we don't have to think about much performance wise if you're using ecto properly. Ecto is we can talk about the lecture, but in the end the language. I love the language, but the one thing that really changed how I think about doing operational databases or even without databases, like you can use Ecto
fantastically as mentioned the other episode about N Maliksi traders to just validate data and many people don't come to this idea even though the documents especially mention it. We change sets and so on. Ecto is incredible. Like if, if I take imagine it's so, it's so clean. The whole idea of the schema and the change set. It's a simple pair of ideas. You take the same concept, you transport it into two PHP classes, and it cuts down all
the boilerplate of validating incoming theory parameters and bodies and whatever. OK, the cure parameters mostly cut validate these. So what cast it validate required all the different validate number validate it just reads well. So I think it's an under appreciated gem of the ecosystem. Yeah, I guess this already for for I think Ruby an active record is called the active record pattern.
But OK, whatever, wherever it's coming from, Ecto is is the tool for so many cases. And nibble options also be good. Nibble options break. I'm sorry, say that again. What was that? Nimble options to validate. Oh, yeah. Yeah, yeah, Yep, yeah, yeah, we are. We're definitely spoiled.
All right, let's see. I we have questions, comments. Let's see. No, not, not any new ones, but let's see. I have got questions for you, Isaac. Let's go. Let's see, so you've mentioned like numerous times that you're
just a big fan of just REST API is right. And when you like create, like when you put a production like API client, like architectural decisions that like you early on made, pushed to production that you later regretted and then like what were those? And then like how would you have fixed your solutions now like old Isaac versus new Isaac? Yeah, I can tell you for the past two years.
First of all, design your routes to be clean. Look at the Restful approach, at least how you handle resources and and so on. Like I inherited code that was just a mess in that sense. And now part of the job was to to clean it up because at some point we'd like to expose parts of the API to to clients who will be enterprise customers to, to interact with it. So instead of going through the website and a terrible thing to do is to write an API that is
tightly coupled to the UI that is that is one of the stupidest things that I've. I hated it. I followed while I didn't know any better and I just had to implement features because of the everything was burning. I, I stepped in the on the same patterns that of the code that I got and I deeply regret it because had I known better, I would have already refactored the API much earlier, like maybe 1/2 years ago, so that I don't have to rewrite everything to
make it less tightly coupled to the UII think it starts well when you think first about the different routes, how you'll organize them, whether you will have actions like you can have resource, last slug or whatever ID slash actions. And then how you how do you map the operations that will be done on on 2 routes if you start? So I saw proliferation on the code I got of basically ad hoc things. Sometimes thing would be nested down the property, sometimes
under properties, sometimes under occupancy, other times under occupancy. Some actions would be just straight under occupancies or there would be a slash actions. This this cause a lot of confusion. Yeah, it works in the end because the, the UI is tightly coupled to the to that API. But if you take your time to to think about how you organize things, it gets so much cleaner and you get, you end up with much less confusion when you need to work things. In fact, you mentioned something earlier which I didn't comment on, but re factoring for me is,
is a is a joy. It's I like cleaning things up. I like, I like putting things in order and making it less cognitively difficult for me to, to add things on. Once I did my re factoring of that code base, for example, it doesn't matter. It's the same thing with with other APIs I've written and I've been writing like I have another book, which is Phoenix product Codex, which is about writing the, my PDM approach, product data management approach that I wrote in Python years ago. We write it clean all this time with Elixir in Phoenix. And I spend a lot of time
explaining how things will be interrelated and everything. And you cut down complexity a lot because you also how you write the Jason and whether you load the related data or not because it's going to lead to cycles. And I would say one thing I regret is not thinking about things more. But when you when you are in a rush, we so when anybody is a rush, the first thing is not to stop and sharpen the axe is to OK, we need to fix it because somebody requires it and we have a client coming up and they want
to see it working. And you you're just building in plant refactoring from the get go. It it helps to to plan ahead a bit enough you don't shoot your own foot. Can can you talk about like what you mean by like too tightly coupling like UI to like endpoints or API requests like yeah. I mean that the I mean that the API serves the UI almost exclusively. So. So if you then want to want to hit the API programmatically and
not to serve the the front end, you end up with a lot of data structured in a way that is that serves the API the the front end, but is redundant, almost clean or the one the one, the one route returns data metadata, the other one turns data nested underneath metadata, the other one returns data metadata results. That also is a big lesson over the last months. Yeah, I feel like. That's that's like a very easy trap to fall into with like the basic like Restful API solution too, right?
Like you're either over serving too much information or underserving or making more requests than you actually need to. And like what are what's your advice to like avoiding returning too much data? Not enough data, requiring 10 API requests instead of like 1. Yeah, assuming that you don't have Phoenix live you where you just talk directly and assuming that you have a split between front end and back end. My first advice is, if you can
avoid it, stop with a stupid split between a front end guy and a back end guy. This is just a mess. This. But this kind of splitting things across brains just causes transaction cost. That is that is that is the essence of the problem where the front end guy will say, yeah, well, I need to show this field here, you need to give me that field. And the other guy will say, OK, now you have that field. And gradually the responses balloon to serve something that was ad hoc designed. And that is sometimes, well, in
my case, the problem was that we're returning a whole sheet of Jason as H EE. So yeah, so a whole sheet of Jason because the pages were not componentized. So vice versa, if you're serving dead views with Phoenix, make components, functional components and return the data that this component needs instead of just here, here, have have everything and you can pick and choose. That's like the all you can eat buffet, but you will return too much data, which is convenient. That maybe is a good choice when
you are starting out and you haven't yet finalized what content will be what you're showing. Or you're returning too little data specifically for that functional component, in which case you make too many requests. Now in in in my with Elixir, I wouldn't mind because Elixir is faster than PHP. But I find that in my case, sometimes you you over fetch you. You could just you need to find a balance with how you if you split it too much, you have too many independent things that are pinging the server back and forth and you have to manage state and update in next years. You have to mutate.
If you're casting something, you remember to invalidate if something changes from that component. Like if a component is is is self-contained and you have an edit button and it makes a POST request and you have already casted, you need to remember somewhat invalidated. That's all complexity because you're essentially creating a distributed pattern of, of how data is is shown on the page. And there's a, there's a middle ground there that is specific to the page you're modelling and what you're doing with it, where you find that OK, now things kind of flow, but you can certainly go overboard on either direction where you're just
returning. Here you go. Take like you have. We have this issue with returning documents. Imagine you have properties like real estate properties, and every property can have documents. The documents list grows. So you have a page on the left on the on the sidebar where you turn all the documents while the software was young. Sure, return all the documents. How many properties will it have? You have 5 properties and each one still has like 5 documents. Yeah. Well, now comes the first customer has 100 properties listed and starts with 20 documents and a partner I found
I'm a big fan of is here to us. Like when you 10 fields like previous page, next page, you have a separate structure within the Jason. That way you have the and that's what I also like. And increasingly I I turn my APIs into. So I shift logic away from the front end. If it's not related to display, I shift it back to the server. Because I want the server to tell the page whether it can render something, whether some
actions are permitted, and just make a quick check in the in the front and say, well, OK, not permitted or no, no such key. So I don't show the button, I don't show the action. And that is another major learning. Not everything needs to be server side, but when you centralized logic in the on the server side, at least the important things you also are. You sleep better knowing that there's no chance that something will be rendered just because you or somebody change the condition on the template, regardless of whether you're doing HAS React or Phoenix Live.
Right now I'm curious like you mentioned, like get rid of the front end crew and the back end crew because you just start requesting more and more data and your responses are just going to grow. I'm curious to have your take on and like the introduction of like graph QL where you just get what you asked for. Or do you do you shy away from it? Yeah, I so far shy away from it because I read an article that kind of colored my perception negatively about permissions with Graph QL that you have.
Apparently there are solutions to apply permissions of what's being fetched. But in in my case for this big app, because I was also flirting with having a graph QLAPI for the for the Lexi rewrite of the of the server of the back end, because we have a lot of interrelated entities. You have a property that has occupancies that might have finances or tasks that have finances. You have a lot of interrelated data. So graph QL on paper looks super interesting because you just say, well, give me all that belong to this property and
accessed by this user and you get what you need. And it might still be a good idea. But The thing is, because we have three different roles or assumed 4 roles, 4 different views, depending whether you're a property manager, property owner, property tenant or a supplier. You need to get access to information not only depending on the role, but also depending on whether from a business perspective you want, for example, the tenant to see, to be able to see the the owners of the property they're renting. And I have a gut feeling I have, it's totally shooting from the hip point of view.
Happy to be corrected by anyone listen to this that permission checking and getting access to data. It will be. I'll just move the complexity there like it will be easier to cure related stuff. But then I will have to write a lot of logic to to to hide fields from the response that are that you have. To do your own, your own authentication and role checking for sure. Yeah, yeah. Depending on what field what field you're accessing right you. Don't do it anyway. And that's what I'm really interested in in the Phoenix
scopes, because right now we are passing to the back end QA parameter role equals something which we qualify on the on the back end. And depending on that all our functions are polluted with a role parameter that calls different checking and so on. But with with scopes, you could simplify this so that you don't even have the possibility to make a query to the database to ever get something returned that the user should not be allowed to see. That's that's why I decided eventually I was thinking about
this for obviously from very early on. Like had I had I known two years ago, what I know now would have gone straight to Phoenix and Postgres and not PHP and my SQL. But OK, hindsight is 2020. So now that I see that there are scopes, I, I start to imagine that, oh, this will actually cut down a lot of of permissions checking and the worry that somebody might be exposed because we are casting their all differently. I don't know if graft fuel could
be a solution. It's something that it's on my backlog of things to investigate and maybe there's when I do it, there's going to be another book. Hey, that would be a good one. I mean, there's pros and cons to graph QLI feel like like a lot of people don't like to give that much freedom to like the client side front end app and you, you are like you're essentially overexposing things right, but then leaving it up to the front end to not over request data. So if if your front end
engineers aren't mindful of that, it can be, it could be a nightmare too. Like every solution it has its robots and its pro. I just think it shifts my gut feeling again without having to do it extensively. It's just it's like squeezing a water balloon behind your fingers. How I imagine it. You know the water balloon is out somewhere. You can squeeze complexity of something up until a given point. At some point you just reallocate it to something else. You solve 3 problems, you create
another five in some cases. And, and in our case, because we're in, in the EU, we operate exclusively in Greece. Therefore we are, you know, DPR. Even though DPR is a joke, we still want to play things by the book. And this means that I am super dreadful of exposing to private information because we have information there about who has paid which amount to whom to which bank accounts. You have private information about who owns what to what
percent you have contracts. So it's it's tricky. I always think super hard about what I expose. Yeah, yeah. Master is the human. What do you do? You who? Wants to? Who wants? No. No. Sorry, I was going to say, do you with like sensitive information like that? Do you start to dive more into like multi tenancy and stuff then for solutions? In our case, no, because it's it's a platform where anybody
can sign up, but there's so you sign up, you you have a profile and people can connect to you. So I have you as my contact, I can assign you as a tenant. Therefore multi tenancy in the sense of every customer has his own has their own prefix on the database could work up to a certain point, but will make things more difficult for everything. Certainly something that I have on my mind to check to check out, but so far not yet. OK, you could do I forget what
it's called. I know what it's called in Ash, but they do like the attribute multi tenancy where you're just essentially filtering by like an organization ID for everything. Yeah, you can do it with an association field. Essentially. Check out. Instead of having separate database schemas or the prefix, I forget what that one's. Called is that context? Your recent videos about us and the multi tenancy actually got me thinking about when I started the rewrite implement things in with with us, because that's kind of where it goes.
However, I decided against it because I know Phoenix well enough to to implement things. But I think that now in on also the US learning which I I was early on. I was interested in US three years ago when it was just getting started and I had even joined the Discord and it was still very, very early. Now it has grown so much, so it starts to become really interesting. Yeah, I mean, I get it. Like when you're sitting there and you're like, I already know Elixir in Phoenix and I can move quickly. And then like learning Ash is like learning a different language because you have to
pick up their DSL. And I like gave up on it the first time I picked it up. And then when I actually sat down with the book and started understanding things better. Like once you understand the little ash paradigm, there's only like so much you can do. But like once you know how to do it the ash way, everything is like you move very quickly. I don't know, I'm a big fan. Like I, if I were to build like any SaaS product that I'm building, like there's usually not, you're not doing anything special.
It's just, you know, CRUD operations, right? I would suggest, you know, probably checking out ash because you'll especially if you're working by yourself and just building a product, you can move quick. I just lost the light. But yeah, I'm a, I'm a fan. I like it, but I also like understand, I understand both takes. Like is it worth learning this new framework or just move fast and do what I'm already used to doing? And then LLMS change everything too, because now you can just move quickly with LLM assisted
coding, you know? I haven't drunk the vibe code in kool-aid yet. I I drank a bit, I drank a bit of the vibe. I mean, I didn't drink the kool-aid, but in in the summer I sat down and by not reading carefully the documentation of something in the in the BVM, I thought that I needed something to check this space. And I I let Grok Grok 3, then Grok 4, Gemini and so on. Vibe code and NIF, an Elixir NIF.
And it was full of bugs and full of memory leaks and everything was disasters. I wrote an article about it. Yeah, but one of the hardest things possible. It might be better now, honestly. It worked but then I want to make it multi platform so eventually I have them rewrite it and and each one was checking each other so each one was reviewing and when the one was getting stuck it was getting the code from the other one. Not automated just copy paste OK for which I I got a negative comment that what is this like 2023 you do this by hand and
copy paste yeah because I want to understand what what is happening I don't want to just say yeah I have vibe coded for me and go it's very. Important to understand the code that it's generating, I'll tell you that. Yeah, I know it because I used. I used, I used especially for things that I'm bored to write, like writing the yet another query for something. I use. I subscribe to group and Group 4 has been really good. Bob Gemini three 2.5 Pro is already excellent and captures things that Croke sometimes doesn't.
What what it helps me with is review like I will review code. I will have review. Review is nice because then you already know the best comment I read about vibe code. The best comment ever is somebody wrote on hacking news. The problem with Vibe coding is that you become the junior A software developer on your own code. And I hate that feeling. I hate that feeling where I don't know exactly you haven't followed through. I haven't built a mental mental model of what the code is supposed to do. And I have to to understand what the element gives me, which sometimes is total crap.
I. Am correct and I hate that I'm. Going to I'm going to fight back against that article viewpoint, though. I think if you allow yourself to be a junior, you'll turn into the junior dev. But I look at LLM assisted code is my junior dev and I'm reviewing their code and nothing goes past me unless I approve it. And that's exactly how I do it too. Or I will have it if I'm uncertain about if something is written in a concise way or if I want to make some functions more composable.
Because I I abide by the idea that first I would write it in a way that works even though there might be duplicate code, and only then will I see whether whether it deserves to be more composable. In Elixir this comes naturally because the language somehow guides you to make things more composable, which is why I like it so much. PHP, not so much. There's this excellent article about semantic compressions, very popular semantic compression, which talks about the same thing, which I agree with even before reading it. And so I use LLMS for that
purpose. Like review this code, catch any any stupid things I made because you know you called many hours. At some point fatigue sets in and you start making stupid mistakes. So for that role is fantastic. Like I replaced team of five people as one person. I found it like really useful to like track down bugs too. Like if you give it a very detailed thing like, hey, can you go check out this specific feature, the flow it goes through and describe it to me. And I'll let it go and just
investigate that area of code and then I'll start asking it questions about the bug. And like, honestly, I've tracked down some crazy bugs and code bases with LLMS and that's pretty cool. Do you? Use. Do you just copy paste or do you use cloud and let it run or open whatever is called I'll? Use, yeah, I'll use Claude code. So I usually make it like make a plan and then I'll approve it and I'll just let it RIP, right. But I, I keep an eye on my get difference and so I'm constantly
watching the code, right? And if I don't like what it's doing, I'll interrupt it or I'll, you know, I just do code review as it as it goes. Yeah, I use it. Yeah, still manually like I maybe my stage of my learning of programming. I always enjoy programming. I like to build things by myself and so I enjoy writing the code. I just, I just get bored writing things that I've written 10 times before. So for that I will let, I will say, well, this is the context. This is what we're building.
I have a briefing or in Grok, I will have a like a separate project and I'm, I'm building the sorry, just let me deactivate this. So I will give it. I have, I open a project in Grog and I give it the context of what it is that we're building and so on. So it's like kind of an agents dot MD so that I don't have to repeat the actions like what are the entities, how it is structured, what is the database schema and so on. And then I, I start having discussions and for me, the top
feature of of something like Grog, I don't know if Google has it probably does, is the voice mode. What happens is I, I'm, I work across three locations. So twice a week I will go to another location, which is our old families business headquarters. I have my dog there. So I go to visit my dog and to, just to, to change the environment. And what I'll do is I'll stay super long and work and, and code and do anything else. And I believe maybe at one or two in the morning because then I also find no traffic to come
back to the central of Arkansas, which is notorious for being difficult to park at. And when as soon as I get into the car, I open the Grok voice mode. And so I have a backlog of ideas and concepts and so on. And for 30 minutes I am discussing with with Grok how I could do this, what you think could we do this? And it sometimes has let me down blind allays like it really it really messed it up once and I it over complexified things.
But it's like making a after action view and sitting the next day. I used a lot for this. It's an excellent thing. It's totally worth the subscription. I would even pay more. That's a cool. Approach. You're just rubber ducking when you can't sit at a keyboard. You're making your car drive useful. Like, I listen to a lot of audio books when I'm driving. And I started carrying around like a little notebook so I could write, you know, like when something comes up and I'm like,
oh, I got to check that out. I'll write it down. But I feel like just talking into your phone is so much easier. This is an under appreciated role. I know that people talk to LLMS as if they're therapists and so on, which I find horrendous. First of all, you're sharing deeply private information. I would never, but I have absolutely no I'm a locked box, no. One's going to know about me. The nowhere man. But it's underappreciated. I mean, for me when I, when I leave work, the the Angel is
still firing on some of the cylinders. Like it takes me time to, to kind of calm down. So during my drive, I get it out of my system. Like I, I see the discussion and the when I return to it, like I have multiple, multiple discussions open about concepts, about the refactoring to things like you about using casting, about anything that comes to mind is a drive. Basically it's 30 minutes worth of discussion back and forth and so I have multiple I don't I don't write things down my backlog of ideas for the future part of this.
For example, discussion about graph 2 Li have a discussion about this three weeks ago while coming back from from that location 2530 minutes pros cons How could you do it? What are the downsides? And you already built a not, it's not solid, sometimes not even good enough, but you're not starting at 0. You have already exposed yourself to what are people saying about it? What are the usual criticisms? This is an under appreciated role of what you can do with a lamps.
You don't have to use them to give you code. I mean, the code is sometimes suspect, but you can certainly use it as a, as a, as a repository of ideas of concepts that you plan to explore at some point. And so prepare yourself for the next part of, of development. I, I, I absolutely love it. I favorite. It has turned my boring drive, which I've done hundreds or thousands of times, into something I look forward to. I know I get in the car and I will bring them and discuss something and kind of relax discussing about potential ideas, changing things around. It's like a custom podcast
curated to what you want to talk about. It is that. It is that. Yeah. And you get, The thing is, I always find that LLMS are excellent for summarization. I think that's, that is the one thing that they do well is summarization. They, they and so on. But when you have given a lot of context, when you want to get, when you want to get back into the game, when I want to do this, I just opened the old discussion and say, well, it's been a while since we discussed. So just summarize the core ideas of what we discussed and you get a nice list of the idea was to
change this to that. And we discussed risks and opportunities for this. And you start already at the it's like having a secretary that that documents conceptual ideas, anything. And for me, they have been a massive enabler. But coming back to the vibe coding, then what is I give? I decided to make it multi platform. So I have the, I have the LLM to write it in, in Ras worked really well. GitHub Actions, lots of back and forth, especially for the
Windows builds and for the Mac builds and everything and it all worked out well. Did you do? Native for everything or did you use OK? Yeah, it compiles natively everywhere and it works. And it's useless because you kind of get the same information on the BMVM. But it was a nice opportunity. But it left me with a sour tail because what it what it brought me to is the situation that I lived back in 2008 and 9 when I was a development engineer for turbines and turbocharger components where I felt like I'm an input output machine.
I'm just shoveling data, correcting, trying again, trying again. And I, I don't enjoy this at all. I'd rather sit down, understand it well, write it by myself, ask for advice or review where I need it, and come out smarter about what I did instead of offloading the task entirely to an LLM. Because then I don't gain anything. Yeah, I got the fruit of the labor of the LLM, which might or might not be correct, but I come out emptier, like it's also time for me. It's absolutely boring. Yeah, I like that so. I'm not a huge fan in Full Auto
mode. Yeah, yeah, I might have to take up that and start talking to an LLM cuz when I first started architecting kill switch, I was like, all right, how can I approach the zero knowledge encryption? I didn't know that much about it, so I had to do a ton of research and like Claude actually helped me like quite a bit with how I should handle the client side encryption and what I can do. And it helped a lot. And it helped me put in place a lot of the, the workflows of
actually implementing things properly. But I also didn't just like let it RIP and write that code for me either because it's like super important to make sure. That what is really nice is also to transpose concepts. I use this a lot, for example, now rewrite, I explain to it how the app is working with the front and the PHP front, the PHP back in the next GS front end. And then I say look, we're going to rework this. I'm reworking this in Phoenix
and Phoenix live view. So how do the ideas of that map to the other? Is my understanding correct? How? What is the closest pallet that we can find, for example, to componentize to write the queries to cache? So things that I might already know to a large extent, but it helps to have them qualified and just record them and document them like a list of things that yes indeed, your understanding is correct. OK good. I take this as an input. Might be hallucinator. Actually, it's not the nowadays I think for very specific things.
Rarely do I ever get hallucinations. I mean, most of the things that I get from an LM from Group 4 is pretty solid. Yeah, that's awesome. I don't. I haven't used Grok that much, but I'll have to check it out. It was better than GPT 4 or GPT 4. It's worse than Gemini. OK, my. Yeah. Are you constantly jumping in between them all, or do you just kind of lean towards a favorite? I have a subscription to grow
and I use this mostly and I think also there's a locking effect because I have all my discussions there. So it's unlikely that I will switch. But there are many, many cases where a problem seems to be intractable for Grok. It will just get stuck somewhere. And then I take this and put it into Gemini and say, hey, grok cannot figure this out. Maybe I don't know if the antagonism helps the the LLM work better, but I say you need to fix this because we are in a tight scale. You know, you kind of course it
a bit say pinpoint the issue and recommend the solution. Here's the code and it usually finds it. I I find that you cannot rely on just one of them. Yeah, I sorry, I'm trying to see if Claude has a chat feature because I feel like it doesn't, but I'm not sure. Maybe people watching now like I'm so curious, like I love this, this use case for it, and apparently I don't know. It's not a use case. It's not a use case that I use a
lot. Obviously knowing the coverage of of asking, of prompting sound like this. I have a prompt which I I, I tell the LLM you are a composite character of George Valim, Chris McCord, Sasa Jurich, Dave Thomas and Martin Fowler. Your goal, I can talk. To it. By the way, it has a voice mode I just discussed. What? Yeah, you changed my you. Changed my life, Isaac.
So maybe I'll change your life with another one, which is a favorite one for for learning. I don't know if you've heard me. So I, I tell it, I have a prompt where I say it's a copy paste. You are to act as a composite character of Joseph Valim, Chris McCord, Martin Fowler, Dave Thomas Sassajurich. And your goal is to review, review what I give you through the lens of someone who's a composite character of all those people, and help me learn and understand better and review my
code and my concepts. I like that. That's cool, and does it work pretty well? Yeah, it works fantastically well. Works fantastically well. There were also, for example, I upload architectural decisions for the REST API client in the book. After I over complexified it, complexified it and I realized, well, how would other people do it? If I were an expert, how would I do it? And this helped me get unstuck a lot because we get a solid review.
Now do I know whether this is what the people would actually say? No, nobody knows. But at least it it pretends, I guess to it. It guides the discussion down a path, for example, tell you so also jurors will appreciate your approach towards this because it's distributed then it's good it's good enough to to learn things you can never qualify whether this what people say. Obviously I'm not pretending that it's it's like opposite, but it has been pretty insightful. Don't. Ever use my name in a prompt? You'll get all the wrong answers.
Well, now I have to try that. It'd be really funny actually. I wonder if any LLM who Elixir mentor is? Probably know because it's great now, so they know they know. That's crazy I'm going to just start making fake content just AI generated. Alex, your mentor videos. Fantastic bring bring in the dark forest, the one called the dark Internet theory faster to fruition. Exactly, but you know, coming like lens, I think it's a it's a
boom in the end, for me personally, it's a it's a fantastic tool. Are there risks? Yes, there are. Are there problems? Yes. Is it AGI? No. Do I like file coding also heavily? No. But if you know how to use it, it's a tool, and a tool is only as good as how well you yield, you wield it. So for me, it doesn't look in a way. So I cannot say anything overly critical about this. Yes, OK, energy consumption, blah, blah, blah, blah. Yeah. I will. I think like the whole, I don't know, I feel like something is
going to implode like every it's just so expensive to run these huge models. So I don't, I don't know, I have a hard time wrapping my head around a future of like these giant models out there doing everything when you got like ChatGPT out there saying that like begging for money, begging for government bailout money. And like, so where does this lead us? Like you guys aren't profitable. So either all of a sudden we're going to start having to pay
thousands of dollars a month to use this stuff, or we got to figure out a more efficient way to use it. Do you play at all with self hosted LLMS? But I feel like that's going to be that's going to be the right route to go. Right is an affordable way to self host your own LLMS. That's what we do with with Greek dot GR because it's also part of a vital position. Like it goes down really well on a pitch.
When I talk to potential customers, I tell them we have AI. I tell them we have AI features that we have implemented, just not yet released to production. I've shown them the I've shown people the AI features. When I, I had a booth at an Expo in June, they were amazed that you can upload the power bill and it says, well, it's a power bill. It's a bill in general, a utility bill. What kind of utility bill is it? It's an electricity bill stamped like auto auto categorization. Is it difficult? Well, yes and no.
You have to extract the text from APDF or from the Doc X or whatever. Technically it's not difficult to find the right prompt. Pretty tricky to structure the taxonomy of the documents to to guide the LLM to make sure they don't have ambiguity. But that's part of the of the problem. But to to us who are technologists, it doesn't seem like something amazing. To a layperson, it looks incredible, but you just dump 30 files to the to the web app, step back, look it, look at the spinner and it gives you recommendation for the for the
for the categories. Plus it derives a very nice short explanation which includes, for example, kilowatt hours consumption for the month of this beneficiary that and that. And that's why I think the reason why I haven't pushed AI hard for the product is nobody cares. Nobody cares. You need to focus on the benefit. And when you see the understand the benefit, they don't care if it's AI, but it's to look to them, it's magical. It means I don't have to anymore choose from the drop downs. But to do this and part of the pitch is look, this is our own
infrastructure, it's self hosted, it's our own infra on GPU's on everything, which is absolutely true. And it uses a Greek, a Llama 3.1 I think model which has been specialized into Greek by the University of Iraq, Leone. And it is amazingly proficient, like it detects text, everything, and it's self hosted. Which also means it covers one of my biggest worries in life now that in the software world, getting built external, getting
built, API keys leaking, too many tokens being consumed, I don't want to. I don't remember who it was someone I follow on X, they were just, they just threw out a question about how people handle token regeneration and stuff when you're like, 'cause if you have environment files sitting on your local machine for testing or whatever you're doing. I know like Claude code pretends that they don't like read those files and they kind of like shy
away from it, but they have full access to that stuff and so. I think. I think it's a very important conversation, like how do you handle token regeneration and access and API key leaks? Because you want to make sure. Who knows? Can someone ask Claude code for my API keys? I don't know. That's my worry. That's part of the pitch is that look, your data never goes to a server of Open AI, Microsoft or
whatever. We have our own infra. The model is inside your data never leaves our infrastructure, which is hosted on the solution GDPR compliant everything, secure everything. I mean, we don't have we don't do something weird. So security hold. I mean, you need to be very exotic. Also, we follow some good practices all last and so on. So it goes on really well because you show that you care, right? You are effectively telling them that you're not telling them. But for sure, if you give a self hosted 8 billion parameter model, which is this Cree model
that we use called Creek Creeses go Mountain Goat of Crete. That's how they named it. You give it a Greek document, it's fantastic. Would I get better results if I were to ask for structured Jason output from Grog or Open AI? Probably. Would it cost me more? Yes. At which cost? Potentially a high cost also in terms of privacy because my biggest worry is that the data I give to the to the public LLM providers end up in the training set and at the end you might be. Absolutely. Does Yeah, I mean, imagine
somebody being able to ask down the road a Tell me about Mr. John Papadopoulos. Joe Papadopoulos owns 3 apartments in Athens and they have those capsule. Wow, that is you can never pull it back. So once it's. Held so he's also he's also depressed because he talks to our AI about his his therapy sessions you know like. That's why I never use them. I'm super skeptical and very cynical about big tech. And I don't think you need to try to be hard to be cynical, especially after all the Snowden revelations and all that.
I mean, it's you have to be stupid to not be cynical and, and, and cautious. So I. Agree. Back to the other part of the discussion about engineering, right? So yes, obviously using state-of-the-art Gemini 3 Pro will give you better results, more predictable. What do you really need that if you can? I run a self hosted 8 billion parameter model on an NVIDIA RTX 4070 Super with 12 gigabytes. I have plenty of headroom for lots of context. Do I need to go outside?
What does it cost me? It's like a one off expense, business expense. Never worry about tokens or billing ever again. Yeah, it takes a bit longer. Fine, people don't care, don't care. I don't care for the for the like this even there's even something magical. You know people say that about UX interactions, UI interactions. There's even something magical about seeing the little spinner because I use server streamed events with Phoenix. So this certainly portable to to the Phoenix back end bill
electricity spin yeah description people go wow, that's amazing. So you have. And you don't have variable costs on your end at this point either, not. My goal as a start up start-ups last scale up. That's my goal to avoid somebody else's opportunity now to pitch AI Tralala, as I call it in hype so that I incur the cost because wrong because I expose credential or I was overcharged. And that's also part of the motivation behind the behind not using AWS and write and using
file browser, which I you know, the API of the book is that I don't want to have to self host menial, which is they just made the rack pool or to go to Amazon. I don't want to ever go to Amazon for anything. Why don't I just spin up a file browser server, which is trivial self hosted here. I don't need distribution. I could however still distribute files with same thing because between the nodes I just won't have the data, which is somehow might be a nice feature addition to file browser.
File browser is unmaintained in terms of being in maintenance. So I mean it's in maintenance mode. So there's still little patches coming up, but it has been superseded by something called file Quantum, which now adds all of and all that which I don't care for. I don't care. I want things simple. It is rock. So I mean, for sure, everyone who's listening to this really do check out file browser. It's one of the fun, most fantastic open source projects out there. And I have my file storage, I can access the files through a web UI. I can just SSH into the the the instance VPS or in that in my
case, I self hosted on my own server and I can grab the files I need. They're not Hass blogs, they're not unstructured data on the drive somehow keep things simple. You don't need to you don't need to go to the standard solution because of for some for some time I was also thinking about garage. I don't know if you know garage, No, I mean. Not a good. Projectyeahgarage.garage-hq.org
It's it's a nice three bucket out there. It also has a key value store. Really good project. Really, really cool project. Geo replication. Fantastic. But why? I don't need it. I don't need all that stuff. I don't need to use. I don't need to have to use an S3 client. So XAWS S3 to just store a file. I just want to post a file and goodbye. Nice. I think people underestimate the push for simplicity. Yeah. Yeah, well, like I, I use, I'm using like a Digital Ocean S3
box right now for file storage. And I feel like I need to go this route and host my own and then I have more control of everything. Yeah. And in that case, I would recommend Garage. It works really well. That's awesome. I have Garage running. I have. So I have servers, I have Overwriting Labs as my business, right. So I provide fractional management software development services. So I have locations around Greece plus a server at Ketzner in Helsinki, plus a server Digital ocean Frankfurt just to
have a static IP. And then I use it Brazil, which is an IPV 6 mesh to network everything together running over wire guard. So it's all non public. I never peer with public so the traffic is internal. It's like having my own end grog essentially. And I deploy things on Proxmox and I have them across locations and I have Proxmox backup servers. So I store off site backups and it's super solid. And garage runs on different nodes. And because there are different locations, it's pretty, I mean,
if all three locations or four or five locations that are running garage all lose connectivity and power, then we're probably worried about something bigger like war with Turkey or something. So it's improbable which gives me an S3 bucket on which I have no variable cause I can do whatever I want whenever I want from wherever I want. So this freedom with self hosting is incredible. Self hosting is one of the nicest hobbies and skill sets
you can pick up. I agree. Yeah, I like at some point I'd like to just host my own boxes in my own house, but I haven't gotten there yet. But I'm always inspired especially by like the every all the blog posts DHH writes about with their their hosting solutions. It just motivates me to go down that road so much. DHH has a scale that is incomparable, but even starting with hosting I would never go
with one location because I got burned by this. I was hosting the so we sell host. For brick, we need maps. For Greece we use Google Maps. Google Maps in Greece is good enough but it is not perfect in some locations. So I self host the nominating API of Open St. maps and the and the tile server only for Greece across 3 or 4 locations. And I have a caddy server on AVPS that does round Robin with round Rd. weighted round Robin across the locations. It has never gone down if I want
to reverse your locate or search in Greece. Always solid. If I want to deploy something for Cyprus, which is a new use case because we have customers now from Cyprus who are interested, I just copy paste the same recipe of those VMS or containers specifically with the data for Cyprus. I create a sub domain and I'm golden. And this is immensely frugal if you think about it, because I could entirely get rid of Google Maps, which is not even as good as open Street Map for those
geographies. It's surprising, but it has better data. Yeah, it is. That's wild. It's wild, It's wild. So imagine we fetch data from Google Maps and we complement it with data come from open St. maps. We correct like visions, areas, postal codes. It's a boom I guess. There's so much good open source software out there. Sync thing garage. Do you host your, like, do you buy your own machines for
hosting them at that point or is that what you're doing? And then are you renting? Are you putting it in like a data center or do you just host it at different locations? No different locations. I have for example a family business, ex family business HQ, one location here which is my well basically Home Office, one location, parents place with good upstream, one location, another business that is all a
friend in a different location, 4th plus the two VPS's you work so far. And of course you have to lock it down and lock it down so you have wired guard tunnels between them so nobody else can Snoop on the traffic because it's not under your control. I don't see it has served me really well and this started things with the lockdown. That's awesome. I need to go down that route. You inspire me. I want, I want to do that. I just feel like it's so important, especially like with sensitive data like kill switch, I feel like it's so important to
really control and own your data even though everything. But make sure to have offsite. Offsite backups, yeah. Offset backup like the idea is that I have I'm on actually, I have another location which I didn't mention is the office of of brick has a has a front office. Nobody gets in. So it's totally secure has a very nice fiber connection and a lot of the services of the brick web app they run, they rely on the self hosted server, which is
which is imagine it's a refurbished Lenovo desktop PC cost me €150 added a bit more RAM. So it went up to 180 or 190. So 30 gigabytes of RAM by five 6500. By all means rather anemic CPUs by modern standards. I mean it's now what almost 10 years old and yet it works amazingly well. Never let me down. So this one bugs bugs.
It's containers and VMS to a Proxmux backup server somewhere else and that other server backs it somewhere else so you always have them. You also have backup distributing with Proxmux you can recover from a remote server so never had any issues. Why don't you write in a book about this? Well, I started. I started to use, but then came traders and I I parked it.
I started writing self host all the objects, which is like shows a series of buckets. It's on limpop and I started writing how to self host garage because garage is excellent. I mean, garage is fantastic, is a fantastic, but check it out. Everyone who listens to what is. The what would you say like what's the difference between like file browser and then like garage is just S3? Yeah, Garage is S3 compatible, whereas File browser is just basically like yourself, hosted Dropbox and has a nice. Work.
I see. Cool. What do you do as far as like storage then on like your servers that you're hosting? Typically. Like RAID boxes? Yeah. So my my my recipe for anyone who cares is was up until the RAM increases. But so I've built three boxes with the same recipe, AMD Ryzen 550006600G because it's an APU
and APUS are very power efficient. In particular, this one is very power efficient. It's way more powerful than you'll ever need and it's miles be one beyond what you get from Hetsner or this the lotion anyway. 32 to 64 gigabytes of ram. 64 in the case where I'm running something heavy but rarely ever the case. Mostly I have one box with 64 because I used to run CPU based inference and this can take up a lot of ram but in the end it's
uneconomical because it's too slow when you use up so much ram. But it's good to have the headroom now. 64 gigabytes of the R4 is still super expensive with the recent price hikes. 2 Two solid SSDs like good good brands don't go for cheapo stuff. I got burned once by buying Team Group SSDs which had a known bug and I got burned. BT RFS which is supposedly experimental but has never let me down. BT RFS and I'll get out of hate because EFS is so much better.
No problem with BT, RFS and typically a four terabyte hard drive. Not not RAID, just to store data because the data anyway gets copied over between nodes. Or if you want, you can have to so you. Kind of have your redundancy built in with your like round Robin effect. Yeah. And then CADI on the CADI on the VPS with round Robin and Let's Encrypt certificates. Basically you, what you do is
you build, you connect some parts with Wire guard and then you have, so you have one Wiregard network, you have multiple points, so you don't have a single point of failure. And then on top of this, you layer IPV 6 with Igdrazzle, my favorite, my favorite open source project because Igdrazzle is a mess. So it will route around anything that is residential fiber or VDSL and isn't connected.
So you'll always, it will always find a path. So it rides on wire guard. So it's already encrypted. And then you have this on top of, of the, of the wire guard network. So you have a mesh and IPV 6 mesh on top of the wire guard network, which means that you don't know of the of your nodes of a Drazzle peering ever or appearing through multicast to the public mesh of in Brazil. So you have your own internal IPV 6 and everything is you can
hit anything from anywhere that's. Awesome. Very cool. Yeah, in fact. I tell I have a friend, Brazil, who who runs his own SAS, starts to get himself hosting and I was telling him music drazzle and says is it not experimental? It's experimental, but I've used now for four or five years and has never let me down. So, you know, software version numbers are also kind of misleading. That's true. It's Drazzle.
Or drazzle YG GB RASIL network dot GitHub dot IO here. We go. Awesome. I mean, even run, even runs on your phone. That's awesome. Very cool. I might be thinking now with a lot of questions. Same thing on the phone, same thing on across the servers, all my files everywhere. I In fact, it was a funny Story
3 or 4 years ago or three years ago when I we used to have Dropbox in the family business. Now Dropbox grew explosively because they were handing out gigabytes left and right. I remember we got one GB excess storage because way back when we bought a digital camera Pentax and they part of the package was you also get like 1 GB of free storage. So we ended up having 11 gigabytes of storage and Dropbox, which is way more than we ever needed. And then Dropbox started and shit defying trying to upsell
you the UI chains. They deprecated all the clients. They made it generally more difficult. And at some point I switched this to file browser for the business and we started sending manuals and invoices and everything just as public share links to files dot tektra dot GR, which doesn't exist anymore. Cut down on, on on e-mail sizes made everything look nicer because you send someone to afiles.yourcompany.com. It looks more professional. Yeah. And I posted, I posted on LinkedIn. Goodbye Dropbox.
I wrote a little article and the then head of growth of Dropbox reached out to ask me about why I'm leaving Dropbox and we had a nice discussion. I told you, you add too many bells and whistle. Nobody means and you don't add killer features. Like for example, give me a summary of the document, which is what I built for brick where you just let it auto categorize documents. Why do you have this? Well, something's coming. Nothing ever came out of this. And it was funny because we we ended the call and soon after, as I think I got something like
60 gigabytes on Dropbox. I don't use anymore. I. I stopped using Dropbox too, because, yeah, they were nickel and dime in like, they just, like any space that you had kind of disappeared and then they just were like trying to get you, you know, to pay for. I feel like their tears were very small too, Like you couldn't afford, like you couldn't get your foot in the door just to use Dropbox as a convenient feature for less than like $10 a month. File browser, file browser, file
browser, round Robin in front of it, sync thing between them to sync the files. Put it on your phone. Yes, it's not Dropbox. It's like the old hacking news coma that I could just as easily build this with R sync and so on. Yeah, you can build it, but it's trivial, techie. It takes you like 2 hours to set it up at most. And I have for the past three or four years, I have all my files synchronized to my phone at any moment, all the documents I need. Never pay a dime to anyone off site backups. What do I care about cloud, cloud storage? It's it's a stupid outdated approach that you sell gigabytes
big whoop, you sold me gigabytes. I can self host a four terabyte disk here and a four terabyte disk there and you sell me like how much was it for? 100 gigabytes? You pay something like $30.00 per month. Are you kidding me? I could just, I mean, everybody can do it, but if you can do it, why give them money, right? Yeah, I was like, I'm going to bother you now I'm going to bother you and start building my own servers. But many people bother me about this because I have a friend who have converted to self hosting
and now they have their own servers immediately on Malta, in Scotland, in Greece, doing backups and so on. It's a fantastic hobby also too. You learn a lot. It's. A good reason to write off of a vacation like I got to go set up a server. You know in so many years I've never had an issue. But I have been self hosting for the family business since 2002, back then with Susa Linux 7/3. So I was early into the Linux game since 97 and I was always tinkering.
So when the when the time came, get rid of of Windows or at least of Microsoft Office in the beginning, we switched to Star Office back, then Star Office, Sun Star Office, then Openoffice, then LibreOffice. And around the time I installed the server, which was a Pentium, Pentium 4, Pentium 3, something ridiculous by today's standards with 80 GB disks, IDE disks, storing all the emails and storing all the files with Samba
and everything. And this server lasted for 10 years. And then I upgraded with something equally anemic and it lasted for another crazy number of years. And then another server, which was always a server got smaller, lower in power consumption, a bit more powerful because a generation that runs on a seller on like some crappy seller on which I go for 100 bucks or something and it does, has never needed anything. And meanwhile I have friends who have because Greece family businesses are small businesses is the way to go because of
taxation and labor laws. And I have friends who they brought in an IT consultancy and they pay someone for a contract because they run Windows, whatever Windows Server and outlook. And they bother all the time about the, the firewall and the anti fire. It's like, Oh my God, like who has time for that nonsense? It's 00 odd value. Meanwhile, we're we, we have 0 calls for Microsoft Office licenses. But of course we never needed PowerPoint, which is good.
Generally life is good to not have to do PowerPoint. It's a. It's if any job requires. Yeah, it's a problem. Yeah, creating PowerPoint presentations. I'll pass. Thanks. I did this for a few years. It's as part of my job. It's like. It's very. Corporate waste of human potential. It's corporate, that's the definition. Corporate bore I. Have very strong, very strong opinions about corporate and
I've lived through a couple of corporate environments and I don't think I will ever change them, especially not after experiencing now the freedom of doing your own thing and finding your own path. I luckily have never been in too corporate of a situation, but I know enough that I don't ever want to be just from friends stories and things like the hoops you have to jump through just to get things done like no thanks. No, no, no. I mean, it's good because learn a lot. Like I travel the world, that's all the things, learn many things. But at some point the the longer
you go along the corporate career path, my impression is the more you learn to deal with the pathological issues of the organization in which you're working and the less you actually things that are useful skills. So my biggest worry was by the by the time I reach maybe 50 or 54, I will be totally the skilled. And also there's ageism in every corporate always, always. So what happens when you're 5455 and you're being made redundant
because of cost cutting, because of AI or whatever? So what do you do? What can you do? Yes, you learn to manage your culture, it's functional team. What do you actually do? What can you do? Right, It's, it's the trap of safety, right? Everyone says they're in the safe, they have a safe job, right? It's comfort, but it's really not safe because you can be replaced at any moment and you're just another cog in the system, you know?
I would never trade my 10 years incorporate 3 different companies away because they were very useful but I would not want to repeat them or staying up on the path. Yeah, I mean, everyone needs to learn, right? And it's, it's important to see how corporations operate too. I think like that's probably like that's one thing I probably missed out on avoiding it. Well, you learn. You learn how human incentives work in in structures, in
hierarchies. You approach discussions. For example, when I talk to procurement departments, which are famously bureaucratic, no matter where you are, you learn who you're talking to, how they get incentivized, what kind of criteria they have for picking a supplier, what they care about this kind of informed decisions. It's not a must have. But most importantly for me was to see the differences in the product development culture between a company that was doing Provo Chargers, super advanced engineering. I was super lucky because I was doing machine learning in 2009
to 2012. It was I had a cluster of my disposal like a high performance computing cluster. It was a dream come true like for a Linux geek. Then a company that is more sales oriented and has good products but approaches it in a more structured way. Then a company that is a digital container. So it's good to see a variety of things because you you see what works and what doesn't. You can qualify easier whether something works or not. For example, the books are right and the engineering mindset I put into them could never have
come without the the the friction in those companies and learning what doesn't work and what does. A hardware product. The company gets a technology in one year. For one company it is doable. For another company it is unthinkable. What is the difference? The assumptions they make for a large part, not so much technology. An impressive thing I found out. What just happened to me? My camera failed. There we are. You're still. Do you still see me?
Do you hear me or no? I think one second, sorry. Oops Hello everyone, this is Alexa mentor podcast. I'm your new host, but he. Can't hear me? All right. Can you hear me? I can hear you. I can't see you. OK, something just happened with video, but not OBS. What's funny is Zach Daniels just dropped in the chat and to go back to when we were talking about complex abstraction and he
just goes the argument for complexity is job security. Absolutely so. Many people do say that. Or, you know, they believe that, right? The smarter they are, the more irreplaceable they are, and that's just never actually true. And the argument for overspecialization is also job security, because you can. It also is in corporations. It's also a measure of pretense, of expertise. You give people titles, a senior, whatever developer or senior, whatever, engineer or
principal, something, something or global something, something manager, and people get put themselves into this role as if suddenly we have to respect whatever they're saying because they have been made responsible for something. And that's part of the problem that I mentioned earlier. When you split back in and front end, you will usually have two people at least. And that's where the problems begin for sure. You have to do it at some point because because the software grows, the product grows, you have more interfaces. Every interface, every interface you have, you slow down massively.
And that's that's why LLMS are so great for, for people who build stuff on their own or if they want to build stuff on their own until they find the need to say, well, now it's worth it bringing somebody in because now many things are settled. And now the transactional costs to coordinate 2 brains, let alone 3 or 4 is at least worth it because we, we can scale. But with LLMS I replaced 5 people with me plus an LLM or two or three that was. That is probably the real disruption that it brings.
It lowers the barrier to entry. I started at PHP understanding of 2005, which was the last time I wrote PHP 0, JavaScript 0, TypeScript. I had my first. I had my first major version upgrade to the software within three months. It was way better than the previous one. You already need to have it, but why did it go so fast? Because I didn't need any more to coordinate my brain with a project manager. We're going to have a meeting with a senior back end developer and a senior front developer who need to cascade this down to the
to the junior to bring it all together to get code of varying quality. Up to a certain point it is totally doable, especially nowadays and way faster and better to go through a single Mind U plus DLM as a as a Robert Ducky or something and then see when you need it and then scale. Yeah, yeah. Like, well, like with for instance, like kill switch, it's like a weekend project for me right now. And I'm able to do and
accomplish so much using an LLM to help me. And like most of it's just because I'm not a front end dev, so I'm very slow with building UI interfaces and things and not anymore. Now I prompt it and like once, once you have a theme and you have like the way things flow and look, it's really easy just to continue and create new components with with Claude. It's also a boon for people who are not technologists, but they have good ideas.
I have a friend who has built now two things with Lovable. He needed my help in a couple of locations to prompt the the LM to, to make the right choices or to refactor or something. But he came up with two OK ideas. We'll see how they fly. And at least he has a proof of concept that then he can engage others to see how they can develop. It doesn't start anymore with a vague idea of, you know, it needs to look a bit like this, you know, just figure it out. No, you have an actual UI
prototype, even even functional at a certain point, depending on what you do. And then you can engage the services of somebody who will clean it up, build it the proper way. That is a huge shift to the market, especially the requirements. Gathering from senior stakeholders is famously the most painful thing you can do because they all have their own ideas and they, they kind of expect you to mind read what they, what they mean when they say that they want this to be fluid or nice or good looking or blue or whatever. And now you just say, well, prompt the lovable or whatever
to build it, bring it to the state where it satisfies you, including the effort better than doing requirements, pretending that you've documented your requirements and your user stories or whatever. And then we'll pick it up from there. Whether we can iterate that is another change that people don't look at. I'm not saying that a pure business person could build a complex up by themselves in lovable, right? But you can at. Least make a proof of concept probably. Yeah, and you have a better starting point for discussion with anyone who will develop it
further, which is not what you could say up until two years ago. And Zach brought up another good point. Problem is, getting too clever tanks your company. So your job is secure, but only while your company can succeed in spite of crappy engineering. Yeah, I agree. I've seen it happen. Doesn't it look exclusive to software? I mean, I wrote it was so the discussion on on Elixir forum, which is, by the way, what a great website and what a great community Elixir forum. It's so, so such a good web,
such a fantastic place to you can learn so many things there, find so many solutions. So there was a discussion about, I think was about how is software different to hardware and how software development is different. And there was a back and forth and I wrote a couple of replies and turn them into, into an article about exactly that software exceptionalism is overrated in the end. Yeah, it's different, but it's not massively different. I used to believe that it's totally different up until I started to, to develop software, perhaps with an engineering
mindset. So it's system engineering. I realized it's, it's different, but you can certainly transpose a lot of concept if you developed other kinds of, of product. And maybe they believe that software is so incredibly different to everything else, every other artefact, it also causes people to pretend that they can just do cowboy development. A it's different. You don't need to do requirements. Yeah, you don't have to do requirements as if you're a Volkswagen. But maybe it doesn't hurt to do a bit of systems engineering system architecture. Yeah, that is true.
But Elixir forum, yeah it is great. I agree with you there because we got a lot of smart people that hang out and I feel like we Elixir community in general is very generous with knowledge sharing and take and taking the time to help people. And low drama. And to some degree, I think it's also part of the reason why I think that the Elixir is probably better that it doesn't grow like for example, RASP or Zig does have the same hype is
that it attracts people who will think more about their decisions. And I have a feeling that the the perception that it's an underdog or under appreciated or underused, many of us actually like it. We like feeling that we know the cheat code as you say it. I mean, I certainly do like. I know all the answers to your software problems. It's called Elixir and the Beam. Well, I have a new a new project inquiry that came in on Monday and the question was whether we're going to make it to a
mobile app for a proof of concept. I said no, we can do it. I I got the scope I discussed can easily be done in 4 evenings with Phoenix Live view as a proof of concept and then you see where you take it. When you start having solid stuff, then you can say, well now it deserves to become owned by a lot. Yeah, you kind of go so far so on incredibly. Nothing wrong with. The nice. Mobile responsive web app. You can do a lot with that.
You can. I just, I've never done it and I'm worried about the whole approvals process and all that. It may be good. I'm just saying, just like the first web app. Yeah, yeah. Yeah, PWA, Yeah, you can do PWA. And actually that was a discussion how to was it last night? Yeah, last night I was driving back home and I have this exactly this discussion. Like if I want to do a mobile first web app with Phoenix live view, how can I turn to APWA?
How can I make it have nicer transitions? Is it possible? Is it doable? How much can I then use reuse if I want to go to Flutter or React Native, which then it starts to get complicated. I've done a bit of React Native. I'm not amazingly, I don't know, I'm not enthusiastic about building a mobile app. You know, sometimes I have this avoidance of totally new things where I know nothing about. But then again, it's one of those things that you can ask Grog or Gemline you can.
I was an iOS developer for like 5-6 years and I don't miss dealing with the App Store. But there's also there are reasons that you need to right? Like I get it, but if you can avoid it, I think it's better just to build web apps. I find it's good for the Internet to build web apps in general. That's a more altruistic approach. I think we are, we have given app stores too much control now for notifications that for for
brick, we have got an increase for a, for a mobile app. And when I show them that it works just as well on the iPhone 5 AC, they're like, OK, what about notifications? That's where you say, well, unfortunately the two cartels of notification, push notifications, that's what forces us to eventually do our web mobile now. What would be nice is if Apple just played nice and what gave us access to notification their API, but they don't want to do that. It would be fantastic if
corporate giants who are dinosaurs now but pretend to be dynamic would not be well like. I feel like the cheat code for just doing Pwas Android you can do notifications. I believe it's just Apple, but you can just do SMS messages, right? Yeah, and that's probably what we'll do. It will be a big, and I'm not even sure that if you go with one established API like Twilio,
that will be so much more expensive to send SMSS them to, you know, to pay for Firebase or whatever else you're using. I don't know if Apple's API is free, probably these right? I'm not sure I probably. But look at, look at the market in Greece, for example, we have Viber. Viber, I don't know if you know it, it's in Greece. It's so popular for some reason it has exploded over the last five or ten years. But when you look at how much they, they, they ask you to pay to have a business account that
send messages, then you start thinking, are you kidding me? Just because you you have a stronghold on the stronghold on the market, I will pay €300 per month to have an account. Something crazy I searched a while ago, it is too expensive. So the government. Yeah, I just had to go through. I'm using Twilio. I don't know if I'll stay there, but you have to like, apply for campaigns just for notifications. Show them that like people are
opting in and they're OK with your texting and like what a pain in the butt. But it is what it is. Because I actually got some really good feedback with like Killswitch. I was only doing emails and one of my beta testers is like, I don't think I would ever pay for this service if it was just emails because emails easily get buried and like missed or even spam folded. He's like, honestly, like text messaging and then like in like
really urgent cases, even like phone calls. And I was like, yeah, that's a good point. So now I'm implementing it because I just feel like it's an important feature. What do you think about Magic Link authentication? I like it. I think it works. I, I think it's great for people that don't use password managers.
Like it's a lot more secure, right? But with like for like in the case of kill switch, I don't know a good way to do it because you need to have like Right now I'm doing like basically like master key. Like I'm wrapping my encryption master key with a password. And there's like not an easy way to do it without having a password, you know what I mean? Yeah, yeah, yeah. So you need to do the end, do you? So do you do OTP? Not not yet, but it's on my To
Do List. I do plan to implement it, yeah. Coming back to something you you asked before, which I didn't answer is how do I do rate limiting and so on. I mean, the standard approach is hammer right on on Elixir. It's it's a good one. I've used it, but I've I wrote my own Genserver with buckets without like a regressive curve of how many are allowed per five per one minute per 5 minutes for 10 per whatever to rate limit queries.
So I have a web app where people are entering so they're using my API key to ask the government for the company tails with a certain tax ID and it's free. The the limit is very generous. We're talking about 100,000 requests, never going to reach it, but somebody could have used it and exhaust my allotment for whatever reason. So I just wrote a gem server that does basic rate limiting. So you can use Hammer, but you don't need to. You can if you just think of one simple rate limiting scheme. It's doable with a Genserver.
Yeah, but why? As you said with Oban, why write your own queuing system? It's, it's already there, the standard solution. It works and it's reliable and it does so many more things than you'll ever do, especially if you assume that you'll ever do them correctly. Yeah, yeah. That's the problem, building it correctly, right? Or passing Cass X and goodbye. I have a web app that I wrote. It was my first big web app. Never launched but is now influencing the scope of the update of Brick the SAS. And it was running like 6 or 7
caches for data from open street map, for data from APIs amazingly well. It worked amazingly well. That was an app where I, I look at the app I built in the summer of 2024 and I'm thinking I built this like that mean I built this, I built this, yeah, but and it's still maintainable. It's still easy to read. It's still easy to understand because Elixir it somehow. I don't know about you, but it leads me to write cleaner code. Not in the clean code sense, but
better structured, nice modules, composable functions, pipelines with pipeline operator. Every moment I spend writing PHP and mix JS TypeScript, I wish I would be writing Elixir night right now. 100% I feel the same way. I have another project where it's like a Chrome extension and I hate when I'm writing TypeScript for my Chrome extension but I love my back end because it's Elixir.
I don't have such a big problem with TypeScript because it saved my butt. What happened was when the first version went well, the 0.5 version of the app was being written. It was still in JavaScript and it was a disaster. My God, it was just endless, endless bugs all over the place, responses not matching for the server and so on. And at some point the CEO of our development partner forced them to switch to TypeScript and sound lead was full of red squiggles. And then they squashed them to a large part.
And so now I do when I'm writing XJS that I can define the types that I expect. I thought you. Just put any every. You just put any everywhere when you use TypeScript. I put any in things that are obvious. Like if I have a mutator, it is called mutate. It's any. It's never going to turn anything else other than whatever a mutate. Why do you need to specify? It's like this is not this is this is too much. It's too much new tape is any I don't care whatever user SWR
returns, but all the others strings, nulls, undefined, whatever that I find it quite useful. And for that is an LM is also useful like here's the API response. Just write me the interfaces copy paste goodbye by hand. So for me, for that web app, if I ever ever ever, which I hope I never ever do, I needed to develop something next JS, which I will not do because next JS is going to crap. Also, there's no way I would
ever write JavaScript. No way JavaScript just a pile of. But at least TypeScript makes it tight, like tighter. And I like the function too. Yeah. All right. Well, this was fun. I think we can wrap it up. We've gone on like 2 hours, but it's always good having you on. And yeah, yeah. And you're, let's plug your new book that you're currently writing again, and the link for it is in the description of this.
So you guys should go check it out and support Isaac. Thank you. But I forget what it's called. Elixir Engineering. Software engineering and there's another one which is called Phoenix product codecs, which is. I've parked them for the time being because I'm too busy end of the year, but I will resume them in January. And the one is about writing an API client, the other one is about writing an API server. So it covers both sides. Amazing. That's awesome. Yeah. Well, again, thanks for sharing your knowledge with us and I
always have a good time chatting with you and everyone else. Thanks for tuning in and hope you guys have a good, good weekend.
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...