Skip to main content
WALTER ANDRADEWA
Back to writings

Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb

#ai#agentic-ai#career#software-engineering#mentoring

Every story needs a crisis and a redemption. That's something I read in a great book. So in order to tell you how I came to love building with AI, I first need to be the boy who leaves home, listening to the call of the unknown.

I think the worst moment of my career, to this point, was when I was fired from my first job due to performance issues. This is the hardest thing for me to admit about my career.

I had no idea how to find a new job at that time. Not a clue. I spent weeks grinding forms on LinkedIn, sharing CVs I learned how to make by running deep Google searches as diligently as I do my Stardew Valley chores. I would apply to anything saying "developer", although it could only be for "React" and "Node". Never an answer. Months go by. I'm about to go broke when a friend comes by and offers me a job at the company she is building. I didn't know why she would hire me. Did she take pity on me? Did she think I could really help? I was deeply afraid to say "yes" and not be worthy of the opportunity.

At that time, I felt like I didn't really get programming, even though I'd been doing it for two years. I was frequently visited by impostor syndrome. And, to be honest, I could have been grinding LeetCode with my Stardew Valley diligence. I later learned to love it, but only after I could pace my practice easily with an AI agent. I was facing a difficult career change from Philosophy. Try to see it my way: for a person who had been in college for the last 10 years, it wasn't only the work that had to change. I had to learn about a whole new world I'd never even poked into. I loved computers as a kid, but information wasn't as easy to come by as it is today. I could see things like "HTML" and "C++" in magazine stores, but they never appealed to me. I had no idea what these kinds of things were, even though I always felt like I wanted to know. I was the type of kid to instantly unscrew and take apart every computer that came by the house to see how it worked. I learned how to do basic stuff like formatting a computer, setting up local networks for a Counter Strike 1.6 match, learned one thing or two about BIOS and felt like the greatest hacker of all time pressing DELETE and F12 to see the blue screen. I also have dear memories of feeling attracted to this world since I was 9 years old, sitting in a particular bookstore my mother liked, staring at those magazines and books about symbols I couldn't make sense of. My parents came from the rural and most humble side of the country, where few computers were brave enough to venture back in the 80s or even the 90s, so they couldn't guide my curiosity in this regard.

Finding programming

I learned what programming was in 2019, when I, desperate to work on something I loved, used all the money I had earned the previous year working as a freelance ghostwriter for college theses and general college work to pay for a game design course—later I found out it was intended for teenagers. The course, in my defense, promised work after 6 months. "Programming" was the last class, 2 years into the course (and it was basic programming for Unity, as I found out later).

It (meaning, "programming") did not catch my eye until two weeks after I joined the course: I was reading "The Hero with a Thousand Faces" completely alone, waiting for the class to start when I stopped reading to look at the course's paper that I was using as a bookmark. That's when I learned that there was something called "programming".

I got up and asked the first employee I could find: "Can I take this class right away instead of waiting until the end of the course?" She said no, so I simply left and never came back—no regrets. A few days later I was simply scrolling Instagram when I saw the big news:

"Fullstack development. Get hired in 6 months. If you are not hired with a 4k monthly salary, you don't pay us anything"

Hohoo boy! That sounded like fun. I went in as the good student I knew how to be. I'd been studying for 27 years at that point and managed to finish among the 3 best students in a class of 40 people. The other 2 had been programming since they were kids; they were only there for the network, but they were enough to keep me from being proud of my position. I could tell I was only at the foot of the long path I'd have to hike.

Luckily, I managed to find a job, and that's all that mattered, in the end.

The people

I've told the story of the first days of this job in an older post, but for today's purpose, there are other things that mattered about it. When I started working there, COVID was just starting. I managed to travel from Bahia to São Paulo and found an apartment close enough to the office that I could make it in about a five-minute walk. There were about a dozen of us who would go to the office every single day, even on weekends, through the next few months. The developers I met there were incredible. I really looked up to them even though I could not, at that time, really measure how good they were.

From 2020 through the end of 2022, they were all my friends and, somehow, my family. I had a whole world to learn about, and they seemed to know everything about this world: how JavaScript works, what a program is, what the fuck Node is for if JS already works in my console, things like databases, Docker, design patterns, React, HTTP, mobile layouts, app store lifecycles... Was the server both the code and the computer running it? Was the client the browser or anything interacting with the server? And why did we call people who only looked at dashboards and cared about infra "programmers"? People don't realize that there is a whole new language we have to learn to speak tech, and all I could do was speak college.

I was incredibly lucky to have those people at that time of my life. Being able to know all of them, to talk to them every day, see their reactions and make them laugh was an enormous gift. But at the same time, I started to feel tired and alone after two years there. They were so goddamn good, and they got better and learned so fast that I felt like I was climbing an impossible hill and felt alone. At the same time, I got interested in living closer to nature too, so I moved back to Bahia, which made me even more isolated from what really mattered in that job for me: the people. I got moved to a new project, with a new team and honestly stopped caring as much about work. I did not stop working, though. I was the top contributor in the GitHub project, and I was among the 7 people who shipped the most code in the company. But I felt like none of it mattered and it probably showed in the quality of my work.

Teaching what I didn't know

Here we bring back the friend from the beginning of this post. Why would she hire me? To teach people something I didn't know?

I had no choice because I had bills to pay. Was it the job I was expecting? No. But it paid the bills. And don't get me wrong: the job was cool as hell. They would pay me 1/3 of what I was getting before, though, and that's not the best career move. The company's idea was really cool: we'd create a kind of school/company that would find web development contracts and use the client payments to fund education, so children in difficult financial situations could earn money while learning through production experience.

It was a really small company, and I had to do a little bit of everything. By the time the company had to shut down, I had a dozen mentees to whom I'd give weekly lessons, and was contributing to 3 projects: one only as a developer, one as product owner and developer, and one as everything except designer. It was really hard to manage time in those days, but I learned how to do it while still leading a few juniors through delivery. For what it's worth, my mentees really loved me and many of them considered me to be a great mentor, which can only mean I was somewhat good at that. All the clients I was managing decided to keep working with me as a freelancer, to finish their projects and maintain what we had already delivered.

But when, in mid-2025, AI-assisted coding started to really bloom, we had to shut down and I was again in the place of grinding LinkedIn. It was a bit different now. I was a junior no longer. I had spent the last two years trying to explain to people just learning how to code how React worked, how to write React with hooks at the same time as I was having to understand what was going wrong when Cloud Run would break due to Docker misconfiguration because someone thought it was a good idea to change the underlying OS in the image for a leaner one, but it did not have one package we needed. And, more importantly, I could run the whole software operation: I knew how to talk to a client from the first interaction to delivery, how to manage a whole product with a team of developers and designers, and I had a lot of experience with infra because there was no one to do infra there except me and the CTO for a company that often had 4 to 6 projects running at all times.

The junior who never gets tired

I was watching the development of AI closely that year. I started to watch a lot of videos (kudos to 3Blue1Brown, Numberphile and the Stanford classes), read The Hundred-Page Machine Learning Book and a few others, took a few courses on Coursera and got really interested in the technology. When I finally understood gradient descent, it made sense to me that it could be slow, but that eventually AIs would be capable. Models learn from being wrong, and code is wrong in very loud, very precise ways.

I tried a little bit of every free AI drug on the market at the time: Windsurf, Warp, opencode, Cursor, web ChatGPT, you name it. Why type out every single .map needed when working in those software houses and building e-commerces, when GitHub Copilot would put it right there, most of the time exactly as I would have written it? Whole features were too much for it back then, but Copilot quickly learned to finish a small function well. It's true, these tools weren't as good with languages other than JavaScript and Python, but those were also the languages the industry was using. Over a few months, I managed to build small projects with AI, even though it sometimes took me longer than coding them myself would have.

Google needed to train its models, so it gave away a lot of free usage of Gemini, and I really grinded trying to make it write minimally good code. I grinded hard, late into the night, trying to understand how to make the problem clearer to the model, how to reduce the scope to avoid context compaction and how to split the work into slices in order to allow the model to pick the smaller battles it could win. This interaction, though, of having to manage a "newer developer" through a difficult problem was home for me. That's what I'd been doing for the past two years of a job I didn't even think was good at the time. Pretty early I started to understand the impact of the context window, as I could see Gemini losing its mind over a detail I had flagged with asterisks and an IMPORTANT!, but which got lost in compaction. Context compaction seemed like the evil in all corners of coding with AI for some time, and managing it carefully had a visible impact on the results. At that time I started to use what we call today "skills", which meant a bunch of .md files saved in my Obsidian vault that I'd copy and paste into the terminal to remind the model to think step-by-step, to be skeptical about its own early assumptions (it was one of the more common sources of problems too), and I learned the value of looping over a coding problem relentlessly, exploiting the simple fact that the model couldn't feel fatigue.

Your first message: IMPORTANT, never touch the payments module. Now keep the conversation going.context window4k / 128kEvery message takes room. 124k left.

In a way, Gemini CLI worked for me like the old car you learn to drive in.

Shipping ugly code

Once I found a job, it started to become easier. I remember that people really thought it was a great idea to transform the whole codebase into a vector database the model could search through. At that time, it helped a bit since the models were really dumb. But it started to show its weaknesses pretty early too, as the models would get stuck or do really stupid things because they read one part of the code that the search returned, but missed others because even though they were related, they were not close to each other.

If you were watching closely, you could see the gap closing between the code of the model and that of a junior. At the time, using nothing but Cursor, I designed and built the whole infra and code for an AI voice agent on ElevenLabs that the company still uses today. There were several bad parts of the code in the small service I built for it, and I knew them, but I was able to build it in one week, with no prior experience with WebRTC. It really didn't matter if part of the code was ugly because I could grind Cursor to make it better later, and it could go to production right away and solve real problems. And it did.

I watched and reviewed many PRs from my team, and I could clearly see the problems AI caused. I saw agents go rogue while trying to solve merge conflicts, deleting a lot of working code and breaking our app in production, in deployment, in CI and everywhere else apps can break. And I watched the problems evolve: from "AI wrote a bad useEffect", to "AI couldn't understand how state was managed and created a second source of truth", to "AI rewrote the whole state management for a small part of the product, and it was actually better than what we had before."

The same cart, written by AI over the years. Add a few items.

const [items, setItems] = useState([])

useEffect(() => {
  setItems(items.map(withPrice))
}, [items])
Header$0Cart$0Renders1Press Add item.

But here's my point: it was no different from what I was doing before. Any programmer knows that sometimes the ugly code is the one that solves the problem. You do not have to love it, you do not have to be OK with it, but if it solves the problem and you want the problem solved, use it. Then, improve it. Deadlines impose restrictions, and it was also my job to know when to cut code quality in order to ship a solution. We have been doing it since the dawn of time, and not only in programming. We stop the bleeding first; only once the damage is contained do we think about how to prevent it.

The craft

It is still common, to this day, to hear people discredit this way of "programming," or call it the death of the craft. Maybe it is. Honestly, I'm not interested in fighting over naming. If "programming" means manufacturing software by hand, by all means, keep the word. There will always be a place for those who value it, and a market for it too. I'm happy to pay far more to never drink cheap coffee—to pay for craftsmanship that is hard to find: beans selected manually, dried properly, roasted at the right temperature just days before hitting my grinder, all the same color and size, smelling fresh. I love great coffee. Still, 90% of people will drink cheap coffee from a cheap coffeemaker, tasting like burned dust, drowning it in sugar to save the flavor. That is just a fact.

For a long time, I thought my only path was to become one of those artisans—and when I got fired from my first job, I was terrified I simply didn't have it in me. What I eventually realized, after years of mentoring juniors and shipping software under real-world constraints, is that the point was never the syntax. Back when I was nine years old, sitting in my mother's favorite bookstore staring at magazines full of symbols I couldn't decode, I wasn't falling in love with typing code. I was falling in love with making things.

Building with AI feels like coming full circle. It brings together the curiosity of that kid, the pragmatism of an engineer who knows when to ship ugly code to stop the bleeding, and the patience of a mentor guiding a junior who never gets tired. I don't see it as the end of anything—though I completely understand why so many people are afraid of it. That fear, however, touches on something much older and deeper than software. And that's a story for the next post.