In this episode of the Elixir Mentor Podcast, I chat with returning guest Daniel Bergholz about leveraging AI tools like Windsurf and Claude to dramatically improve Elixir development workflows. Daniel shares his journey from skepticism to becoming a power user, demonstrating how these tools can help developers build faster without compromising quality. Daniel walks us through his practical approach to incorporating AI into both professional development work and side projects. He explains how to effectively use features like rules files, web documentation integration, and memory systems to get the best results when generating Elixir code. The conversation covers important nuances about how different programming languages perform with AI tools, with Daniel noting that while JavaScript/TypeScript might get near-perfect results, Elixir requires more guidance but still provides excellent value. The discussion takes a critical look at the "Vibe coding" trend (generating code without understanding it) and offers a more responsible alternative that we call the "sniper approach" - using AI with precision and knowledge. We explore how AI tools are changing developer roles, potentially transitioning programmers from pure coders to more holistic product engineers who can focus on customer needs while leveraging AI for implementation. Whether you're an Elixir enthusiast curious about productivity tools or a developer interested in responsible AI usage, this episode provides practical insights on balancing automation with craftsmanship. Daniel's experience demonstrates that AI can be a powerful assistant when used thoughtfully, helping developers produce higher quality work in less time. Resources Mentioned: - Windsurf:https://www.windsurf.io/ - Cursor:https://cursor.sh/ - Claude:https://claude.ai/ Connect with Daniel: - Workflow Blog:https://dev.to/danielbergholz/my-ai-powered-workflow-for-writing-elixir-and-phoenix-with-windsurf-4k8m - Website:https://bergdaniel.com.br/ SUPPORT ELIXIR MENTOR - Elixir Mentor:https://elixirmentor.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Secure your Elixir apps with paraxial IO. From code analysis and bot defense to dependency checks, they've got you covered. Elixir first design with GitHub integration. Elevate your security at paraxial dot IO testing. What's up? I'm Jacob Blitzo, 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 welcoming. Today I'm welcoming back Daniel Bergholtz, an Elixir developer who's sharing his approach to integrating AI tools and optimizing his workflow to become a more effective developer. Welcome back Daniel. It's always good to have you on. And I'm excited about this one because I've just have recently I've been trying to have like more efficient ways to integrate AI with my like daily
development because I definitely don't take full advantage. I'm like the guy that likes the auto complete but I'm still like writing most my code and I know there's just like a lot of better workflows just to just produce faster and still create high quality projects. So excited to have you on man. Yeah, thanks for having me the second time. It's always a pleasure to be here. I absolutely adore your content and it's yeah, always an honor
to participate in one of those videos. And hopefully today I'm going to be able to help some people use AI in their workflow. I know the hot topic for AI is always like Python or JavaScript but you can use for Elixir and I have been using for the past two months I think and it has been life changing to be honest. That's awesome. I've been playing around like cursor has been the like the most like the most used ID that I've been using and I know we're
going to jump into windsurf. And then I recently one of my Co workers, he's been using the extension Klein with Claude with the Claude with his Claude API key. And so I've last couple days I've been playing around with that and like creative solutions to kind of keep like the the LLM on like track. I guess with like, I think that's the hardest part, right? When you're in like a large code base, how do you tell it to like, dude, don't do it this
way? Like it keeps like, like I like to use it with for writing tests. And it will continually try to like create like new mock emitters for me when like I already have existing tools. But I think like when you figure out your rules that you kind of feed it so it doesn't keep making the same mistakes over and over. That's what I kind of have to dial in. So I'm excited to hear yours, your approach and you just recently wrote a pretty good
blog article that are it's already in the show notes, I linked it there, but it's kind of your workflow as of recently at least. Exactly. And yeah, I was about to ask you like what is your current usage for AII? Don't know if you can do like a poll on YouTube to also ask the viewers like how are they using AII? Don't know if if it's possible or we can just ask like. Let's try. Send on the chat. Yeah, people can send it in the
chat. I've never. I don't know if I can do a poll now I wanna know. Yeah. But the the question that I have is what is your current AI usage? And more specifically, do you use just do you use AI mostly as a chat, like using cloud or Chechi PT, the desktop app, the website? Or are you generating code with AI? Because yeah, we live in in a bubble, in a bubble on Twitter. I have the feeling that everyone
is generating code with AI, but that's just not true. We are on a tiny bubble of people that are highly, at least on my Twitter bubble, they are extremely optimistic about AI. So it feels like everyone is generating code with it with AI. But whenever I talk to someone, a friend or another developer, they're like, oh, yeah, I use AII, use Jia GPT to ask questions. And I'm like, that's not really what I meant. I meant using more than just the chat. But yeah, I wanted to know if
the people watching these are using just a chat or if they are indeed using for example cursor or windsurf or even copilot inside of VS Code. I like for me, I can dive into what I've been doing. I need to make it way better. So I I like to use like the chat version to help me like plan things out right? Maybe like an overall, like create like a overall like project document, you know, with
all your goals and things like I'll obviously like feed it my goals and then have Claude like refine it. And then kind of like a back and forth to make sure whether it's a feature or a whole project. I like to like make sure things are planned out. And that's good for me because I'm one of those guys that it's really easy for me. Like when I want to fix a bug or a feature, I jump into writing code right away instead of planning it out. And I get in this weird, like I end up coming to the right solution, but I waste a lot more time writing unnecessary code
and refactoring and refactoring till I finally dial in like the best solution. So I think it forces me to think about my problem more before writing actual code. And then as far as like when I use cursor, I'll usually write functions, sometimes ask it to like refactor it or use pattern matching. Like if I write something kind of sloppy, but it works, I'll, I'll use it as like a refactoring tool. And then the biggest thing that
I have found is when I write like a new function or module, I have it write tests for me and then I'll read through for the most part, I want to say like 90% of the time the tests are pretty, pretty good. Sometimes I have to like nudge it and be like, we also have to test this case like this is kind of useless. But for the most part, it gives me pretty good, pretty good test coverage back. I will say if if you're not good at reading code or having like code smell like that skill, I think AI could be kind of
detrimental though because you could be just producing a lot of bad code. Yeah. So your daily usage now is mostly for the chat feature is mostly to like refine what needs to be built like like a product requirements document of some sorts that people call PRD. And then once you have a rough idea of what needs to be done, then you mostly write the code and then use AI to generate
tests. That's like your primary use case today. Yeah, yeah. OK so I'm going to explain my workflow now and I want to see your opinion. So I I actually took some notes because I I don't want to forget anything. I have mostly 2 workflows. The first one I use on my free time because on my free time I'm working on some says ideas. And then to work on a says, well you need to wear the developer hat, the founder hat, the product manager hat, the
designer hat. You need to do anything or everything. And then on my job that's different. On my job, I am an individual contributor. I am mostly a developer, so I need to focus primarily on writing code. So which one do you want to hear first? Like the says workflow or the technical workflow? Technical workflow. OK, so for I mean previously I used to use just a chat feature from mostly not even inside the
code base. I would just open ChatGPT and then ask some questions whenever I had doubts on how to structure a component on the front end. I would say hey, I'm working on a drop down component. Which props do you think are good to pass for this component? So mostly some light questions. The biggest amount of code that I would generate would be for those boilerplate things that util's folder like formatting dates. I always hated formatting dates
in JavaScript so I would just open to HPT and say please format the date I have a string, format this date and then output something with the year at the end or something. So that was my use case. Then out of nowhere it seems that my entire Twitter feed was flooded with people saying hey, use cursor, use cursor, use windsurf. And I was like, what do you mean like the chat tab? And they said no. Previously this was a new
feature, but now it's not. It's very common, but on Cursor you had the agent mode where you give access to your entire code base for the AI and then AI would edit your code. A couple of months ago that was pretty new and people said that this was revolutionary. So I made a huge mistake on this transition because I thought, well, under the hood Cursor is using cloud, right? Cloud. Back then it was cloud, the 3.5 sonnet.
And for some reason, I don't know why, but I have free access to GitHub Copilot Pro. I think it was because of a tiny open source contribution that I made a couple of years ago. I don't know. But I have free access to the Pro version. And then as everybody else, I was using this code, I opened VS Code, the Copilot tab, and I saw that I was using cloud as well. And I thought, well, if it's the same model, I mean it's the same product, am I right?
If Cursor and Copilot are using the same model, it's impossible to have better results on one rather than the other. So I kept using Copilot and the results were horrible. They were extremely inconsistent. Copilot would edit files that I didn't ask it to edit. It would like completely remove functions. Like literally break my code. It would output a new component, but then it raised a bunch of other components.
So I was like, wow, man, this AI thing is trash. So I gave up on it. And then people kept in, kept insisting, hey man, you need to try cursor. And I said, bro, it's the same model, how am I going to get a better result than cursor? And they said just try it. OK, just try it. And then I learned that actually there's much more things happening under the hood. There's like the code base indexing cursor detects if there are linked errors on your file. So if for example, it erases
like an import, then it would detect that there is an import missing or I don't know, type errors from TypeScript. It detects that and then it joins, it starts a loop of OK, generate the code and then start looping to fix all the issues until they're all gone and then it finishes the work. While copilot would just throw up a bunch of code and that's it. If it works, doesn't matter. Are there link errors? Doesn't matter. I gave you the code, that's it. So I I got horrible results.
I got frustrated, I thought those people were were lying to me about AI, but once I started using cursor, that was the like the changing moment for me where I saw with my own eyes hold up, this is good. Like it generated some code that from my standards they're good. There were some linked errors. Then it closed. It cleaned up the linked errors, the import errors, the type errors, and the code was usable.
So that was a shock. I was like, oh, OK, so this is the real deal, Cursor is the real deal. And then I forced myself to use Cursor for one month. Then people started talking about Windsurf and I was like, OK, I'm going to give it a chance. I spent another month using windsurf and I'm going to be honest, the differences are very minor. Like very minor. They do pretty much the same
thing. And I'm going to talk about windsurf on this podcast, but just rest assured that everything that I'm going to say here also works for cursor. It's not windsurf specific, OK? But I gave windsurf a chance. I thought the UI was a bit more polished. The context search on windsurf I thought was better and the cursor is a bit unstable, like I would get some random error messages and then cursor would crash. I got annoyed. I started using windsurf and I
never looked back. And then I started generating code, not only the chat tab but generating code. So I have a couple of practical tips on what to do when the code generation doesn't work in your favor. But I wanted to say right now that the quality of the code generation depends a lot on the language and the framework that you're using. So I used it for React TypeScript, which is the default front end framework these days,
and it works like a charm. It works extremely well. Clod, which is the model that I use inside Windsurf, needs very little hand holding in order to get things right. The results are pretty impressive even if you are a noob or a junior. If you have no idea what you're doing, you'll have a bigger margin when working with React because the code in my opinion looks good 99% of the times. On the Elixir the other hand, or any other niche language, I
would say that the results are mid mid to good. They're getting there, but they're mostly mid to good in that layer of like between a 7 out of 10 and 8 out of 10. And then React is 10 out of 10. So he needs a little bit of hand holding. You need to guide him a little bit. But I mean, in my opinion, that's kind of obvious because the amount of publicly available Elixir code on the Internet is not a lot if you compare to
Python or TypeScript. So in my mind, it makes sense for the results, the AI results on the elixir to be a little worse. And that applies to any niche language. If you want to write, I don't know, Scala, Zig, whatever niche language, I guarantee you that the results are going to be mixed. So I have some pro tips on how to hand hold Claude a little bit and then guide him through the possible mistakes that he does. The first thing that I would like to say is that there are
two very nice features on Windsurf, also on cursor, of course. They are the memories feature and the rules feature. So let's say that you're trying Windsurf for the first time. You asked it to generate some code and then it got something wrong. OK, you have two options. Option #1 is on the chat, on the same chat open, you're going to say, hey, you got this wrong. And then under the hood, the Claude is going to save a memory
of this conversation and hopefully not going to make this mistake again. You can even be explicit about it. You can say, hey, you made a mistake here. Please create a memory for this. And then under the hood, it creates a memory. But memories, I don't know, I feel like they are a bit ephemeral and they're a bit hard to share with their teammates. Ideally I would like to have one file with all the best practices, have that with all my team mates and then everyone
just have the same rules and that's where rules come into the game. Both of the ID ES, they have a file that you can add to the root of your project. On windsurf it's called windsurf rules. On cursor is dot cursor rules. They have a more complex like folder structure that it can add as well as a rules folder. But on Windsurf it's one file. And then on this file we are going to give a high level overview of how you would like your AI to function or which best practices you want Clod to
follow. So I like using the rules file to whenever Clod messes up something, I open my rules file and then I add the rule there. So let me give you an example. On my side projects I use Elixir, Phoenix, React and Inertia and the results of AI are pretty good. But something that clods often gets wrong is passing the data between Phoenix and the React front end via inertia.
Because you have your traditional controller on Phoenix and then you say assign and render right. On inertia you say assign props and render inertia. That's the main difference. And then it would constantly use assign and render, assign and render. And then I was like, oh man. So I went back to my Windsor rules file. I added inertia section there. And by the way, you can add any formatting there. It's like a random TXT file. I tried to follow like the
markdown formatting of the text, but it's not mandatory. It's just a a text file. We can write it however you want, it's just. Easier for us to read if it's marked down right? Exactly. And then the ID, they have the color syntax, right? So if you have a title, it's a different color, so it's easier for the eyes. So I try using the markdown formatting. And then I just created a section there saying inertia or inertia best practices, I think. And then there's a bullet point saying please inside the
controller, use assign prop to pass the props from Phoenix to React and use render inertia to render a React component rather than a hex file. And then after that, never got this wrong again. Never. So that's pretty much the two biggest rules that I try to follow whenever it makes mistakes. So I just correct the mistake on the ruse file and then that's it. Another thing that I like to do
is using the web. So of course both cursor and Winsurf, they have this feature. But on Winsurf you can write at web, paste the link, and then it's going to search the web. So for example, Phoenix and Elixir is already a very niche language. Now couple that with Inertia, how many production apps today we have with Phoenix and Inertia and that are open source so the LLMS can index.
Those code bases I think not a lot, maybe one or two in the entire world, I don't know. So what I tried to do is whenever I want to do something super specific for inertia, I just grabbed the read me file from the inertia, the Phoenix adapter for inertia. And then on the chat, I paste at web the read me link and I say, please implement this and use this link as a reference. And then because it has access to the official documentation, then that's it.
And I know some people on Twitter that said, hey, generating code for live view is horrible. And the first thing that I always ask is did you paste the live view docs? Because if you didn't, then I don't know. I think it makes sense to get bad results. Night and day difference if you include documentation. Yeah. And there's also documentation that is optimized for LLMS. So we're entering this new era where like we, we need pages to
be accessible to search engine bots. So we have SEO now. We have like the LLMSEO equivalent where you need to optimize for search engines but also for AIS. And in order to do that, some people are creating LLMS dot TXT file that they put at the root of their website where instead of displaying your default HTML with a bunch of tags that is polluting the content, you just
paste the text like human readable markdown format. So bonus points if you're pasting a documentation inside Winserve as the LLMS dot TXT. I know super base, they have this, this file next GS they have it as well. So if you know that the documentation you're using has that LLM dot TXT, then copy that and paste it inside the windsurf. The results are going to be better and faster because the A items I have to traverse a bunch
of division, division, division. So are you saying that with a lot of documentation now? I guess I haven't really looked for it, so that's cool. Yeah, you can try. Just just grab any popular documentation and then at the end just paste LLM dot TXT. It's relatively new. I would say that not a lot of documentations have it. There are some services that you can use to generate it for you. So for example, I have that project Live Tech School where you can find free YouTube courses.
And I used a tool called Firecraw. They have ACLI tool that you install and you run like NPX, generate LLMTXT, paste your URL and then yeah, you can go to tech school dot dev forward slash LLM dot TXT. And I mean, sorry, sorry, not text to text school. My main website. I, I mean, there's more confusion there. So if you go to backdaniel.com dot BR slash LLM dot TXT then you can find the LLMS accessible
version of my website. That's awesome. That's good to know. If you know that your docs has that LLM dot TXT then copy that. It's going to be faster to index. It's going to go straight to the information without having to filter all the HTML text. That's better. And then another thing that I would say that is optional on my setup, but many people do it is use MC. PS I think if I'm not mistaken,
MSMCP stands for Model Context Protocol and you don't need to know how it works under the hood. Yeah, sure. Go ahead. Oh no, no go. Yeah, I was just going to say that you, you don't need to know like the implementation details. All you need to do to know is that it is a way to connect your AI agent to external resources, any external resource. That's it. That's all you need to know
about MCPS. And usually you configure it on a Jason file. So you have your MCPS for cursor, that's a Jason file. You have your MCPS for the clawed desktop app, it's a Jason file. That's it. So super easy. There are some websites out there that you can use to find those MCPS. There are many. I would say that the most popular ones I think are Postgres. So yeah, Winsurf can see all
your data on your local database. There's one for GitHub. So especially if you're working on an open source project, instead of copying the text from my issue, pasting on Winsurf and saying, OK, please fix this bug, you can simply say traverse my issues from tech school and then see which one should be a priority or fix that. And then because you're using the the GitHub MCP, then Winsurf has access to your open source ripple. It's going to read the issue for you.
No need for you to copy and paste from here. From there, from there. Now you just paste the issue number and then it's going to call the GitHub API under the hood. I don't use a lot of them. There's also one for Slack. So you can say, hey, go to the bugs Slack channel and then fix the first one. You could do that. You could, but the one that I use the most is Postgres, who uses. Slack to track their bugs? Come on man, I'm just.
I'm not going to say anything. I might know somebody, I'm not going to mention names. So, but I would say the most useful one is Postgres by far. And that's usually because like I'm coding so fast nowadays and then I'm watching the screen and then there's like a missing part on the UI and I'm like, hold up, this user has a bunch of comments. Why are there no comments here? And then I literally just open
windsurf and I say, why can't I see any comments from this user? And then it's going to query for the information for that user, try to pull in the the comments. And then that is going to find a bug for you saying something like, oh, you, you're using the wrong user ID for the comments. That's why. And I can see that Daniel, for example, has zero comments. So you're probably messing up the integration somehow. Can you restrict? This to. To read only 'cause that would make me nervous, OK.
By default, I actually I don't think that this MCP has right access. I don't think it has by default. It's just read access. Maybe if it has right access you can pass an argument to the command, but by default it's just read only. Also for my GitHub, because you could use windsurf to create APR for you, but I don't like that idea. Dude, that's stuff. It's wild to me. So I will say one thing I really liked about your blog post was you're constantly using like
credo and mix format and like you're constantly checking for errors as you go because oh, and guys, if you're using this stuff to write code and change files, please use git. Please please. Because it can really refactor and F up a lot of your project. Yeah, I'm gonna talk about the bad parts later, but once the eye starts hallucinating, it goes on a rampage of destroying, of mass destruction of your
files, and you need to stop immediately and then revert anything that you previously accepted. Yeah. Now one thing that annoys me with like AI tooling, I feel like you, you, you end up wasting a lot of your day sitting around waiting for responses versus just getting work done. How do you combat that or how do you feel about that? That's a very good point. So I have seen many approaches
to this problem. The first one is some people they are very happy with AI taking over the code generation part of their job. And then they're asking for features like hey, can you ring a bell or like make a sound when cursor finishes writing the code so I can go back to it instead of alt tabbing all over the place. So some people they completely switch tabs and do other things, go answer emails like literally or go make coffee.
But but my. Coffee is automatic is automatic now too. I just push a button. OK, So what could you do while cursor is working? Can you work out? Can you do some squats, some bench presses? I don't know. Go ride your bike. Take a healthier lifestyle that. That is an approach I've I've been doing on. So I go to the gym every day. I go to CrossFit. But I've, I've started doing since the weather is getting
warmer now we're coming out of winter. We well, we enter like 3 and 4 winters. Like you keep thinking it's spring and then it snows again. But in between it's been getting really nice. So I've added I run a mile every day and I've been doing 100 push ups on top of my workout and let's see I can pump out my 100 push ups when I wait for a responses. You can do some push ups while we wait. There you go. So you generate the code and get jacked at the same time. That's perfect. That's heaven for me. But I will say that I like
reviewing all the code and once you start using these tools, you can see, you can see that you can see like the thinking behind each feature. So it shows something like, hey, Daniel wants to create a drop down component. Let me see if there are other drop down components on this project. So it looks for files. Oh, I found this one. Let me try to use it. Oh, it's missing a prop. Let me add that prop here. And then I closely monitor what the AI is doing because one of
the bad things they that AI can do is it can hallucinate. So it starts going on a tangent and once you realize the AI completely overwrote your entire code and then you're building a completely different platform. And I like to closely monitor and then also why it's generating the code. I am looking each line that it generates because if I see that it's going on a weird tangent, I there is a big red button that
you can press to stop and you don't need to wait for the AI to finish. So you can say hey you messed up big time, no pause immediately. That's my tip. Just pause. If you see it editing a file in a wrong way or creating a component that you didn't want to pause, just kill that chat and remember that the AI has memories. If you don't start another chat, then AI has context over what you asked before.
So you can queue the process and say, hey, I don't need the new component. Please use that one. So then Claude's going to say, oh, sorry, you're right. That's the the phrase that I hear the most. Oh absolutely, you are correct. I'm going to do it your way. So. You are correct that function doesn't exist. We should use the one that does. Yeah, And funny enough, like there were sometimes where a Claude would generate a code, I was like, that's completely useless. Useless.
Remove it, please. And then 30 minutes later of debugging, I'm like, man, I kind of need that function. So Claude was right. He said I was absolutely correct and I wasn't. So I just go to the AI. Sorry. Sorry, Lord, you are. You are correct. Our overlord. You're correct. I was mistaken. Move forward. But yeah, I like I like to closely monitor if AI messes up something, I kill the process and I say, please don't do that. And then it keeps going on the
correct direction because this way, another thing that I'm going to say is that AI is expensive. Like you can see the windsurf price, it's 15 bucks a month, right? You can see that and and think, well, that's pretty reasonable to ultimate my entire job. That's reasonable I think, but last month I spent $65 because I was constant constantly purchasing more and more and more credits. So instead of letting AI process for like 5 minutes, if on minute #2 I can detect a hallucination.
I'm like no no no no stop. Stop wasting my money, stop wasting my time. Just do that instead. Can you connect Claude's API to Winsurf and use the? Like the API keys? Yeah, yeah, I don't think they have this feature today. I know. Cursor has it. Just pay through Windsor for everything. Yeah, yeah. That, that's another thing that I don't like. Like I pay for the premium version of Clod, the desktop
app, but also for Windsor. So I'm kind of paying for Clod twice, but I like the separation. I can get into the details of how I use Claude for the SAS part, but I like this separation because I think that the AI inside windsurf and cursor, they are, I think they have some custom instructions, instructions inside where they are asked to explicitly generate code. And there are times that I don't want to generate code.
I'm like, how would you do this, Claude? And then it starts generating a bunch of controllers and I'm like, no, no, no, no, no code generation. Please just explain to me how would you do that? I want to have a rough idea of which direction I want to go. And then Claude is like, Oh yeah, sure, just create this module. And I'm like, no, don't generate code. I I need ideas. I need to brainstorming and then on the cloud desktop app it's more, oh, you don't want the code? OK, then just do this, this and that.
It's more brainstorm me, I guess. And I like having a partner of ideas. It's nice. Like I think especially in the world of remote work, you can kind of use Claude or like any AII guess as like kind of like a rubber duck too, Like 'cause you're not bouncing off ideas next to the dev next to you anymore, but you can get pretty good ideas just chatting in the the chat prompt. Yeah, by the way, you can, there's a button for it. You can click on Windsurf.
It's like edit mode. I think in chat mode, by default it's on edit because nowadays everyone is generating code. But you can click on chat and then it's, if it generates code, it's like on the chat step, but not on your code. Like it doesn't overwrite any files. It just shows the the code on the chat. And I like this a lot because for example, on my job, I'm working on a huge application, it's very, very big. And I don't want to bother the other engineers like, hey, do
you know how that works? I, yeah, sometimes I do that. I just send this like message. But sometimes I simply open windsurf. And I'm like, please explain to me this module. Can you explain to me how the invoices work? And it gives me a pretty nice breakdown of how the code works. What are the main modules behind it? What are the front end components responsible for it? It's like a very nice teacher in a way. So if you are a junior for example, I also have some tips for junior on how to leverage
these tools. But if I were you, I would use just the chat tab and just ask questions because you need to practice the ability of crafting code. But that doesn't mean that you can't ask like oh, explain to me this part of the code that is so useful. There's always some very hidden part of the code that just the CTO knows about and nobody else has ever messed around with it. And you're like, man, there are like 20 modules here, I have no clue. Like you could manually go
inside each file and then track how everything is working. But sometimes that could take an hour, two hours. You could have a head start by just saying, please explain to me the invoices part of the app. And then you're going to have a complete breakdown of how that works. And usually it shows the source of the things. So if you're, if you see the results of the AI and you're like, I'm not sure that's correct. Usually it says, hey, that file, that module is responsible for
this. That module is responsible for that. So you can click and see for yourself. So yeah, if if you don't want to edit code or generate code with AI, you're like more you like hand typing code. OK, fine. But use the chat tab, ask questions there, ask for suggestions before implementing something. Imagine that you have a senior buddy right next to you that you can just knock on him and say, hey, what do you think about this? It's amazing.
I love brainstorming ideas because I do. I do love that idea because so whenever I'm like in macros or anything dude, they they break my mind. Especially when someone else has written them. They're hard enough for me to go back and read even if I wrote them. But I have used Claude to explain how like certain modules work with like DSLS and things like that. Yeah, that is very useful and time saving. Yeah, you go.
Please explain this to me like I'm 5. Yeah, add the like I'm 5 at the end and then you're going to get the best responses. Exactly like you want to teach yourself how to program. Keep asking Claude to explain something to you like you're 5 and you're going to be well. You might get a lot of like toy box analogies, but it'll be good. Yeah, but yeah, I, I honestly think that the using the AI as just a senior buddy that you can annoy all the time, 24/7, every day, it's so underrated because,
yeah, like sometimes we want to fix a nasty problem. We have no clue on how to do that. So for example, I'm using Inertia for my side project and for a tiny feature is like, man, I kind of miss live view. I would love to have like a pub sub here where I would immediately push a notification to the front end as soon as that notification happened. And Inertia has a hook called the use Pol. But it's polling, right? I'm not pushing events to the front end.
I'm constantly asking to the back and hey, something new, something new, something new every, I don't know, 4 seconds that's not up tomorrow. And I was like, do I have something like this on inertia? So I asked Claude and then it gave me a complete breakdown of, hey, it doesn't seem like Inertia has what you're asking for, but you can do a mixture of your Inertia app and Phoenix channels. So then it showed me a, a big JavaScript file where I first
create my Inertia app and then down below I establish a Websocket connection and start using Phoenix channels. And then it was like, well, because we're not using direct context, you can use vanilla JavaScript events. And I was like, man, this is so genius. And sure, I could have reached the same conclusion in a couple of hours, maybe days, but having a starting point is so helpful. Or building it wrong the first time and then rebuilding it like
that's what I'm saying. Like I feel like when I use it to like rubber duck or plan features, it forces me to slow down and actually plan my next step versus just jumping in and then having to redo all the work. Like it accelerates learning. Yeah, exactly. And because you have this body that you can ask questions, sometimes you're like, once you reach this ultra mega senior level, like you, you, sometimes you get into this mode of I'm
just going to do it. I've done this many times. I might be, I might be like a noob junior, you know? Now you're the Ultra Mega Blaster senior level, so maybe you get into this mode of like just full coding, straight up coding, but yet there's always like one or two things that are missing that we're not taking into consideration. And by talking to AI you can find those spots. Yeah, One thing that I find hard is if you're starting to kind of
let AI more into your writing code for you, One thing I, I feel like I'm less of a developer and it's all up here, right? Because all I feel like I'm doing is PR reviews and like I'm yelling at someone like, no, you can't do it this way. And I feel like you have like less time in the saddle on your keyboard. But I also feel like that might just be the evolution of things
and we might have to accept that. That's true. I think some people, they, they get a bit sad by the fact that oh man, that means if you're prompting to generate the code, do I even touch the code at all? And on my case I do, but it's mostly for that final, final touch, that final Polish. Or I don't know, maybe I want to switch the color of a button, then yeah, sure, I'll do it by hand. I'm not going to ask ski and spend my hard earned money for Claude to change the color.
I can do that by hand. But the bulk of my job is generated by Claude and some people don't like that feeling of OK, so I don't write code anymore because yeah, it's more fun to write the code than it is to review the code. So I would say that in my case, I am a little bit on a privileged situation because the number one reason why I decided to learn to code wasn't because I wanted to become this ultra
nerdy developer that is like micro optimizing each bit on the application. Like I don't like that. I like building products, I like building things. I like seeing the screen with the the courses and the user reviews and wow, like it blows my mind that I just need a computer and Internet access to do that. It's pure magical to do that. So I fit more on this builder mentality. I like building things.
So for me, I think it's amazing. I I build things way faster and if I need to throw some code on the trash that doesn't bother me because instead of spending the entire day creating that feature, I spent 15 minutes so. See, I, I like that angle a lot better because like I, I too, I would consider myself a builder over, you know, some crazy smart genius that's going to create new technologies and frameworks and, you know, make my life as a
developer easier. I'm never going to be that guy, but I'm really good at getting things built and working and shipping products. So I think I just had to change my angle like this is allowing me to build a product with just as much quality and like test coverage as you would manually, but in a much faster time. Yeah, exactly. But I do have to admit that if you are this kind of developer that is more hands on that enjoys the process of writing
code, that's not going to stick with you. Like you're not going to enjoy that. I think that's the future. But I'm not going to come here and lie and say, oh, it's all good. You're going to love it. You're not like you feel like creating code by hand. You're not going to enjoy this. You're chatting to a box inside Windsur instead of doing engineering. You know, I'm not going to lie, it is different. And I'm not going to come here and say, oh, it's all sunshines and rainbows, you should try it. No, like I, I still think you should try it because that's the
future. But I'm not going to lie and say that you're going to love it if you like generating the code. I mean, creating the code by hand. It's a different situation that we're living right now. And I don't think you're going to enjoy this, this new era, but I think it's hard to go back like imagine every CEO nowadays hearing that, oh, hold up, my developers could be 2X more productive, 3X more productive. Then I think that most of the
business owners, they're going to probably pay for like the team's license of Cursor and Windsor and then expect of you to 3X your productivity. But also that kind of sucks too. Like I hate feeling like, I mean, I think this is something we have to accept, right? We're we're an asset to a company. So we're technically we're just a code or a feature factory essentially. And it, it puts a weird stress on you when you're just like
expected to perform and gives us like, keep knocking things out, keep knocking things out like, you know, like a good little automated robot. And I think that's a, it's a hard pill to swallow. That's funny. So I just I just read. It Nero Nero's in the comments and he just said harsh pill to swallow and I think it just entered my brain and so I said it, but yeah, I don't know. I think it's an interesting. I think it's really good for
bootstrap startups, right? You you almost only need, you need like two people to build a really good product. You need someone that can build it and understands the technical angle and then you need someone that can sell it. And so you can have these like 2 man startups that are building amazing products with thousands of users. Yeah. So yeah, complementing to your vision, I think that there, I think there are two roads that we're probably gonna follow after this new AI generated
generating tools. Either we're going to keep working as full time coders, individual contributors, but now it is expected of you to ship 3X more that future. I don't like you're going to be more and more robot or actually you're going to be an AI manager, you're going to you're going to be the tech lead of a team of a is. I don't like that idea at all. But to be honest, I don't think
that is going to happen. I think we're going to start having more hybrid professionals in the same way that you don't need to hire a designer. The entire design for the version 2 of tech school that I'm working on, spoiler alert, I did not create. Claude created it. I don't have a figma file for the design. So you could have come here and say designers are dead. I don't think they are. I don't think. I think we're just going to have a hybrid approach where it is
you're going to do more things rather than just your own little island of oh, I'm a designer, I do Figma, I just do Fig. No, you can be a design engineer, you can be, you can code and then generate designs are going to do more things. I think the more likely scenario is that we're going to slowly transition towards a role of product engineer where instead of being just a code monkey, now you're going to talk to the founders, to the CEO, like directly, instead of having this
10 layers of middle management and then 10 product manager. No, like if you can finish your coding job for the day in two hours instead of eight, well, you now have more time to talk to customers, get feedback from them, talk to the founders directly, see what they want for the the product itself. I think we're going to move more towards this type of role and that. I'm excited, but that's because I have this builder mentality and I think you do too.
Do you know what I heard though when you said that if you can complete your program and tasks in two hours instead of eight, I think now you're just going to be expected to forex your output. Yeah, maybe. Maybe it's like expected to ship a crap ton of features. Yeah, I will say I think it opens the road. I think you'll see a lot more entrepreneurs doing their own thing 'cause it'll it, it makes it easy to like take that
perspective, right? If you can get 8 hours of like programming work done in two, you now have six hours to sell your own product. So if you're building your own stuff, that's yeah, I think that that you'll see. And I, I am excited for that as well, 'cause I think that is a really cool approach. One thing that I think I see as being like detrimental though, with using AI, if you're learning how to program using it too much versus like 'cause I
think like there's something to be said about like the headaches and the pain points that you run into when you start to code that you're now going to avoid because you can just ask Claude. And then are you truly learning or are you just regurgitating and fixing your problem and moving on? If you're truly trying to learn from it, I think that's good. But if you're just trying to be a fast new developer, you're never you're not gonna learn the same like hard lessons as
someone that's programmed for 10 years. Yeah, I think it, I, I have a good analogy for this, that in the same way that we all have calculators now, that's kind of obvious, but when you're a kid, you're not allowed to use the calculator. You need to do all the math by hand. You need to do that. You need to do the big multiplications and sum and subtraction by hand. And then once you are like a teenager, then it is expected of you to use a calculator because
you're going to move on to more complex problems and those easy like easy math problems that you used to do by hand. Now you use a calculator. I think in some ways for learning it's the same thing. If you want to learn, then use the chat, pretend that you have a senior by your side. Ask questions, but don't copy paste the errors and say fix it. Don't generate code. Don't just. Yeah, you need to build a read. You need console outputs and
things and understand errors. Chris just meant this has been a funny thing that's been trending on XA lot, but he goes the vibe coders launching SAS products and immediately getting crippled by security holes. So like this is the problem too with just like unleashing like some automated thing that like it builds you a product. You get it working, but you have no idea how it's operating like did you set up engine X like what are you using to actually like like how how is Coors set
up? Is it just a asterisk? Like what are you doing? Like you're avoiding a lot. Like there's so many security flaws because you have to remember a lot of these LLMS are scraping. They scraped Stack Overflow. And how many times were you on Stack Overflow where you're like, how do I fix this coolers error? And they're like, just put an asterisk in your config. Like that's not how you fix a coolers error guys. Yeah. And I think like if if you want to build an MVP for testing
purposes, sure, go vibe code. That's in my mind, that's the best scenario for vibe coding I honestly. I hate this the this term vibe code. It's just it's such such a cringy thing that is like people that are that that it actually exists. There were people are like, yeah, I'm a vibe coder. I just want to be like, yeah, you're, you're an idiot. And we're like spending five years of our lives doing
engineering school, then another 15 working as software engineers. And to hear someone say I'm a vibe coder. And I'm like just trust the process bro. It's all about the vibes. But yeah, like if you want to have something what's the correct word like trashable like that you can throw away. I don't know the the best word for this in English, but. But kind of like an R&D product, like you want to just research and development and like iterate quickly, right?
You want to find like product placement, but you can do it a lot quicker. So you might start over at the end of it like, yeah, I'll call it like MVP or like even alpha product testing. So if you want to do any type of rapid iteration and not store any sensitive information, maybe you want to do like a redesign of your homepage, then sure. Don't, don't see the code. Just open the chat tab and do this, do this change here, change that. Once you reach a good point, you're like, OK, I like that.
Now you know what you want. That was the entire goal of the Vibe coding session was to detect what you want to do or what the customers want or I don't know, we want to create a portfolio website. OK, that's pretty low risk. You're not storing user data, you're not storing passwords. Then fine like. Wait one second, I have AI have something I can wear when I become a vibe coder. Oh, I'm curious. All right, so you know, I'm
going to start my new YouTube channel. I'll be like Vibe Mentor, you know? The elixir vibes vibes mentor just that's great. There we go. Now I'm a vibe coder. I'm ready to go. I don't even have to like, really see the screen. That's why I can wear sunglasses. Yeah. It's just going to, it's just going to work, yeah. I think whenever you want to enter the vibe coder mentality, you wear those glasses and then you hide the code.
You just open the the panel, the left panel and you're like do this, do this, do this, do that, do that and then you're vibing you. Know what's funny is like polarized sunglasses. So I have one of my monitors has turned, you know the long way and I can't see the monitor because it because of the polarized lens. I see. It knocks, I don't know how light. Frequency. That's perfect then. Works but it's perfect for I just let it go and I don't have to read it. I can just be a YouTube in over here and vibe code on the on the
left. Now please just don't put anything vibe coded in production. OK? That that's it. If you tell me that your recess was was vibe coded, I'm not touching. I'm not sending my password there. Dude what's wild is like I I don't remember the guy's name offhand but he like basically said he vibe coded his whole like SAS product and then got attacked and hacked and like DD dossed and all that crap. So basically just blew up. But he first before that all
happened he was like bragging about having like 100 paying users. Like guys you have to take responsibility like you have 100 paying users are you storing their data properly? Like if you get hacked, are they are, is there sensitive information going out? Like, yeah, you had to understand what what code is being generated like that? That scares me. Like I remember talking to someone that just like let them have full read write writes to their entire like computer, but
they worked in like AAVM, but like still like you're allowing it to just manipulate your database, whatever it wants to do. And I get you can like kind of use git and protect yourself a little bit, but I don't know you definitely you got to like lock that down and only allow it to do so much. Yeah. And I, I like to say that my approach for using AI is more of a like a sniper approach where I have a very safe and contained
environment. And then I very carefully find out what I need to do. Once I have a very clear understanding of what I need to do, then I shoot. And then the shoot is usually very precise. I usually hit my target. There are some people that just open the chat tab, don't send any context, don't send any documentation, don't send anything. And they're like, implement this for me. And then it generates a bunch of gibberish. And then instead of deleting it or trying to understand the code, they're like, oh, no, please fix this, fix this, fix
that, fix that. And then it's just, it's exponential. You have a bunch of gibberish that is exponential and then it starts hallucinating. It's horrible. That's like a machine gun approach where you just I like going shooting. Yeah, I like your like it's sniper approach because you have to just focus on very small things. You have to like any big project how you would break it down. That's how you have to approach using AI, right? You have to be like, all right, now let's do this specific module or this component, and you have to do one thing at a time and stitch it together. I tried I I was very curious
when I started playing with Klein I I had this just a vanilla JavaScript and HTML and CSS just bare bones, no frameworks, no dependencies. And it was just like a, a minor, like a Chrome extension that did some web scraping. And obviously like I plan, I want to add some more complex, some complexity to it. So I, I wanted to see like I wrote like a markdown file of like directions, kind of like
what we have to get through, like each point, blah, blah, blah. And I wanted to see if client could work its way through and kind of use the markdown as like a living document so it could like check things off as we went, so it could kind of keep track through the markdown. And then I was like, look, I want you to take this project and convert it to smelt. It did not work. It it kind of, it kind of worked. Like if I didn't know what I was doing, I would think it would
work because like it added it, it initialized smelt, it moved some things, it built some components, but it wasn't like using the spelt components, you know, it was still using my vanilla JavaScript stuff. So it was like this weird like Intermix project where there's a ton of useless code and then a ton of old code, but it was like using bits and pieces from all over the project. So it just made a huge mess. And so now my approach is just going to be like a component at
a time, you know, create a new project component at a time. Like I wanted to see the limitations. I was just kind of curious, but it like completely blew up. But I will say it compiled and ran the same exact way. So if. Which is impressive, right? Yeah, So if I didn't know what I was doing and what what is cool is like the the workflow stuff now like the agenic workflows that these I I DES can do, it can like iterate, it can compile, it can see errors and it'll try to fix itself.
But it can also get in weird loops that just cost you a lot of money. Exactly. That's one of the reasons why on my Windsor rules I have explicitly a line that says every time you generate a lot of code, run mix check. And then check is a custom script that I added on my mix file where I have like the basic checks like a check, the formatting check, do a compilation with warnings as errors.
Also run the type check script that I have inside assets which is my TypeScript script. So every time it generates a bunch of code, first of all, before running the mix check, it checks for linked errors. So if there are any unused aliases, unused imports, then it removes those. If there are unused variables, it removes those. And then after that it runs the mix check. And I also have Credo in there to check for the code quality.
So sometimes, I mean I'm still learning Elixir. I checked the code and I'm like, this looks good. But then Credo was like, Oh no, this is too nasty, those functions. Those are the best warnings too, because sometimes you just like, are in too much in your head, too much in the problem, and you write a really nasty function that shouldn't be one function, you know? And so, yeah, Credo, Credo's nice for that. It's a lifesaver. It'll. Also yell at you if you don't alias things and I love that.
And I use the strict option, but I don't know if this is specific to strict or not, but you need to order the aliases and imports alphabetically. So I'm like wow, looks great. And then you're using the wrong alphabetical order and I'm like, oh God, OK. Feed my OCD. Come on buddy, I'll do that. I. Didn't have this OCD. I'll do that in my mix. I'll do that in my mix file. For dependencies, I'll make sure everything is alphabetical. So now I have OCD thanks to
Credo. Thanks a lot Credo. But. It's good for you. It looks nice, like the code looks nice. I, I like to say that this is my sanity check script where you generate a bunch of code and you're like sanity check is everything OK? Everything looks good. And then if it runs the mix check and it fails, then I don't need to say please fix. It enters a loop, the agent mode and then it fixes. Yeah, I guess that's like the agent mode is the agenic workflow that I was describing,
but it's yeah, which it's, it's pretty cool. It's insane. Like a previously I had to copy and paste a bunch of errors and paste on the chat. Now, now I just I it's on my Windsor rule, so I don't even have to say run mix check. It generates the code run mix check automatically and then it's like, Oh no, we messed up formatting. Let me run mix format for you. Oh no, there are unused a list. Let me remove the that for for that module. Oh no, we're not using the
alphabetical order. Let me change that. And you can see like literally like a, a senior developer working at 2X speed and you're just watching everything going on. And as I said, I like watching. If I see that it's going on a weird tangent, I just stopped immediately. But with the sanity check at the end, the results are so much better. And it's just a custom script, you can check for whatever you want. On my case it's TypeScript credo
formatting, but you can put whatever you want. You know, so I'm giving Ash framework another go 'cause like I, I struggled trying to like implement it into like my daily work. It was just slowing me down too much. But now with like the release of the new Ash framework book, which is awesome, by the way, it's still in beta, but I still highly suggest it if you're using Ash, a lot of good stuff. But like like Claude, for
instance, you can have projects, right? You can upload that, you can upload that as a reference and you can be like, hey, I need help making this resource like available on the graph and it will look through the book or the online documentation and give me pretty accurate help like it's pretty awesome. Yeah, and I didn't even got into my says workflow, but I use a very similar workflow for it
which is Claude Projects. Now this is not a feature specific to just Claude. ChatGPT has it. If you pay for the premium version, you have access to something called projects where instead of opening a new chat every time the context gets too big, you open up a new chat but you lose all the context. No, you can have a project where you upload. You can upload text to any type of file. I think even video or audio you can upload as well. In your case you said you
uploaded. Were you able to upload the entire book well? So it was short enough, but you get, you start to Max out the, I forget what the limit is, but yeah, a lot of books you can't, right, because they're just going to be too long. But they you can now do like GitHub repo links and documentation links which is a huge time saver because now you can just link documentation and have at it you know? Exactly. And imagine this if you can, if you want to talk to a book, for
example, well, create a project and Claude or Chechi PT upload the book and say, I know, summarize this for me. Or you want to ask a question about a section that you haven't read yet. Then you can have your answer at at your fingertips, like super easy. You can literally talk to the book. I think that's crazy. And for my says workflow, what I like to do is I like brainstorming. Every time I I find something very cool, I'm like, OK, I want to save that. So I create a literally just a text file that says, for example, tech school guidelines,
tech school monetization strategies. Literally I paste the ideas that Claude gave me, upload it to the project. And then now from now on, Claude is aware of how we want to monetize my says, what are the guidelines that I'm trying to follow? And that's my approach for getting ideas. I use cloud, the desktop app as a Co founder. And there's even project instructions where you can give custom instructions on how cloud should behave.
So on your example of the book, you could say custom instructions. You are a teacher with a lot of experience in Elixir and Ash and you want to explain things slowly and then I don't know this topic. I think it's hard. You should explain it more. You give it literally custom instructions on my case. Let me grab my project instructions real quick for version 2 of tech school. This is my project instructions function as a strategic Co founder slash product owner with
expertise in UI design, marketing strategy, sales optimization, product planning, creating PRDS focus on brainstorming ideas, asking further questions to deeply understand my intentions and planning the MVP slash next features do not generate code. The main focus is scoping out new features. So it enters a mode of I have a Co founder. I can ask questions and I'm
like, I think I want to do this new feature. What do you think? And sometimes Claude is like, OK, this is cool, but I think these other feature is better for the MVP. And I'm like. Wow, that's cool. I like that. That's a really good idea. Because I I like to think that I'm a good developer. Maybe I'm wrong, but I like to think that. But I know that I'm not a good product person. I'm not very good at scoping new features of coming up with MVP ideas.
I am not good. So I use cloud for that. I created a project with zero ideas in the beginning. And then first of all, I explained to him, hey, I have this project now called Texaco that does this this and that. I want to work on V2. What do you suggest for AV 2? And then after talking to it, I sort of extracted the guidelines of OK like this. I like that. I like this this. I chose the features that I wanted to work on and then at the end of the message, I was
like, OK, now generate a guideline, a guideline of what we talked about in this conversation. So it generated the guideline. I copied it and then uploaded to the project as a text file. It was called text cool V2 guidelines. And then that's how I progressed with my says ideas. Literally imagine it as imagine that you have a very experienced Co founder next to you that you can ask questions, you can scope new features.
And then I was like, OK, this looks cool, but I want to monetize this. What ideas do you have? Where should I monetize? And then he's like, oh, you you could monetize this aspect or maybe that other one. And I'm like, I like this one. Can you expand more? It's a brainstorming session. And then at the end I'm like, OK, I liked this. Please summarize it so it generates a summary. I copied that, uploaded to the project as tech school monetization strategy as a text file, and then I move on. So literally coming up with the
idea alongside Claude and I sync the Claude with GitHub. And what I like to do is, OK, based on the files that I have now, based on the features that I have now, what should I build next? And then he's like, maybe you should focus on the course search. You haven't done search yet, so you should do it because it has access to the code and or could ask OK I I have finished the search what else? What should I do next?
And then Claude gives me a direction. How good is it with like seeing the full scope of a a larger project though? Do you notice like does it struggle or like when it has a GitHub repo? Is it pretty good? So you can pick which files or folders from the repo that you want to sync. On my case I synced the assets folder and the Lib which is where my front end and back end lives. Like I don't care about the configuration, I don't care
about migrations. Like I think that with just these two folders, Claude has the full context of what I am building. So usually I say something like check the assets folder to see which pages I have and give me UI suggestions for the course edition process and then he can just see the course add page. Or I'm like I don't like the profile page, can you give me UI suggestions? And then it sees the profile page so I don't sync everything.
I don't think I would be able to because of the context limitation. But I literally just selected the Lib folder where the back end lives and the assets. That's it. But I mean that you're pretty much syncing your whole project. Yeah, yeah. 90% of the code is there. OK, that's pretty good. And it it reads through and understands context pretty well. Yeah. And I let me check real quick. I'm using 50% of the knowledge capacity for the project.
So I think if I wanted to I could just sync the entire project. I decided to just pick those folders but. Does it only work for public public repos? No, the the version 2 is private. I don't know if I'm going to open source it, but it's private. So. OK, it has access to it. Mind blown. It's pretty neat I thought when I first looked at it. So like I use clod in the browser, is it worth having the desktop app?
To be honest, on the desktop app you have access to MCPS, but I use the MCP inside windsurf, not really inside clock. So I'm like, I don't think it's really necessary. I think it's more practical in a sense, but not really necessary. I would say it's optional. OK, maybe I'll give it a go. And yeah, to your point about the context, just to finish that that question, as I said, I like having more of a sniper
approach. So if I think that for Claude to understand what I'm working on, he needs to look at the courses pages, I'm going to explicitly write. Please take a look at the courses pages. Those are important. So in the same way in the code generation, if I'm like create a new module on Elixir and grab inspiration from this other module. For example, I had to come up with unique names for some
entities on my database. And I had a very neat function on another schema file on another chain set to generate unique names. So I literally said create a function to generate unique names for those twos based on this other file. And some people don't do that. They just open the chat and they're like generate unique names dot period. I don't like that I like giving as much context as possible. If I think it's going to mess up
something, I also give a web link. It's very precise. I open up a bunch of files. I say take inspiration here. Look at this drop down component there also on the cloud desktop. Please take a look at those pages. I think they're important so very precise approach. I don't like just going machine gun mode and just do this and then expect it to understand the context. I try to be explicit most of the time. Yeah, well, machine gun mode I
think just gets you in trouble. That gets you a refactored app with a lot of dead code and. Vulnerabilities. You can go to to hallucination mode very quickly. If you go machine gun mode, that's a bit dangerous. Oh, there's a good name, Chris goes I I need a a new character for vibe coding. Maybe like, I don't know, machine gun vibe coders. Machine Gun Jacob Elixir. Machine Gun Jacob. I think that's a a nice name.
Vibe Machine Gun mentor, Yeah. Sounds good machine gun Viber. That. That was good. We'll get Claude to help us nail down the name. Yeah, you can't generate the. Name as well, you know. No need to. Spend any brain on that. Yeah, might as well Brand, vibe, brand as well. Vibe code, Vibe brand. Just go. Yeah, in fact, I do have a project for video ideas or like brand ideas. It's also a project where I just
upload some examples and I'm like like I give samples of my YouTube and I'm like, OK, give me video ideas and then I grab video ideas from there as well. So I mean, I'm using AI for the most amount of things possible, but that's also a test that I'm doing. I like to experiment on things. And if you want to learn at least one thing from this podcast is be open minded. Like just try, just try.
OK, Oh, but I like generating code by creating code by hand. But just try it. Just try it, OK, Be mindful, give the proper context, write a big text. But just try it. And also try vive coding. Try not giving any context and see the results. It's. A and then please and then please stop doing it immediately and never use the word vibe coder again. Test it and then stop it. Stop it. Yeah, stop it.
It's not. It's not a good it's not a badge of honor to call yourself a Vibe coder. Nope, not not healthy to to call yourself a a vibe coder. Not recommended. That's how you get your your SAS. Your SAS project attacked and hacked. Yeah. Yeah. Oh, I don't know if you've seen this. I feel like it's like new this week or in the last couple days, but one of the coolest AI projects I've seen yet. I think his name's like Roy Lee.
He made basically all right. I hate it. And I've been talking about this for years. Like Ben and I with like big app energy. We have said how much we hate leak code for job interviews. I think I know what this is, it's the leak code. Yes, yes, like Oh my gosh, this guy is like my new favorite guy ever. Best product ever. If you guys don't know it, it's like basically he made a transparent AI window that lets you like code live because
you're like when you interview for these big Fang companies, they'll just like you're like in their own console and they'll like give you a a, a, a leak code question and you have to solve it on the spot. Well, this allows you to like take screenshots of the leak code. You can, you can even take multiple screenshots if if you have to scroll all with like commands on the keyboard, so you're not even moving the cursor around, which is really cool. So they don't think you're like doing all their things. And then it will solve the
problem and like give you prompts that you can speak out loud about your like question. You're solving problem techniques and then it gives you the code and you can just type it in and solve it And they can't see it on screen sharing which like such a brilliant idea. Yeah, and from what I heard, I think he got expelled from like his college. Yeah, Columbia. His job, Yeah, yeah. Columbia expelled him or something like that. And like Amazon they got, they
got like he went through the interview process and like Youtubed it and like and he got hired or at least an offer from Amazon and some other big companies. And when he put it up on YouTube they are so butthurt they reached out to his school and for whatever. Like he didn't do anything wrong. If anything he just proved how dumb leak code interviews are. And like come on guys. Like hire that guy. That's the kind of programmer you want on your team. You don't want a guy. You want a guy that memorized
how to solve a bunch of algorithm questions. Like you guys are idiots. Yeah, that. That's the most annoying thing, at least in my opinion, about being a programmer, is this type of interview. I just hate it. Especially if you have this builder mentality where you want to build things and you're like, oh, how about inverting a binary tree? And I'm like, OK, can I deploy that to the Apple Store, to a website? No, I can't. Then that's useless. That's an imaginary problem.
And also, if you start having like query speed problems, you're going to solve that problem when you have to. Yeah, and you're gonna solve that problem with SQL, not with the Dykstra algorithm or the inversion of a binary tree. That doesn't matter, at least on my mind. I I just, I just hate it so much. It's the worst part. Whenever I see that there is a lead code part of the interview, I'm like Nah, not for me. I'm not even a fan of any like whiteboarding or I'm OK with
like high up. Like how would you architect this solution? What would you do? Like talk in the macro sense 'cause like you still can use words like I would probably use like a Genserver or the ETS table. And if you're dropping these words, I think it kind of proves that you know what you're doing, at least for the most part. But yeah, like anytime you're like live coding or pair programming for an interview, I think it's dumb. I think take home projects are fine. Like you can see how people, you know, create a project, how they organize code and how they
problem solve, right? It doesn't really. Like, as long as they get to the solution and it works, that's important. But I think everything else is just dumb and it just adds like anxiety and stress to the interview process. It's weird. Yeah, and your performance drops like it, it's inevitable you're gonna code at your normal speed and then you go to an interview where you're live coding and then you are like 0.1 X of your normal performance because you're you have anxiety, you
have fear, you're not feeling good with the person watching you code. It's it's not a good feeling. So I completely understand that's. Weird. And like I just, I recently just went through the interview process, so it like kind of all hit home again. Like back in like December and November, I was interviewing a lot and you can, I was like interviewing with some senior devs at companies and I was teaching them stuff about Elixir.
But like I didn't know that till we had like a more technical conversation after these stupid leak code exercises. After you like get through all the low levels of this interview, which honestly knocked me out of the they knocked me out of the race early on a lot of times just because I don't have the capacity to want to do it. Like and it gives me like I'm a horrible test taker, but I can build a product. So like it, it does weird things, but like, yeah, I made it through.
But then when you start talking to these high level guys who you're going to be working with and you're like, wait, why do I know so much more than you? Like I'm not going to learn anything at your company. And like, that's why I'm so grateful at the company I'm at now. I work with like people that I feel are all way smarter than me. So I'm learning from them daily, you know. Yeah, I also like this philosophy. There are some people that says something like, oh, I want to always be the smartest person in the room, to constantly push me to be smarter.
And I'm like, bro, I want to be the dumbest person in the room. That means that I'm on the right room. I have enough space to learn and grow. I always want to be the the opposite, the dumbest person in the room. 'Cause at least you're learning then, right? Yeah, then I can go sponge mode and then absorb as much knowledge as I can. Instead of having marginal gains over talking to some people. I like going to sponge mode and just as absorbing as much as I
can. That's my philosophy at at least. Yeah, that's Chris was like, that's why they got him kicked out of school. Jeff Bezos will fund his seed round in under a month. That's probably true. They're like, we want this kid to focus on his product. Hold up. I don't want you as an employee. I want to be your business partner, OK? Yeah, exactly. Let's kick you out and then position you at the correct place. But yeah, that's cool. He also, he also mentioned that it uses it'll like scan your eyes and it will move the window where you're looking on the
screen so it doesn't look like you're glancing somewhere else. That's pretty cool. Like it's just a cool product. Like I love seeing really cool projects. Very high level of engineering, like you cannot be a stupid person and code that's hard. That was a hard project to code. And I love that it just totally demolishes the purpose of leak code, like all these companies will probably stop doing leak code tests. That would be a win. But not a win for his company, unfortunately for his new
product. But it is what it is. And I think it's funny because we have companies using AI to remove people from the selection process. And then once we use AI to pass on those selection process, they're like, Oh no, I can use it on my end. But on your end, Nat. Nope, just on. Our end. Yeah, yeah. Coolest product ever, though. Like kudos?
Yeah. And thankfully I did not have to to do lead code interview as well on on my current job. That's how, you know, like, yeah, I, I think we have more of this personality to work at, not necessarily start-ups, but more open minded companies where they are more worried about the product aspect of the of the product rather than the ultra word that wants to hyper optimize. Well too like so collects who I'm working for now.
They didn't do any leak code stuff either. It was, I had a, a couple conversations with like a lead engineer and then the team of engineers that I'd be working with so they could like hammer me with questions. And then I had like a take home project and then another call with the whole engineering back end team where they questioned my project. And so like I think through that process, you know, if someone actually understands the code they wrote, you know? Yeah, exactly. And on my yeah please. I was going to say it and it
just takes the weird stress and anxiety off the memorization of computer science. Yeah, exactly. And you're talking about a project that you wrote so you're comfortable, like you didn't code it in front of them. On my case, I was able to grab the code from tech school and I got asked a bunch of questions about, oh, why did you do this? Why'd you do that? Why? How do you think you would improve this performance? That performance? And I was like, oh, that's my home. I can talk about this all day, every day. And it was great.
I was able to fully elaborate on all my ideas because I coded that thing from scratch. So that was an amazing selection process in in my. I think that's the the only way to do it. And I think I walked through one of my they're like, if you have any projects you can share, can you walk through them? And like I, I pulled up my like web hosting project and like, it's cool. Like maybe it's not the most like tech edge of tech savvy
like LLM project, but I made like dynamic live views, dynamic routing and like a lot of really cool stuff to support, you know, hosting 100 websites, you know, so it was fun. So I got to show like a pet project of mine and I knew the code base. So they know that I wrote it all. So yeah, it's it's, it's better to talk through one of your own projects for sure. Yeah, you, you knew everything by heart because you coded it. So it's much more comfortable. You feel, I think you're able to
perform normally when you're talking about a code that you wrote, instead of having to perform in front of them and just generate the code on the spot. That is never a a good idea. Yeah, exactly. But yeah, I just, I love that like Amazon got, you know, their panties and a bunch and actually wrote a letter to his school to get them expelled, which is. That was the sad part, too. But it went viral and now this kid is running a really
successful startup. Yeah, he has the mindset for it. Go build your own thing, man. You, you don't. You don't need to work at a big tech that demands all those unreasonable unreasonable things like grinding leet code for years now you you're you outsmarted them so you are on a whole new level. Yeah, I just love it. Like why didn't this tool exist? Like worth every penny guys. Yeah. But yeah, I think this was
awesome, dude. I'm glad that you shared like all your windsurf and how you approach projects. I think it's important for people to talk about it. I like, I don't think, I think like at first people were scared to be like, I use AI to try to code. Like you just have to use it properly. Like no one thinks you're writing all your code with AI 'cause it's just not, it's not feasible. But it it has its strengths and you can use it to 10X your output, you know? Yeah, exactly.
And I am reviewing each line of code. I don't feel comfortable just blindly generating things and then push into production. No, like if I really trust the code I am going to at least. Like for example, if previously I would take one hour to finish this feature, now I finish the feature in 10 minutes and then I spend the next 40 minutes testing. That is, that gives me confidence. Then I do a bunch of manual testing. I go clicking on every single aspect of the new page to see if everything's working.
And this gives me a lot of confidence. So I review the code. I do not vibe code. I manually test everything that I wrote. Now time out. Do you have test coverage on your code? Like checking the percentage levels. The unit tests. Yeah, I do. I do write this. Integration tests OK. Good, yes. That's good. Yeah, I, I think that that's part of the sanity check that I mentioned. I mentioned the check command, but I also like generating the tests because, yeah, like sometimes if you don't have the
time to manually check the function, you can write the tests and you can read the tests and see if it's properly testing your feature. So yes, I do generate tests. OK, so just if anyone's wondering, I do write tests all over the place because it gives you confidence on the results. Well and you have to worry less about regret like so I think you're more likely to have regression bugs using AI because some like especially if you're not PR ING and reviewing every
line of code, it might change something and. Yeah, on the hallucinations, they break existing things. Well, and you should just PR every line of code. I think that's just that's the saving grace here of not fully depending on what your what was outputted. Yeah. And yeah, as I mentioned, like this is an accelerator, you still need to review the code to check for do your security audits. You need that expertise. You need to be some form of
engineer like either having the formal education or doing a boot camp and learning the engineering by yourself. But you need that technical mentality. I I don't think you can grab a random designer and say well just use cursor man and generate the code like. No, yeah, you need to. You need to know how things are working under the hood or I think you'll just get in a lot of trouble and create a product that gets hacked. Like some of like, well, some of those X posts I like they have
to be satire, but. I don't. I think they are. Maybe they are. Most of them are fake, to be honest. I think they're. I really hope so. Yeah, yeah, I really hope so. But like sometimes I'm like maybe it's not, which would be really bad. Yeah, I read it and I'm like, I don't know if it's true, but I could see this happening. So maybe this is a cautionary tale for you to learn and not make this mistake. So yeah, review your code, write tests, do manual tests as well.
If you're working on a full stack feature to to be safe, OK, and then use it as an accelerator. You're now a Everyone is now a 10X engineer leverage. That we can all go home and be vibe coders. Let's grab our vodka or drinks and then our sunglasses and let's just. I that's what I need, like a little drink with a umbrella coming out of it. Yeah, you need a a Brazilian Chipenina to drink and then just
just chew. Right now I just have coffee, but yeah. Same. That's how I that's how I live. Yep, that's the correct way in my opinion. Just coffee and code. Coffee and code. You have your vibe coder glasses on so so to vibe code now. Yeah, now it's time to vibe code. You just type whatever comes into your mind and press enter. That's it. Exactly like Chris was joking. Vibe code, a new Stripe
competitor. You know we accept if you want to. If you want to vibe code the landing page, oh good, I don't know a blog? Oh good, but don't tell me that I just added my password or Skype Stripe credentials on your vibe coded app. Oh gosh dude, imagine how many people put API keys and things into prompts and stuff like. Yeah, like, I mean, I guess.
It's fine to do, but make sure you change them after you're done. Yeah, that's actually that happened to me once. I was using Windsurf. I didn't realize, but I had my secrets file open. I didn't give it as context, but then Windsurf said, hey, I have access to your secrets file, you might want to rotate those keys. And I was like, oh, that's great. I didn't realize that it had access to it.
So I felt amazing after that. Think about your environment variables guys. Please. This was this was a lot of fun. Thank you to everyone that joined us. And I'm sure Daniel will be back on because it's always a good time when he comes on. But yeah, have a good weekend and thank you so much, Daniel. Thanks for everything. Thanks for everyone that watched it. It's always an amazing experience to be part of this amazing podcast.
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...