In this episode of the Elixir Mentor Podcast, I chat with Isaac Tsalicoglou, author of Northwind Elixir Traders. We explore database modeling techniques, working with Ecto, and his fascinating transition from mechanical engineering to Elixir development. Isaac shares his experience creating a practical guide for database modeling in Elixir, explaining how the Northwind Traders project helps developers understand complex relationships and query optimization. We discuss the benefits of SQLite for learning, how to effectively manage database migrations, and the challenges of schema changes with real-world data. Our conversation covers database architecture philosophy, performance optimization techniques, and the importance of understanding query execution plans. Isaac also shares valuable insights on self-hosting, data privacy considerations, and the fundamental differences between hardware and software product development. The episode concludes with a discussion on development principles and startup philosophy, offering practical wisdom for engineers and developers across disciplines. This conversation provides valuable perspective for anyone working with databases in Elixir or considering a career transition into software development. Resources Mentioned: - Northwind Elixir Traders:https://leanpub.com/northwind-elixir-traders Connect with Isaac: - LinkedIn:https://www.linkedin.com/in/tisaak/ - Website:https://overbring.com/ SUPPORT ELIXIR MENTOR - Elixir Mentor:https://elixirmentor.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
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. All right, 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. Today I'm joined by Isaac and he already tried to coach me with his last name. I don't want to butcher it, so I'm going to let him introduce his full name, but he's a software engineer and author of Northwind Elixir Traders, and I'm excited to have him here. We might be having some technical difficulties because I don't you. Should be able to hear me but. I do hear you, but I can't see you.
Yep, I'll use a built in camera. It's worse, but it works. OK. It we always have. There we are. We always have technical difficulties right when we're supposed to go live. There we go, There we go. Hey, well, thank you so much for joining me. I'm excited to have you here. Thank. You.
Can you go ahead and just give like a quick introduction to yourself, who you are, what your background is? And yeah, we'll kick it off from there. Yeah. So hi, everyone. Thanks, Jacob for the opportunity. My name is Isaac. You don't need to remember. The last name is difficult to pronounce. I'm a mechanic engineer by training. I've worked for many years abroad, so I live in Greece now. For the past five years I lived in Central Europe, traveled the world in a corporate carrier, did various things like R&D of
turbo chargers, product development, machine learning, Actually in R&D, that's how I really programmed a lot in Python, not Elixer. Back then, Elixer didn't exist yet. And I, I, I wrote a book that was, that has been a surprising success, and that came after two years of getting immersing in the Elixir ecosystem. I love that. So there we are. Yeah, I, I, I started reading your book.
I haven't gotten as far through it as I was hoping, but I think it it's it's a great resource for just like getting started understanding how databases work, like how Ecto works, and kind of just how to efficiently build your schemas and work with data in Elixir apps. Yeah. I'm curious what made you want to go with the Northwind application? So I don't even remember why I
went with Northwind. I know that I remember that there's a Northwind traders database at some point, which I have in an old Microsoft Access 97 CD way back. And So what happened is I, I got into Elixir, then Phoenix, Phoenix Live view. And as I was following tutorials and documentation, I realized that I'm having troubles building things the way I, I imagined them. Like I would set up, I would create the ERD, then the
relationship diagram in DB diagram dot IO. It's a very nice website like you, just because it's nice and useful. And then when I would go to transform that into the, into the schemas and the migrations, it worked. But I always felt like, OK, I'm following something by the book. And what if I change something and when I change something, things broke. It has many belongs to. I mean, it's not that difficult in the end, especially hopefully the way that the book explains it is it makes it clear. But it always knocked me that
I'm following the happy path. And I do not know what will happen if I I mean, how can this thing break? Like how far can it break? What could I do differently? Let's let's explore how this works. And at some point after doing a lot of projects, I mean you don't want to see myself hosted Git, I run GT. And now for Joe, after many projects, I said, you know, enough of that, you know, copy paste work.
Let's sit down and take a database that is laid out properly and it's simple enough and try to model it with ecto. And I started doing this at some point I realized, well, I'm doing this anyway for myself and it seems to help me along to understand how this works. So why don't I just write a couple of chapters. I was familiar with Lean Pub also great, great service, great website, great people too. I mean fantastic people. I really like working with them. And I just published 2 chapters in April 2024.
And the pickup was massive. And I thought, OK, this is now my weekend projects and project. And for almost an entire year, with the exception of four months in between the summer, I was too busy with other things. I kept updating it and I kept exploring and I keep building it out. And at some point it became so at some point the aspiration was only more just to, to represent Northwind Traders, but to also use my lecture skills, which were all the time growing because I have been programming a lot also over the summer to,
to teach things that I have learned. So for example, there is a chapter in the book where we import the Northwind traders database. And you can either do this manually and say import this table, the customers table, the orders table, or you can say, well, I don't care. I don't want to be manually entering the table name before I imported. I just want to have import all and it will automatically determine in which order the tables need to be inserted. So suddenly I found myself writing an algorithm for determining the order and then it turned out a few chapters
later that it had a bug. So then I wrote a depth for search in Elixir following Wikipedia page for the pseudo code in Elixir, but to determine the order in which you build up and turn on the table. So the book started off as Elixir, Ecto and SQ Lite and became something more like, OK, now you can learn or you can practice Elixir but also learn those things. So it is a bit of AI would say a
recap application of basic and a bit more advanced Elixir skills. And you learned database modeling the process. And you have to fight SQ Lite only twice. You have to fight SQ Lite because it's not as feature full as as post Chris. So it's, it's been a weekend project, a fun one. And I learned tons from it. Like after my fingers, I, I was thinking, my, my friends, my fingers are flying like Elixir is flowing out of my fingers on the keyboard. After spending so many hours,
you know, reworking the chapters and making sure that it all flows more sensibly because I have to write 2 chapters from scratch, almost. Because the way that everything had been developed was, yeah, it worked, but it was it had a a lot of back and forth between them. And that's how the book came to be. And so far has received good to excellent feedback. And I'm happy to take this further because it seems to be something that's missing. I mean, there are many great
books about Elixir. Many there, there are a few books overall about Elixir, I would say compared to what you can do with Elixir. And there are tons of tutorials online or short blog posts saying here's how you do this, how you do that. And I always approach things from an exploratory angle. So it seems that this has been something that people appreciate. Yeah, no, I love that. And what's great is, yeah, there are few books in Elixir, right. But I think we're really lucky
that the ones that exist are amazing. Yeah, they're because like I really haven't ran across a bad Elixir resource yet and I think that's pretty. That says a lot about the Elixir community and the the knowledge base that everyone is sharing, which is pretty cool. I think important is also to to admit that different people have different ways of learning. For example, I I went through Programming Ecto, which is an excellent book, but for me personally, it's not the way I learn.
Programming Ecto is very, very complexion. It's very regimented. You go through it and you know, all of ecto basically. Yeah. But that's that's a lot. So before I apply it on something that I use. So if I don't apply what I what I learned on something that I need to learn, I need to solve, knowledge comes in and a very small part remains in the brain. So the way that this book is written is to say, well, we have a mission is to model this thing and to run cures on it. And difficult to let's see what we need to use.
If we need to use something, we'll use it. We are not covering all of Vecto, but if you have gone through the those basics then the documentation is just one step away so you can build out anything else you need. I like that. I feel like our our approach to teaching is very similar because when I started my YouTube channel we were talking about this before I went live. It was originally back end stuff and I started it because I was like, there aren't there aren't many resources outside of books
and things. And I know like when I first started a program and I really enjoyed video tutorials and kind of like the hand walking, right? Like you like you like being shown how to do things, but also you don't really have to deep dive into things that you're not using. So I kind of like to teach like, hey, we're going to build something useful and we're only going to touch on the things that we touch on. And like, there's no need to dive deep into things we're not going to use yet because I feel like that can overwhelm your, your knowledge pipeline,
whatever you're however you're learning, you know? And so, yeah, I like that. And what else? What, what I think is funny too, is so Isaac and I have very similar backgrounds. We both, he's a mechanical engineer, I'm a structural engineer. And we both actually have worked for family businesses that have kind of formed us onto our software path from various things. And I think that's really cool because I started as I kind of started doing mechanical
engineering work and like electrical engineering stuff because I would automate, I would RIP out old hydraulic pumps and replace them with vector motors and PLCS and all this, all these things. And I started doing like the drag and drop like ladder logic, you know, just. Yeah. Yeah, yeah, just timers and latches or switches. And I was like, I want to do more. And that's I started teaching myself how to program and I started a lot with Java
unfortunately, and then slowly moved into JavaScript, Swift and eventually ended up here using Elixir and now I don't wanna do anything else. Fun fact is I started with with basic exactly where I'm sitting now because this apartment used to be the the first office of the family business. And here where I'm sitting there used to be 286 or 8086 way back
in the 1980s or late 80s I guess, and I would just do 4 loops and make the sound of make the beeps go higher. If you are revving an engine then I didn't do much for years when I was in high school. Then I did a lot of, well, C&C in my studies, but super superficially, like not really programming something complex, just algorithms. And then when I was doing R&D work, I got into Python And that
was seen back in 2009 as being something weird in the world of mechanical engineering because it was all Fortran, Fortran and CC for simulation codes. And I automated the heck out of everything with with Python because I found the R&D work to be drudgery like you. You sit there and you input new part numbers for the turbine shape. You run it through a program that will generate some geometry. This will take maybe one minute to give you a very simple estimate of how well the turbine
will perform. And then you take the geometry. Then you manually create a 3D model and you mesh it, and then you send it off to the cluster. And then you wait for 18 hours to see how well your design performance. I said this is just stupid. At least at the very least they should let an algorithm run the fast simulation. Give me an allegedly optimal design and I'll take the allegedly optimal design and then I'll wait for 18 hours and for four years I everything I touched like I I didn't want to any any more input on a label. That's how I got into Python.
In retrospect, the Python I was writing was very, very functionally written. No, no classes, no, no objective oriented programming in that sense. Also, as engineers, we don't usually put much emphasis into becoming great software developer, just want the code to work. And then I for many years I didn't do anything. Then again, I touched Python because I did a start up with machine learning because I was doing all the machine learning as an, as an R&D guy. And then the skills became doorman for a while until in the
family business I got fed up with manual labour for offers for inventory, for product items and all that. And I sat down over a full week. I use fast API in Python And I I automated the core process of the business and that came after failing with jungle, which I found super weird to work with because it is because object oriented programming in my in my mind, I'm not, I'm not dissing it, but it has too much abstraction, way too much abstraction.
Like you have to when you when you pick up Jungle, which is great or fast. APA is simple, but Django is is also great, gives a great admin interface. But then when you want to actually implement something complex, you need to 1st understand how the guy who wrote jungle, the team, think about how they structure the classes and the objects. And so you don't actually learn Python, you learn Jungle and you get into the brain of the maintainer. Whereas I feel with Phoenix, even though it has a DSL and even though it has its peculiarities with the plugs and so on, it's way more
straightforward. And I like straightforward things. I don't want to think in 1000 obstructions. That's why I also like it like those way. It was very, very straightforward once you get the hang of it. Yeah. And so I agree again. Oh no, go ahead and finish. Sorry. No, I didn't say eventually. IA friend of mine, he's, he comes from academia and he's programmed in Scala professionally. And he was telling me all about functional programming. And it was a discussion in the
summer of 2022. And soon thereafter I installed the lexer on my Debian Linux and I played through some exercise on exorcism and followed some tutorials. And from the moment I saw the pipe operator, I got hooked. This was the. Yeah, this was the moment, Yeah. Because it worked in my mind like my old HP calculator with the RPM where you say 1 enter 3 plus this kind of prefix notation. And since then I've been trying to program everything I can in Elixir, even though you lost me
again you. Did we can still hear you but we lost your video? Something's weird is happening with this webcam, so yeah, I'm back. There you are. So what I was saying so soon thereafter I got into Elixir, I started programming and I tried to program only in Elixir, though it's not, it's not possible because I I'm also paid to program an app in PHP and XTS
now for the past many months. But coming back to Elixir is always a breath of fresh air because it's so, so much cleaner. Everything's so much cleaner. And Phoenix live you, you work on the back end. You don't have to deal with pinging back and forth between a back end and a front end and Jason, the wrangling and all that. It's just a great programming language and the community is amazing. Yeah, I agree. Yeah, the things that got me hooked before I really, truly understood, you know, all the power of OTP, it was the pipe operator.
And then when I wrapped my head around pattern match in, that was the game changer as well. I I there are some things that I used only later, for example with the with construct and I have an app that I haven't released which what it does is it pulls Norwegian meteorological service and then it checks to see you get a. You want to get the weather data for a location. The location can be shared among
different. So if you want to get in a in a Geo has grid and you can have multiple location without that grid. You don't need the resolution of 100 meters. The weather is not going to be different between the other part and the other apartment. And then it follows with I guess. I guess you'd call the monad where it there's a Python that says maybe. So this is the location. Maybe fetch the data location, maybe fetch the weather maybe. So you start with something that is just a tuple of latitude,
longitude, and you have a bunch of maybe do this, maybe do that, maybe persist in the database, maybe report, maybe process. In the end it's all transpired and then you get something shown in the database. And the more I played with Elixir and I learned to use its constructs, the more I maybe sometimes I will use them. For example, when I discovered enough reviews, everything was reduced for a while. You know that. I feel like that's how it goes,
right? Yeah, or reduce, while of course I will do the reduction. That's why I tell everyone coming from like object oriented programming languages not to don't rush into Genservers because you're going to use them wrong. Yeah. And I did, I did, I did for a while and then I had that. So last summer I was, I was busy with exactly that. I'm running a startup for property management in Greece, focused only on Greece. And we have we had an idea with
a Co founder to do something for the top line growth. So yeah, we give you a software if you're a property manager that helps you to increase your operational efficiency of your office. But so far we haven't give you something to to to grow your business. So the idea was to create a directory of property managers. And I had decision to make before I so before I decided to jump into professionally developing software for money, I said, let's try to make this in Phoenix live view. And I went through six weeks of frantic work, half of July and
all of August. And I pulled out all the stops like Genservers, live components, forms, multi step forms. It was an incredible learning experience and the Genserver is a tricky 1 because you once you learn it, you say, well everything can be a Gen. server. Yeah, that's that's the problem, right? Yeah. And then you start to think like as if the Gen. server is an object that does things for you. And if you do this, it becomes a bottleneck because everything
goes synchronously through through one bottleneck. Yeah, but the language give you so many amazing things that are going to work. Like I can't, I cannot find something right now that I could not do with Elixir. This camera is problematic, sorry. Oh, you're fine. I'll switch camera, the external 1 is not working there we are lower resolution but. That's all right. I feel like we're video is
struggling with bandwidth today as well, but as long as we can see you and hear you, we're good. But yeah, I yeah, I agree. I think there you can't really there's there's nothing that you can't use Elixir for. I think it's pretty much a good solution for everything, at least like with back end, back end API work. Now I'm curious when like I like, I think like data
architecture and like figuring out schemas and relationships and you know, everything you do between database tables. And I, I think it like it's a hard skill to learn. And it's kind of one of those things you can't really learn without creating a bunch of projects and you slowly learn how to lay things out. And like, I'm curious, how do you, how do you approach that piece of it in in your book?
Do you? Yeah, given that the the the database schema is already given from Northwood traders, there are some thoughts about how you could build it out. But we don't do anything that's that's way out of the schema. We add one more table for countries and we import data from a CSV file. OK. But we don't do any re architecting in terms of changing the, you know, the, the country's hard coded, for example, customers, it says United States or Greece or whatever. I would say Greece, Germany,
France, Greece is not part of the data set. But we don't do this thing where we would, we would normalize by changing the, the field to a country ID to link it. So the book is not so much about starting from scratch, it's about modeling an existing database. Yeah, in other. Cases I see. Yeah, in other cases, I mean, I don't know when I was trying to learn Ecto and the Phoenix and so on, I don't know how many, how many projects and how many different Erds I built.
And I stumbled again, again on misunderstandings that I had about Ecto because it had also been a long time since I learned databases in my studies. But now that I'm doing more and more complex things, I find it's really useful to start small, start small. And so think big, but start small, like late. What I do is I laid out on a, on a diagramming software and I think about what else might come. And I try to not make it the tangled mess because that's the biggest risk you can have
because you can have so many different tables and you can normalized to an extent where you would need to join so many things and you don't need to make it that complex. And then I try to zoom into, OK, what do I need for the first version? Because my biggest fear honestly has always been migrations with data in the database. This worried me. And that's why there's one chapter in the book where we change the field of the price of
the product price from a float to 1 integer. And that's super simple. But it is a litmus test of yeah, it's OK, don't worry you have data and database. You don't need to discard it and re import it. You can switch it with SQL, do 2 migrations and 1st convert the price in a new field and then rename the field. And so I would say aim to avoid useless migrations if you can avoid them, if you can, if you can predict if you can run ahead
a bit and see, well, I might need this. So if, if I end up doing this in the future, I will need to migrate. So let's try and build the core to not have to change that as much because it will change at some point as it grows. You will, you will need to change it. I guess I haven't stumbled onto it, but you might need to change it for performance reasons. Yeah. So that's how I approach it. It's I try to, I try to avoid deciding it.
It's avoid deciding too early. So like a Toyota second paradox, delay decision making until the moment we have to make the decision. But no, like forecast, what kind of decisions might I need to make? Yeah. And then defer it until it becomes necessary. I let people underestimate the power in planning as well. And it's just like when you're creating a product, right? You want your your MV to be as few features as possible and that's what you want your database to be as well. Like you only want data that you
need and you really want to think through. Like should this be in its own table? Can this be a column? Do query speeds matter? Like how often am I grabbing this data? And like, there's a lot that goes into the layout of your database architecture. I think it's a bit of the, the whole story about, I mean, OK, it's not about Elixir specifically, but I think it's worth mentioning is that the whole agile and MVP mindset, there is a downside to it where
people start to say, well, I don't need to plan, I just do. And if you just do, you're not doing agile, you're merely doing rework and rework and rework. So you do and we do and we do, and you're doing things that you have you could have just well avoided. Is that is that called water? I think is that waterfall. Waterfall is a is a nice, what do you call it? It's a, it's a scarecrow. People put it up and I don't think that anybody ever does
waterfall, not even in hardware anymore. But people do a lot of rework in Agile, too. Yeah, yeah, I've done a lot of product development and some product management, and the whole point is to go fast. I mean, we developed a handheld radar to see in walls in 12 months. Wow. And in 12 months for software and hardware. Of course, we based it on something that already existed, so we didn't do fundamentals research for everything from scratch. But the idea was there to see, to have a clear product vision and to always work with
constraints like with trade-offs like how big should the antenna be, for example. Well, I don't need to fix it. I don't need to say it's going to be so many centimeters by so many centimeters. I give a range to the engineer and he needs to give me trade off curves. Like if the antenna is larger than it has a different center frequency and then the performance is different. And then kind of it's something that converges towards something that works. And in software engineering, the way I think of it is run ahead a bit. As I say, put down what your product vision is.
So yeah, OK, you do an MVP, but you it's good to know where you might end up. Like already bake in some things in the concept that will allow you to go to MVP version 2, version 3, whatever to the full product without having to redo everything. Because redoing everything is super expensive and always comes with bugs. Always. And with migrations, that is. I'm not afraid of something, actually, yeah. Migrations can be very difficult, especially if you're
changing types and altering data with them, right? There's a big difference with just adding a column versus migrating data. Yes, because you need to ensure that everything that you migrated got converted correctly. And it doesn't even need to be a migration in the sense of echo migration where you add columns. It can even be a different way of organizing data. For example, in the I'm going to release a new version of this brick dot GR web app where we have disparate. So we have the ability to upload files, attachments to a property
to a tenancy to tasks and so on. And the way it was developed for the MVP and it was OK for the MVP. I mean, I'm not talking badly about it was it was done pragmatically. Let's say is that every every entity has its own embedded schema. If you were to put it in an ecto lingo for the attachments, it's a repeater field in a WordPress ACF Pro now details. And now the idea is to be able to do file management across all
properties across everything. So you need to have a File Manager somewhere. So now comes the difficult task of re architecting everything to refer to a new table which has files, their S3 path and their file size and their object. So octet stream or whatever it is like the content type. And that is not technically difficult, but making sure that everything will migrate successfully so you can then go to the front end and change around every place where you upload the file that it worked directly with a new concept.
That is not trivial. It's not technically difficult really. It's just it's simple. But you need to make sure that the simple thing you want to build actually works. And if you have already data that's, you know, you get this gut feeling that I should not mess it up. But of course you don't do it in production, you do it in a staging environment. Well, and just with changing data and then if you're not just limited to like web applications, you have to think about like backward compatibility because people
don't update their apps. And yeah, you can. It can get it can get tricky. Yeah, and I find that is the biggest problem with the split between front and the back end, which you can avoid with when you do Elixir. Yes, yeah, if everything's a web app, right, everything updates when you tell it to. That was that was my another moment I had I wrote an app one one of my, you know, trial balloon apps that I wrote. I haven't, I have, I have published it, but not to the full extent is it's an app in Elixir that downloads the the change logs of the Linux kernel.
Then it parses them into separate commits, shows them in an SQLite database. And then you, you have the standard boilerplate Phoenix live, you with a with a list, you can add new change log. Which version? This version, it downloads it, it stores it. Then it can say process commits. And it was an aha moment when I was able to trigger the update of a live component that show you how many commits are in the database from ex. Yeah, I mean, I knew it can. I knew it can do it.
But to see it live and to see the number go up, it's always fascinating that you didn't need to touch anything. It's really cool, yeah. Now I haven't played much with SQLite. What made you like go that route? Is it just, is it a database you prefer using or is it just kind of the easiest to get up and running without having to like have a separate instance or anything running kind of thing? I mean, the spinning up docker
container with postgres is trivial even if you hosted bare metal, which I do, it's also pretty trivial. What is not so trivial is to make it work in a clustered setup. This is something I'm still working on to to learn and to do it properly. For the things that I've been programming that I have have a very small scale. I find that it's it's over to go to Postgres if you can avoid it, and there is a certain feeling of simplicity when you have everything in a single file.
OK, that is nice. More free I do. The wall you have, you have 3 files you have the server memory, you have the BB, you have the BB8 SHM which is some kind of like a paging file in the right ahead log. But anyway you have files on on the drive. Whereas in in Postgres it's some we heard the opaque and that's the one reason. The other reason is I used SQLite extensively, but not with complex setups when I was doing R&D, because the way it worked is you would send a finite
element calculation, calculate turbines or shafts or whatever and you would get a multi GB file back from the from the cluster. And there was, there was a software suite that we're using where you could load the the database file as was called with the results from the calculation. And then you could run very simple analysis on the on the nodes to see where the stresses or the strings are high. And I had to do some calculations that require me to get access to the to every node and to pull data from every node to calculate fatigue and so on,
like technical stuff. And I couldn't figure out how to do it with a with a GUI. So I did a dump of the whole thing into SQLite. And then I would run SQL queries across the nodes and say, well, find me all the nodes where the strain X is so much and the strain Y is so much. And so I I learned espalite in 2000. I learned espalite. I mean, it's not something difficult to learn, but I played with espalite first time in 2000, 2010 and I still remember. It's like a very reliable
workhorse for such cases. Well, and it's great for small projects, especially like if you're not planning on hosting thousands and thousands of users and having like, you know, a billion records, it's a really good option. What? In fact there's a guy who posted on Hacker News he has 6.4 terabytes in a single SQL. Yeah, but they're The thing is that his application is read heavy. I think that's the the thing
that kills. If you don't have multiple concurrent rights, then you should not go with SQL. That's at least my take away from everything. That makes sense. But if you if you have a read heavy application or if you have data that doesn't change much. For me, Escalade is like my like a spreadsheet in a way. Now what I also do, I like to do is to take CSV files, import them into Escalade, things that don't change that much. And then I have a database, I have a spreadsheet and a file that I can access programmatically around queries
without bothering too much about setting up Postgres and backing it up and so on. It's quite, quite handy. And the other reason why I use it for the project is because I wanted to explore something that is that has constraints. I think you learn the most when you have to do things under constraints, then you need to be created. So there is no support for ALTER column in SQLite. So when you want to change the type of a column like from like the price, from flow to integer, you need to create a new column and then then do another migration and then rename the
column. So it's all a bit or there's no support for. I think there's no support for named constraint. So when you do validate constraint, you can't validate foreign key constraints in ECT with Escalite the way you do it with post Chris. Yeah, Escalite will not so XQ light the client, but it's because of Escalite will not return to you the constraint name that was violated. So you what do you call? You roll up your sleeves, then you create a new custom
validation function, which we do in the book that reports the proper error in the field name so that you can have a validation of the that the foreign key actually exists. The foreign key ID exists in the database. So it was done also as as a as a excuse in a way to see how far you can push it, deal with the consequences, see what works, what doesn't. And there are some things that work really badly, like for example, there's no support for interval. So if you want to do a rolling,
rolling or like apply window function to calculate the moving average of of orders or the value of orders across dates, you cannot do it in the in the same easy way as as imposter. So there's a whole lot of you know, you need to do a lot of things and escalate is not happy at all with those things. The queries are super slow. But then this gives you an excuse in the book to to learn about profiling queries, explain the query plan, understand where the bottlenecks are coming, learn how to to profile functions with with a timer
module of Erlang. I mean, it's all done for for the purpose of learning exploration. That has been the interest of the book from the beginning. That's actually really awesome that you run into doing like profiling of queries and like performance. Because I feel like that's like it's something I've never had to think about or experience, especially at like a small scale project. And for you to like kind of be able to replicate that with this project, I think that's like that. That's awesome. Like you're like people that are reading your book are going to
be getting knowledge so much earlier in their career because otherwise you don't deal with that stuff till you have to. Like 'cause you have scaling issues or you start, you know, you start dropping connections to your database cause queries are taking too long. Yeah. And it is not to become an expert in in query planning and so on. I, I am not an expert. I what I do is I say, well, this is running super slow, let's make some changes. Oh yeah, it now runs even slower. But why? Yeah. Yeah.
So let's drop the distinct call, you know, to get the distinct dates. Oh, now it's super fast. Yeah, but we get the wrong results. So there's a whole lot of of playing around with the with the way you formulate the query because it has three sub queries are cursive, CPE and so on. And then you say, well, OK, what, what can we use to understand why this thing is slow and it's not going to teach you how to profile profile security, but it plants the flag to say, well, if you ever stumble across something like this, there is a tool that you
can use. You can also profile them with benchmarking. There are some trade-offs that happen when you pick SQL Lite and you know in the future that you can refer back to it and you have planted the flag, as I say, to, to know that this can be done. And you can, you need to be a bit of like a Sherlock Holmes to figure out why, why it's slow or why it's, it's not as fast as you expected. And the finding is doing that kind of a query with, with Esculite, at least the way I have the idea to implement it is not something that Esculite is
happy about, but that's OK. I mean, we have to come to chapter the last chapter, chapter 16. The the penultimate chapter, the last one is a bit of has ideas for where to take this further, but we went through the we got to the full book and we stumbled across two situations where Escalade is a is a is not as easy as Postgres, and that's actually fantastic. I imagine you'd say what many people consider a toy database, because that's what everything uses on your phone to store data. You can take it so far, and when you start to do complicated
queries with recursive table expressions and all that, then yes, you have an issue. Well, I consider this a win. That's not a problem. Yeah, yeah. Well, I think it's very important to know a lot of people just pick the popular choices for tech stacks right when they're building a product. And it's good to get your hands dirty and to know limitations of certain aspects of your stack before you are really tied into a decision down the road.
Because, well, like, let's, for instance, like my SQL versus like Postgres, like do you know what limitations you'll run into choosing those two databases? I it's like it's important homework to do and it, it all depends on use cases of your app and how many read queries versus write queries, how you want to query data, how are you filtering things? And it's just, it's good. It's good to start thinking
about those things early on. And you're probably not going to need to make that distinction between, for example, my SQL and Postgres until your app is so successful that then it's a nice problem to have and. Then it's also a really hard problem. Yeah, yeah, it's a hard one also. But but then you have then you should have the money to to to invest in it, but to delay, for example, a product launch because you are deliberating over this framework or that framework or this database.
The other one, I think it's, it's, yeah, Ivy. You can consider it pretty much organization, but there's a whole tendency in the software development world to become fascinated with something, or to become entrenched in a choice instead. Of planning instead of the doing right, yes. Or to impose so to make the choice of something that which determines the success of the project, like for example. Like some like pretty much your
optimization and things like that and. Yeah, I've done it. I've done it myself, Yeah. Me too. It's very difficult to not do it. So when you're an engineer, you want everything to be perfect from day one, right? And. Yeah, but it never is. And there is unfortunately a lot of a lot of, I call it chicken clacking online. I like that. You go, you go on hacking news and somebody mentions my SQL and people go, why would you use my SQL when you have Postgres?
I mean, my SQL runs I don't know how many, who knows millions or billions of installations. You're probably not going to to succeed or fail because you chose the one or the other. Yeah, and I mean, no matter what you choose, you're always going to run into like a weird little like nuance with each either 1, you know, like you're not going to avoid it. Yeah, and that's the part of the the mindset, the book is the engineering ethos. This yes, we want to do this
perfectly from the start. That's the aspiration. The reality is you knock your head against the wall until you breakthrough. Yeah. And there are a couple of points in the book where we have to advance backwards, call it and go and fix things because yeah, the prioritization of the tables here was, you know, I note down in the chapter 10 that, well, it seems to work, but ideally would have done it with an algorithm doesn't seem to be needed.
Well, a few chapter later, chapters later, I didn't know this at the time, this problem would would bubble up. And that's why we do a depth first search to determine the proper order of the table importing process. But that's OK. That's also part of the. I mean, the book tries to convey a mindset also, not just elixir. It's yeah, you'll be it out. And it's almost like talking to myself because I often want to do things, do it right the first time, which is. Right, But you can't see everything you can't see into the future, right?
You don't know like what I think today could be completely wrong tomorrow depending on like shifting of the use case or just possibly just querying performance. Or maybe you're using your data differently and you just have to shift. Or maybe new feature comes in and you need to. Yeah, exactly like this document management feature was unplanned, was never planned. It was never foreseen that we would need to do something like this. But it turns out that it's an important feature. Well, OK, this breaks a lot of
assumptions that we've made in the model of the database. OK, I say if you can apply your mind to something. The beauty about programming is barring physical constraints like physics constraints, you will figure it out somehow. You will do it. Maybe this performance as you wanted, maybe it's not as pretty as you want, and maybe it doesn't conform to the best practices or the sexiest way of doing it. But if it works in the end and the customer or the user is happy you've achieved the goal, then you can start looking to make it pretty fast.
If you can make it prettier and faster. Yeah, prettier usually goes well, faster always. Yeah, well, like how many times? I feel like it's a little less in the software world, but I remember when I was building hardware and machinery being the the architect and the builder, you build it a certain way, right? And then the second you let someone else test it or take it for a test drive, you're like, they're using it in a completely
different way than like my original intentions. And they find all these edge cases and instantly break things. And that is, that's what's fun about being an engineer, right? Because you don't see different paths a lot of times when you're building something and then you learn to shift or avoid the wrong path, right? I think it has to do with how much you you let form over function rule the rule the game. I was watching a video 2 days
ago about the iPhone 4. How remember the iPhone 4? You're holding it wrong, because when you're holding it like this the the antenna gets. Oh yeah, and the famous Steve Jobs line is just don't hold your phone that way. Exactly. Or I mean the older ones might remember the Nokia. What was was a Nokia phone that was also a handheld gaming console, The Taco which you have to hold like this, remember? Yeah, yeah, I. Don't know if you've seen it. It's it's a weird, it's a weird one. I kind of want to look it up, I mean form. Something.
Yeah, it was. There was a whole meme about this that you're holding the Taco against your ear. Yeah, I remember this. Yeah, yeah, it was funny. It was ancient mean by now. But form can take different forms. Yeah, that is funny. I mean the form can be the design form can be the architectural choices that you said and in the end developing a product about or developing software, developing anything
that has uncertainties about managing the uncertainty. And if you don't manage it correctly, you will over complicate things or you will lock yourself into something that backs you into a corner and then to come out of those corners. Can something be super expensive? In hardware, we both know. I mean the software, you change the code and it's fine. But in hardware, if you have, I don't know, plastics, injection molding or cast, yeah, cast turbines or or machine shafts or things that that cost a lot of time, not only money, but a lot
of time to process. There you are not anymore. So, you know, fluid with. Yeah, it's OK, let's be agile. Let's let's we'll figure it out later. Now you have to figure. Out. Yeah, You can't really be agile with parts, can you? Sorry. I didn't hear you. Oh, I said you can't really be agile with parts, can you? With physical parts, not so easily. A little bit with like 3D printing, but that's about it. Yeah, well, what 3D printing does is allows you to, to speed
up the feedback loop between the design and whether it works. But in the end, it's, it's all about, I mean, people use and abuse the term agile a lot. It's something I've been rambling about for, have been rambling about for years, even wrote books on this. But after I saw that the agile community doesn't change its mind because it's now it's a certification game, I stop thinking about this. It's just nonsense because if you want to engineer something or develop anything, you need to manage your, I prefer to say you
need to manage your knowledge gaps. Like there are some things I know and I don't want to quote Donald Rumsfeld, who probably was not the best person ever, but he had this fantastic quote, which is an epistemological quote about the known knowns, the known unknowns, the unknowns, and the unknown unknowns. I don't know if you've heard this, that there's somethings that you know, you know. Yeah, there's somethings you know, you know. OK, nail them down. You don't need to bother with them. Of course, qualify whether what you know is actually true. Then there's somethings that you know you don't know.
OK, now you know what? The research, there's some things that you don't even know, you know, And that's what happens to big companies. And I've seen it first hand. Like there are companies where they don't even know what they know. They don't know that this guy has knowledge about this topic or about this framework or about this process or whatever. And so it's good for a company to map what it knows every now and then. And what kills you is usually what you don't even know you don't. Know. Yeah, Yeah, that's true. Which is chapter 16 of the book where I had no idea. I mean, I knew that. I mean, at the beginning I didn't know that SQL light
doesn't support interval. Then I knew that SQL doesn't support interval. But I had no idea that the SQL light with this complicated set up to replicate the interval function is so abysmally underperforming. And that's OK. You will always find things that you don't know. But that's why you need to pull things forward and map all those four quadrants so that at least you don't, you don't slap head your hand on the head like a Picard face palm and say, Oh my God, I should have read that
book or listen to that podcast or talk to that guy or ask for a second opinion. And that's it. That's the problem with development. What do you do, though, when you know something, but you forget you know? Yeah, that's the human condition, I would say. Nothing I have like, so I've gotten into this habit of one. If I have to do it manually more than like three times, I'll usually automate it with a script. But I have so many notes written
that it's like turning into almost like an encyclopedia of like daily development tasks kind of thing. Or you know, docker notes get notes like things where I just have to go and refresh my mind. I have it all just organized. Otherwise I I don't remember. Yeah, I I, I keep in every project. I keep a notes dot MD file in the in the kit I keep. So I keep notes on MV. So read me dot MV is beyond the standard one that makes create
is if you come back to this later, here's how you get it running or here's what you need to take care of. Source this environment file or run this first or migrate this. So things that I am not going to keep in mind. Yeah, I have a file on generic things specific to this project and I have always a features file. That's how I manage features. I do not bother with Kanban boards and Gira tickets and all that stuff. I try to keep it as simple as possible.
So like a markdown file flopped and everything and I write down then or deferred or postponed or to do or not going to be done. And still, that leaves a lot of gaps across projects where I don't do it yet diligently. I would like to give the habit of documenting these as blog posts, but if you have so. Many things. Yeah, that's a good idea. Yeah. Yeah, well, I mentioned this a lot, but Peter Ulrich always talks about micro blog posts.
And when you have that format and it's just out there, right, it becomes a good daily reference for you. Like if you're doing something like I wrote a small blog post about this and you don't have to dig through projects, but I do something similar with Markdown files as well. In larger projects, I'll always have like a documentation directory. And so I'll have my like root level read me. And then for like digging in deep, I'll just link things to like.
And here's how you deploy it. Have a whole deployment, yeah, read me and then whatever. And then however you build on it, you can just fill up your documentation directory. Yeah. The other thing I do now for the past one year is I have, there's an app on Linux at least that is probably also there for Windows and Mac, which called Zim. And it's like a desktop wiki. I guess people nowadays use Notion and some other things. Yeah, yeah. And you just have, it's like a tabbed, tabbed interface for
different files. So for every project I will have a file and I will dump things over every deployment or every server or every subscription I have, or just dump it there so I have something that I can refer to without caring where that file is. And it all gets backed up automatically so I don't ever lose anything Every everyone finds their way. There's no one way to do it. Yeah, I, I use Obsidian for a lot of my daily notes and things. And yeah, and that's really nice. And it's like anything that
supports Markdown, you usually will. You'll keep my attention because it's usually then everything. Like if I write a README in Obsidian, I can just copy and paste it to an MD file and you're just good to go. So the book is written in Markua, that's a lean pub, that's lean pubs. I mean the specification is open source of Markua. It's a marked on volume that supports a size and different. OK. Yeah. And so after writing so much
Markua Markdown for the book, it became all second nature that when I start to write the name of a function, I tap the backtick. So you get into the habit about about having everything having everything marked on, which when you render it in HTML looks pretty. I think it goes a long way towards making that knowledge reusable by others. You don't have to have one representation which is for documentation and one for presentation. Yeah, Yeah. I'm curious, when you're writing, do you write in just an
IDE then at that point or how do you how do you write? Well, initially I was writing in lean pubs. Online editor, OK, but when I wanted to start quality assuring things, I move the files into a git and then I used coding the open source build of without telemetry of VS Code and I wrote it there and that gives you a very handy a markdown preview that is good enough and I write in VS Code essentially. Awesome. And then, so then you can use
Git and git and yeah, yeah, that's great. Like. Yeah, and you have all the commits. Yeah, it's all at some point I've been thinking of switching to. Well, not for, not for LIMPA, but if I publish somewhere else for to, I think it's called ASCII doc. OK. Yeah, but I just don't have the time to. I'd rather, you know, I always get the. I try as I grow older to stop bothering about tools. Like if something works is good enough for now. If there's a big opportunity to
do this across many books, I will investigate at some point. Do not have to not lock myself into Limpa because anyway it's markdown so you can somehow convert it to other things with Pando. Yeah, well, it's nice to keep everything in your own repositories too. And then you just have access to. It's good to have access to your own stuff, you know. Yeah, I self host a lot. That's that's my pandemic hobby that became almost a business set up now.
OK, I, I'll go in like waves of loving doing everything, self hosting and then I'll go through these like minimalist things where I'm like, I don't want to run a server or anything. So I'll just, you know, have my droplet on Digitalocean. But I go back and forth. I, I go through bouts where I do this a lot and I love deploying things and setting things up. And because this, these are a bit of a design phase when you
kind of, it's almost like world building. I have those servers, this one is powerful, this one is less powerful. This one has more RAM, less RAM, SSD or not. In this location, I have 5 locations where I have servers now and they some things are are synchronized between them. And so I go through those phases where I design things and I switch things around and I love to make it work and then I don't want to touch it until the next bolt comes in. Maybe one year where I find that
oh I knew server was added and now maybe it's time to reshuffle. But to be honest since I found proc smokes VE. Oh yeah. Everything is proc smokes, VE, everything that worries, that worries me because it's one of the few times where I lock myself into a into something that is freely available. But I had discussion with a friend, he's also amazed by Proxmox, and he was saying what happens if one day this is not
anymore free? I said, yeah, OK, you will always have the old versions. Yeah, but don't you worry that we're getting locked ourselves into something that works fantastically well. But to replicate it with other tools, it is a big pain. And yeah, it's what worries me. But I tried to ignore that worry because if you worry about making everything self hosted, you will do nothing besides tending to servers. At some point you have to align and say well, OK fine, it's the lotion Hetzner. Wherever I have to have some dependencies.
At least minimize the surface of the dependencies so that you do not look yourself into 1000 subscriptions, which I also hate. And it's a it's a easy slippery slope. And then before you go, you're like, why am I spending $1000 a month on all these different tools that I don't really need? And things get better and better. That's the thing. Like even for LLMS, you know, with it's still, it's one of the most amazing things that in 2022, when in December 2022 when
charged GBT came out, nobody ever could have expected that. How many years has been now? So 2 1/2, two years later, 2 1/2 years later that you can self host an LLM that is OK. It's not as good as chat, GPP 4 or whatever or grok, but it is very good for most things. Like I I'm using this a lot and there's also a new book that I've been writing on building an Elixir chatbot. Self hosted with CPU inference,
right? That's cool. Yeah, that's a constraint. Like, OK, you don't have a GPU, we don't want to use a GPU. What can we do with self hosted models with Olama, with the API of Olama and only a lot in modern GPU, a CPU and you can do crazy things with that and you can. There's a model called IA Expanse which speaks 32 languages and even does a very good job in Greek, which is useful for the startup that I'm running. And if you were to tell Me 2 1/2
years ago that there would come a day where I could have pretty good summarization and translation and natural conversation in Greek self hosted running on the Cpl. would say get out of here. This is. Yeah, yeah, it's wild. You know the pace is crazy. Yeah, that's cool. Yeah. Yeah. LLMS, it's, it's wild what they're turning into and I think like when you start seeing how easy it is and to self host and have your own models.
I think I've talked about this with other guests, but I think we'll start seeing a lot more specialized models right, where it's self hosted just for your specific startup or product and it kind of becomes an expert in whatever your customer base is. And I think that's going to be super powerful for for startups and any, any SaaS company really. Yeah, I think that's, that's the way forward too. I first of all, people talk more those who know, and I'm not someone who knows, but I I'm not at all of people and people who
actually know and they're not the tech Bros hyping up AI because they invested in a startup won't have an exit. They say that LLMS are a bit of a dead end, that it's not going to lead to AGI and so on. And but at the same time, it's a new screwdriver in the toolkit and you can add a look at them as a screwdriver that well, now everything needs to have a have an LLM based functionality sprinkle on top. Or you can say, well, what things is my product doing that can be actually assisted by an LLM.
For example, for the property management start up, I started working on representing the the data of of an entity property or task or or amplification or something that happens representing you in text. So you take the fields and then you have translation keys and you create a comma separated string that says his apartment is 55 square meters located in downtown office, blah blah blah. And you have a long string and then you throw it onto IA expands and say this is a
description of of a property lead generate a a classified ad for this apartment like a draft in Greek and make it attractive for people like this and for students and so on. And it does an excellent job. That's something that is potentially useful might end up being nothing but that you can do this is is really good. And if you have a specific domain, of course, it would be even better. Like if you have OK, I'll, I'll, I'll give you like something
that might come for Northwind Elixir Trader is that I'd be looking into how I could feed an LLM the text of Northwind Elixir Traders and the code base and make an app that answers questions about the book. Because the the model already knows already knows about the elixir. Ecto SQL Lite knows enough to help you. So if you specialize it on the North Elixir Traders book, you can then ask questions about how else could I do this or is this
jury, I don't know, is this implement correctly or any other thing you could ask. And then becomes a domain specific chatbot. I know a guy who has done this across all of his writings. His name is Bobby Miliani. He's yeah, you might have seen him on LinkedIn. He posts a lot and he's a great guy. And he, he's one of those people who speaks, talks a lot about how like agile lean, lean management has really become a fad. And what he did is he hired someone, her name is Heidi Araya.
She's doing such LLM applications. And he gave here all of his writings. And he has written a lot of books. And now he has his chat bot behind a paywall. But for one year, he had it freely available. And it's amazing. You can chat with a virtual Bobby Miliani. He responds in the same tone with his knowledge pulled from the books. And because he has such a wide knowledge stored in so many, I don't know how many hundreds of thousands of words. It was an incredible Chapel. Like you could actually you could actually learn from the Chapel because it it curies.
I don't know if it does a rag or whatever, but it that's. Really cool. Yeah, it's really cool. I never thought about that. Like, yeah, you could essentially create like an Isaac chatbot that has all your knowledge from all the books that you've written. All the blog posts, all the. Articles for Yeah. I think those are interesting things. Now, how much of that will become a product even at the barrier to entry is very low. Yeah, I don't know. But So what? I mean, the barrier to entry is
very low for anything, web development, everything. And still you see innovation, or at least invention happening. Every year there's something new that comes out. I always talk about how cool it is, like you can buy a laptop for a couple 100 bucks and what you can do with that laptop is almost endless. Like your return on investment is through the roof if you know how to create products and code and build things you know. It's one of the things that people in the software world underestimate the leverage that
a bare bones laptop gives you. Yeah, it's wild. Like I think about, I mean like now like I have a fancy, I have expensive MacBook Pro. But even that like you know, you spend almost 4 grand I feel like now, but still even the return on investment for that one machine, all the code that I have written and products that I have built, like it's just, it's kind of mind blowing when you like sit back and think about that. Yeah, Especially when you come from a family business and you see what goes into, I mean,
we're not doing production, we do trading, but we still have to deal with a lot of tangible products. And you need to move things, logistics, organize, coordinate with the supplier, with a customer, with a freight forwarder. But when you see how much effort goes into this kind of work in front of APC and compared to what kind of return your investment you would have gotten in terms of equipment and hours to instead program something that has value that hopefully has value because you cannot know it from the start, it is mind blowing.
It is something it's really people like to use the word leverage a lot, but this is insane leverage you can take. My favorite laptop is the X 220, the ThinkPad X220. I don't know how many have I bought. I bought them secondhand so I never ran out of Thinkpads. Think that that's a good computer, man. Yeah. So you can buy a 10 year old laptop and if you spend you invest your time and energy and like €8080 or $80.00 doesn't matter.
It's something double digit and you can build things that generate hundreds of thousands 10,000 times the value. Yeah, yeah. Not that. Happens in no other. No other. Yeah, stepping back to like I was in the manufacturing space, right? Like you can buy just a, like you have a line of a, a line of machines essentially that makes 1 product. And each of those machines in that line are like, you know, throw like a $50,000 price tag
on it, $100,000. But you're talking like, you know, 3 to $10 million in one line to build like 1 product. And yeah, it's, it's wild. It's the same thing with hardware products. Forget about 3D printing. I mean forget about the 3D printing stuff for a while, like the Kickstarter things and little things at work and so on. Also electronics, I think it's, it's way better than mechanical stuff. And that's why if I were to have studied some some other branch of engineering, I would have
loved to do Electro electronics engineering because you can build things by yourself. It's all you can learn this, but it's different if you have learned the basics in studies or whether you start to play around and you learn it. Yeah, practicing. And I mean, imagine you, you want to build a turbo charger for, for a diesel engine or a gas engine. And we're talking about turbines that are that big. The smallest ones like those who are petrol heads with your tiny turbines or the bigger ones.
The smallest 1 is like this. The biggest one is you can stand in it. Right if. You look at the capital investment that it takes and the manpower to go from nothing to having a product and the lead times that you say even I used to work for Hilde, which makes construction equipment. The lead time to to try out a new configuration of of the diamond pattern in the drill bit that goes into the wall to drill a hole. The lead time to qualify that to test it in the factory, you need
to make it, you know, send the material, prepare it, make sure it works, send it off to the factory, run it for like 4 weeks to make sure that it works, then send it back it'll. Yeah. It that's what I say hardware. I mean, yeah, software is has a certain degree of difficulty, but hardware is a game for lots of capital. Not that software is not capital intensive, but it's more labor intensive than capital intensive. Right. Yeah. Hardware is just crazy. There are certain categories of
products or industries where you don't play if you don't have 1,000,000 coming out of your. Well, any time you have a physical product, it's a complete game changer. Like creating things, physical things is so difficult. Yeah, even more difficult to have a physical product and a digital component. Yes. And that's why, for example, the the classic manufacturers have such a big issue with software. I don't know if you've seen the Volkswagen cars that they want to sprinkle software on top.
Like they take a electric car. So first of all, they take a standard car, they make it electric. So they sprinkle electric on it. Used to, now it's more now the architecture has changed, but then they sprinkle software on top. There was this famous video on the Volkswagen where when it's updating, you can actually tap the, I don't know if you've seen this on LinkedIn, you can tap the progress bar. It's a slider. It's a slider, UI elements. You can just basically, it's difficult. It's difficult and it's difficult because you need to have people communicating who
know often nothing mindset. And the problem is you can't have software your software like, especially if it's paired with a physical product, it can't be the afterthought. Yeah, exactly. Yeah. Like they have to be so integrated and work so well together that it's actually an enjoyable product to use. I I wrote so fun stories. I the last corporate job I had, I got for for various reasons. I of course I came from a similar field and so on. But the my foot in the door came
because I sent to the executive chairman an article I had written. I was in the habit of writing. That's when I started 20/17/2016 where I was criticizing exactly that, that I was saying product focused innovation is a comfort zone. Like if you have a product and your solution to innovation. Now with there was that was the era of digital industry 4 point O Internet of Things. And I was making the argument that if you have a product that is a same old product you always have, you just sprinkle data on top without thinking about why should anybody care what actually it enables. You're just in your comfort
zone. And that already exists. Mechatronics, automation, data analysis that has existed for decades, nothing new. So you need to think of your product from the beginning as something that has, yes, has values of hardware, for example, radars that the company used to work for mates. But the software on the iPad needs to be designed from the start to work without hardware. So the one, the one lifts up the other. If you make a perfect hardware and then go to make a software
could work, but it could also be like, I wouldn't say adding. I wouldn't say adding what you call it lipstick to a pig or polishing a curtain. Yeah, yeah. But you can feel the disparity like the oh the Harrow is great, but the software or vice versa the software. And so like a great example, like you said, iPad is Apple. They make their software and products work so well together. Like not only do they work well on their hardware, the software
all interconnects and you have all your devices connected through their cloud and all of that and it just works. And so you get locked in that ecosystem and you don't it, well, even if you want to leave, it makes it difficult to leave, you know? That's that's how they get you. And that's why after 2019 when I handed in my corporate iPhone, I had iPhones before, Yeah. And I came back to Greece. I said I'm never going to never, big word, but never going to get an Apple device again, even though they are the best in
working together to sort of get my photos out of the iPhone. Oh. Yeah. Yes, I got them, but for somewhere and I got them through an iMac, but for some reason I got them in five different resolutions and I spent weeks cleaning them up with photo comparison software. Everything works until it doesn't. That's that's the whole concept of becoming a digital serf to this, to any company. I have said that I want to move to Linux and get away from the
Apple ecosystem, but then there's like all these little things that I would miss and it's silly stuff. It's like I message because I love having the like iMessage open on my computer and be able to get all my text messages without picking up my phone. And it's like silly things like that. And then like, like photos is nice, right? You have everything just sync over photos, but when you want to leave it's a it's a nightmare. Well, I, I mean, OK, iMessage,
it's famous for having this lock in effect, even to the effect of, you know, perceiving Android people with the green bones of pariahs right in the US. Well, they refused to update the text protocol as well. They kept everything SMSMSI think, and you can't send any high definition photos between Android and Apple. And they just lost a lawsuit like a year or two ago. And so you can finally get the RCTs or whatever the newer protocol is for text.
Yeah, yeah, yeah. And. Probably because the EU, I mean one thing the EU does well. I will say the privacy aspects that come out of the EU is great and I would like to see the US do more stuff like that because you should be able to opt out of data collection. It's insane that you can't. Yeah, To be frank, though, don't expect that many things in Euro Bar that different. I had a discussion with a friend of mine. He works for a European company. And I was saying how in the in
that in brick dot GR, we pride ourselves in not tracking like even the website, when you look, you know, you go on the website, brick dot GR, then you get the typical cookie banner, the cookie banner. But you know what the cookie banner says is we don't track you. We don't care about this, right? And honestly, I personally couldn't care less. I think this obsession with data is dangerous. Like you gather, you gather, you gather because many years ago somebody said data is the new oil and everybody started holding data and then they realized, OK, what do we do with this data?
And they realized actually cannot derive any any any useful insights or management doesn't want to derive any insights even though they have the data, but just in case we might monetize. Them well like the danger of over collecting is one you're holding on to this data so if you ever have a data breach you have that much more stuff that. You know. Like I'm a big believer of one, don't sell your customers data because that's the only reason you would collect more right? And only collect what you need to make your product better for
your customer. And and the other, so the GDPR has this, this feature called the Data Protection Data Processing Officer. So you appoint one person in the business who's responsible for overseeing the data processing. How well this works in practice is a different story. Like laws, regulations are OK, but if they're not enforced uniformly then you have in Greece called polynomial. So polynomial you have many laws, but So what Like.
Greece is going to say like. So what? You can have many laws, but if nobody enforces them, people catch on, they stop following them. It's the same with traffic laws or anything else. And so we're discussing with my friend that it imposes a very high cost of, of compliance because especially in some industries where like the, I mean, in Europe they call the gaming industry, but it's on video gaming. It's basically, what do you call it, gambling, the gambling, the electronic gambling industry. Gambling. We call that game. We call that game in here.
Yeah, I call it game. OK. So yeah, you have to have everything, all the double and you need to do it ethically. However, ethically you can do gambling. Business is a different story. So it raises the barrier to entry for everyone in the field. But then when you look at who gets a slap on the wrist and who gets punished, you see that if if the EU is going to milk Microsoft or Apple or they're doing this now come the billions. But you see so many GDPR violations across the European Union that doesn't get tackled.
And then you cannot help but become cynical about it. Like, yeah, sure, we have regulations, but I mean, yeah, OK, I have Gmail and whatever and it filters out the spam, but I get so many unsolicited emails because people put me on their list without my consent. So what was the point of GDPR again? Should I now work them somewhere? No, because I have better things to do. It's a bit of a paper tie here, we call it too, but it's good to have. It is, but also the problem with over regulation when it's not
enforced is they just start using it for their benefit right? If they're it could be a money grab. You could just find a big company, get your tax collection or however you want. Your slap on the wrist, but you know everyone's happy because you know money was transacted. If that's what's been happening with Apple. Yeah, yeah. So instead of looking at the at the taxation scheme that Apple and other companies use through Ireland, they look at fines for non compliance with, with, I don't know, data privacy,
whatever. And that's where you it really. I think this just breeds cynicism in the end. The best part about GDPR, in my view, is that alone, the fact that you have somebody who's formally responsible for the data, hopefully makes that person double like check themselves before they wreck themselves and the company. And you don't have that at all, that there's nothing to refer to and say, hey, this is not allowed. So in the US, as I understand, it's the Wild West. Like you can collect anything you want.
Look people there any way you want, process it however you want, resell it. Like remember Equifax? The the whole? Yeah, yeah. Did anybody face any charges for it? Maybe, I don't know. I'm not. I'm not sure if charges. I'm sure there were some fines thrown. You know who would probably know is Michael Lubis. I should ask him because he always talks about that data breach and because it was a big one. Yeah, it was huge. I mean, leaking the the other thing, having everything in the US depend on a unique identifier, which is the Social
Security number, is it's by itself a tricky design decision. No, like who made that decision? That's wild. It's wild, yeah. Yeah, some things are, but legacy if you think about it. Yes, it's legacy code. We don't have to worry about it. Yeah, yeah, It's that magic black box we communicate with. We don't know some. Intern will some intern will refactor it one day. Exactly right. All right, so we we Chris asked
a question he said that he's curious about your startup philosophies and some of your like previous books. I feel like that's a pretty open-ended question, but I feel like you've mentioned like you, it sounds like you've been part of a lot of start-ups or at least. No, not really. I mean, let me count so one for one, one formally, but I've been in a lot of product development projects in quite a few turn around projects of turn on
projects for process development, product development, hardware and software and and developing the the family business which I took over management of when I returned to Greece five years ago. That was a bit, it was not really a turn around, but it was a lot of changes that made it. Happen what? What is the family business if you don't mind me asking? No problem, it's industrial equipment training. So equipment for a fact for factories that produce solids in the form of powder and bulk solids and equipment from abroad
to to manage it and handle it, like to load it and load it, mix it, dose it, measure its level, anything that has to do with that. OK. So I wouldn't say I have a start up philosophy. I'm well, I've seen something that resembles waterfall. It never is waterfall. I've lived through a lot of what they call stage gate or phase gate where you have decision making gates and then you do things and then you decide. Should we continue? And that's a trick that the Sun
Coast fallacies. The more you continue, the more likely you are to continue. So this by itself is a failure of the of the of the mental model. Most projects famously never get killed, so you end up with crappier products than you expected. So I wouldn't say I have a philosophy. The most important thing for me is to not get caught up in fads. That's why I've also been so it's so critical of of agile and even lean. They're those are good ideas, but they are converted as soon as they become a cottage industry. And that's why I.
Was going to say the the problem with a lot of them is they get used improperly, right? Yeah. But then you get into the No true Scotsman fallacy, like what is true agile? What is truly it doesn't matter they they. So I'd rather focus on principles like, is it a good principle to get competent people and let them work together, but expect them and coach them and support them to work together in a way that makes great things happen? Yes. It's also great to have people on the team who are less experienced, but they can still up through coaching exposure to
more senior members. This is all part of the story. Forget now about the stability of the HR practices of saying you need to have like five years in fast API. The the creator of fast API was posting that five years in fast API, but I created the 1 1/2 years ago. Nobody or 10 years in LLMS. What who are you? So it's I find it's use more useful to have principles because principles then it's up to you to to to apply them on their situation. If the principle is sound, it
doesn't, it will apply differently to different situations, but it will generally be a good rule to follow that, for example, decide, decide as late as possible. People hear this in management and they they grow white here because they want everything now. Now decide how much, how much this, what will the product do? But even though it might sound very, very controversial or counterintuitive, once you put them in practice and say, OK, how would we go about deciding as late as possible? Then you start to find a
solution applicable for your business, for your product, for your situation with your people, in your culture and so on. And then you can turn into a process, into a guidebook, into a hiring practice, into whatever. And I would say the one principal is rather have philosophies, rather look at principles. Don't follow process just because somebody else did it. And always like have a product vision before you start, know that it will probably not be exactly what you want and manage
uncertainty and not everything has to succeed and most things fail. And that's, I mean, that's part of starting up anything. I think that's also important to be able to see your idea be a failure and move on from it instead of staying married to it and try to make it work. Because I've been like in, I've been part of start-ups where they'll try to reinvent their their leverage into a market and try to like they almost invent a problem that doesn't exist.
And like, you're never going to have a a successful project if you're inventing problems. You actually have to be solving problems. Yeah, although the way it worked for a few years or for many years with a 0 interest rate policy, I think that's. So in Greek, I call it Silicon Valley, NATO. It means like Silicon Valley inspired, like throw money at the problem, lots of whistles, lots of Google envy. Remember the, the time where all
the startups were like Google internally and they have football tables and all that kind of frenzy of if we if we behave like Google, then we are, you know, Google and we'll waste money and so on. So cargo culting. We might allow. That that's a problem so. Are you there? Yeah, let. Me try refreshing you. We lost Isaac.
Oh, are you back? There you are. You'll be back? Yeah. It's my connection, probably. I see. Yeah, that's all right. Now, I was saying that there is a lot in the in the years of low interest rates or zero interest rates, a lot of this cargo counting happened. And it happened across the whole stack from the way you hire to the way you deploy. So even whether you had a football table or had certain benefits or certain levels or whatever. And this created the perception of copy paste ability of approaches between companies.
And you can think in modern software development where people copy paste because we might eventually be, you know, the new that was the same. I think Facebook or the Uber of X or the Uber of Y, you don't need it. Yeah, probably never. Yeah. I think I think that's great advice to wrap this up on. I really appreciate your time, Isaac. It's been awesome chatting and for everyone that's listening,
where's where's a good spot to find your book? I'll link it all in the show notes afterwards. But it's lean pub, right? Yeah, Linkpop in the Elixir category or if you search for the name you will find it. It pops up first page in Google or you can follow me on LinkedIn where I sometimes post about it. Awesome. Yeah, and Isaac's awesome. I'll link his LinkedIn. Are you on X as well? Yes, you are.
Yeah, no, I don't. I don't use it much or at all actually. OK, so LinkedIn is the place to find you. Yeah, that's the place unfortunately, but it's a place. OK, yeah, I have a love hate relationship with LinkedIn, that's for sure. I mean, it's chicken, chicken clucking that's there. That's the chicken coop. It's amazing. It's full of BS, It's amazing. It's it's like a torrential. We have Richard for sure. Richard is asking how much is
the book and I think it's kind of you can pay whatever you you want to pay right with Lean Pub, but you have a recommended price. There's a recommended price, I remember correctly, now it's 3497. There's a suggested price which is 4997, but you can pay anything you want above 3497. OK. Cool. And there are also discounts. So if you sign up on Lean Pubs weekly or whatever weekly sales, it goes on discount quite often because it has done well and so Lean Pub promotes it get discount I think up to 20% from
the minimum price so. I can get it there. Very cool. Well, it's called Northwind Elixir Traders. I highly recommend it. I have a copy. I'm a couple chapters in, but I'm excited to finish finish going through it because I love your approach is similar to mine. You kind of it's hands on. You learn as you go, and I think that's the best way to do it in. Two years, engineers, engineers. That's how we we build a tree, a mental model of how everything works. I don't know about you, but if, if I don't understand something, it drives me crazy.
Like I have this nagging feeling that it's I don't really understand it and it it pisses me off. It makes me. Yeah, like having like a shallow. Yeah, I agree. I don't like this knowledge. Yeah. It states what you don't know that kills you. That's that's that's. That's true. That is true. But all right guys, thank you so much for joining us. I hope everyone has a good weekend and I will see you guys I next next Friday testing.
Francesco Cesarini, founder of Erlang Solutions, and Allen Wyma, hosts of BEAM There, Done That, join Jacob for a live crossover of both podcasts. They trade origin stories, compare what the Erlang and Elixir...
Jason Cohen, founder of WP Engine and Smart Bear, joins Jacob to talk about his new book Hidden Multipliers. They dig into why engineers avoid marketing, the onboarding math behind SaaS trials, finding your ideal...
Filipe Cabaço, team lead on Realtime at Supabase, returns after two years to talk about his side projects: Vitro, a browser for every AI agent with a replayable timeline of what each one did, and Ampoule, which packs an...
Peter Ullrich returns to talk about Pushin.eu, the European GitHub alternative he's building in Elixir. Five months in, it has about 700 confirmed registrations after going viral on Hacker News, and Peter walks through...
Nathan Hessler, organizer of ExMex and RBQ Conf, is back four weeks out from ExMex 2026 in Austin. We cover MCing Rails World, how he picks speakers and keynotes for a single track, what running a Ruby conference taught...