Pinned Tweet
I can't express with enough words how happy I'm to join the amazing group of @Java_Champions!
I need to say thank you to the global @java community for being so good to me since the day one.
Thank you also to my fellows from @soujava: it wouldn't be possible without you!
#java
Congratulations to new Java Champion @elderjava! apex.oracle.com/pls/apex/ace…
One of the biggest open source projects in the world ran an experiment with local AI models that made me rethink what I thought about them.
The project is Apache Camel. If you don't know it, it's probably the biggest open source integration project in the world, and one of the biggest open source projects overall.
They said:
- "We're not satisfied with benchmarks, we want a more real-life test of our platform with different models."
They used Claude Code and a local Qwen model, around 35B. Claude would be tested too, but it also orchestrated the test runs with Qwen.
The test base was 13 simple examples from Camel itself, on Camel's GitHub. Each model had to build them from the user's prompt. Claude had access to every tool, the catalog, the examples. The local model started with no tools at all, and they gradually unlocked tools and access to see how it progressed.
First round: catastrophic. The local model with no tools got none right. Claude got all of them right away.
Then they gave it some tools. Then a round of feedback from the validator running on Claude. Then four rounds of feedback. Then Camel's own MCP for the catalog. Best result: 7 of 13.
They could have said:
- "Local models are bad."
Instead they looked at what was failing. The local model was getting lost in Camel's error messages.
The messages said "this didn't work." They changed them to say how it should be. One example: a Camel structure needs two items separated by a colon, and the model had used a period. Instead of "couldn't find X," the message now says "this must be a colon."
Doing that, in one of the runs the local model got all the examples right.
The part I found most interesting: for 20 years they built Camel for people. People were dealing with those bad messages all along, but a human, like a frontier model, thinks, searches, figures it out, and often doesn't even open an issue. The small model, with less capacity and less patience, shows you right away what's wrong. Fix it and it works.
They say it completely changes how they build Camel, because now there's another user besides the dev: the AI agent.
8
4
478
I have been using T3 code for about two months and… boy, I love it!
Being able to mix different providers is something underrated. I've been using it more than I expected.
Really great product. Thanks, @theo and team.
1
3
309
If you think you're getting dumber because of AI, maybe you're right. That's not an insult, it's part of an MIT study.
They found a tendency toward cognitive reduction from excessive AI use. In the study, a preprint with 54 people, one group used ChatGPT for four months to write the texts they needed, compared as usual to a control group without the tool.
After four months, two things.
First, weaker brain connectivity, measured by EEG, while they wrote. Bizarre and worrying, especially in such a short period.
Second, a loss of the sense of authorship. They handed people texts they'd written with GPT, and people couldn't say whether the text was theirs. Probably they just took the text, copied and published.
AI made some tasks so easy that we're not delegating anymore, we're dumping. We tell it:
- "Write it. Decide it. I don't even want to think about it, you do your thing and I'll do mine."
According to the study, that starts to wreck your cognitive system.
For software engineers, in a profession with tasks that demand a lot from our cognitive system, giving up your ability to think is the worst shot in the foot you can take.
Use agents to help you. But decisions still have to come from you. Responsibility too. Your ability to see something the user hasn't seen, the product manager hasn't seen, and maybe the AI hasn't seen either, has to be preserved.
If in four months those people's brains were already less engaged, imagine two years, five, ten. We'll be a bunch of idiots because we put the robots to do everything in our place.
If you think that's fine because robots will take over anyway, it may happen. Personally, I'd rather count on a world where we humans are still human and responsible for our decisions and what we do.
1
236
People ask me:
- "Elder, how do I know I'm ready for the next level? If I'm mid-level, can I go to senior? If I'm senior, can I go to principal?"
Recently I watched a podcast with Elizabeth Stone, Chief Product and Technology Officer at Netflix, who still hires technical software engineers. She shared something she evaluates in interviews.
A feature lands on your desk. Don't just think:
- "I'll build this feature."
Ask yourself:
- "Does this really stay in my scope, or should I think about it at the platform level?"
Look at the problem you got and where it sits inside a bigger problem.
She calls that part of systems thinking. And she doesn't tie it directly to seniority, but to how wide your view of the project and the process is.
She also gives a warning. To do this you need to zoom out, step back from the problem to see the whole. Just don't zoom out so far that you lose the problem and the view gets so big it paralyzes you.
Where I'd apply this: in the project I'm on now, with the demands coming in. And if I'm eyeing another job, thinking about scenarios that could come up in an interview.
The interviewer says:
- "I have this problem, how would you solve it?"
Zoom out and ask:
- "OK, what's it related to? What scope is it tied to? What does it interfere with, what does it get in the way of, what does it help?"
Then decide: this stays in my scope, this goes to platform, this belongs to an even bigger scope, like the technology we use.
I keep insisting on this even in times of AI. Throw that question at an AI and it'll make a decision no matter what. It always tries to give you an answer, without necessarily exploring every possibility first. That critical, systems thinking is still on you and me.
211
If you think your code and its quality don't matter anymore because of AI, I'd invite you to rethink that.
It's true for two kinds of projects. Personal projects only you use. I have dozens where I literally don't know what language the AI used. It works, it's only mine, only on my machine, not even on the internet. And small things that some people use, but so simple that the code doesn't need much attention.
When does your code start to matter, even with an agent writing it? When it gets big, with a lot of users and a lot of security demands. Because even the AI agent gets lost in the mess.
A while back I migrated all my sites. They were on a cloud in England I'd used since 2017, 2018, and I'd been too lazy to migrate. I started exchanging messages with Claude and decided to do it. In about a working week everything was migrated, things I'd never have bothered to do.
Then some time later I went to change something and saw that for two of the sites it had made a decision midway and created two separate Vercel projects for each. Four projects for two sites. When I asked why, it pointed to an ambiguity in something I'd said and had decided based on that. Nothing serious, we reverted it, one project per site now.
But it was already a big project. The whole migration took 1.4 billion tokens. My estimate: about 13 thousand dollars in API cost without cache, around 2 to 2.5 thousand with cache. I did it all on my Claude subscription.
When things get big, details matter. That class in a weird package, that badly structured package, that domain structure you don't care about because the agent will maintain it.
The agent is like your colleague from before, when you documented your project badly, they did something wrong and you thought they didn't know what they were doing.
As Kathy Sierra and Bert Bates wrote in their study guide for the Java 6 certification: write your code as if the person who maintains it is a homicidal maniac who knows where you live.
One of the most important topics in the Java world in recent years, curiously, has nothing to do with AI. It's about Java's thread execution model. Virtual threads, final since Java 21 in 2023, after some previews, with a couple of updates since.
First, threads in Java. Traditionally, since Java was released, Java threads are wrappers of operating system threads. When you write a Thread.sleep in your code, without any big pretensions, you're going down to the OS and asking for a thread, and that OS thread is allocated to your glorious Thread.sleep.
Fine, but there are implications. Operating systems were built to provide threads to all sorts of languages and platforms. Because of that, the architectural decision was to level resources from the bottom: whoever can do the least sets the baseline for everyone. So over the years the Java platform could have used threads much better than it did, but the OS didn't provide what it needed.
Another problem: OS threads are expensive, and switching between them is expensive. You had underutilization. It was common to have a server with free memory and free CPU that had already hit the thread limit. To get more threads, you bought more hardware for a server that already had hardware to spare.
One way around that was reactive programming. No blocking threads, or at least you could work around blocking, so you could run more tasks than threads. But if you've written reactive code, you know it's a different API, a different style, not intuitive. And in Java all the tooling is built on threads. Stack traces, observability, all of it.
So virtual threads were born. Instead of one OS thread per Java thread, there's a carrier thread, and on top of it you can put potentially millions of virtual threads. Your virtual thread is mounted on the carrier, and the carrier talks to the OS.
That makes threads much lighter on CPU and memory, much faster because switching happens inside the JVM, and you get features you couldn't have with OS thread limits.
It's available since Java 21. Worth checking if there's something in your project that can migrate.
AI doing things for you is fantastic. AI doing things as you is terrible. Terrible for you.
My great friend Bruno Souza, the Java Man, called this cognitive surrender in a talk at an event. Literally surrendering your cognition to AI. If you want it to do everything in your place, maybe today it doesn't do 100%, but it already does a lot, and some day maybe it will.
But you still exist. You still have to make decisions in your life and you're still responsible for them, even if what you're doing is the AI doing it as you.
Take OpenJDK, which is a hot topic now because they won't accept AI-made contributions. Their announcement says you can use AI to study the code, explore solutions, help with the briefing. But writing the code, committing it, opening the pull request, commenting on it, has to be you.
I heard someone say the other day:
- "How will they know it was AI?"
If you can't glance at a pull request, a commit or code and at least suspect it was AI, either you don't use AI much or you don't write much code. It's obvious. AI writes unnecessary code, big code, names variables and methods a specific way, and its commit messages and pull requests are absurdly verbose. That's why their announcement says, in short:
- "Provisionally, we won't accept it."
Maybe that changes.
You can use it for all that support, but you're still in command, still responsible, still the owner of your cognitive system. Don't outsource at that level. Don't give up thinking, deciding, ownership.
Use it to take the bureaucracy off you, what Professor Isidro calls the grunt work, the boring stuff nobody enjoys. And do what you were born to do: your creativity, your intelligence, your problem solving.
Maybe you're thinking:
- "But I'm not that good at those things."
You are the way you are. Use AI to help you be that.
An AI agent's tool call can run twice: the call times out, the runtime retries, and the change may already have happened. The idempotency key that Java backends already use works here too.
eldermoraes.com/agent-tool-c…
A while back at TDC São Paulo something occurred to me.
My first time at TDC was as an attendee, in 2015, on the mobile track. I was a mobile app developer. In 2016 I came back and gave my first talk. In mid 2017 I became a track coordinator, and did that for a few years. In 2017, 2018 I was at Oracle, and besides coordinating and speaking, I started working on the sponsor side, since Oracle sponsored TDC. Some years later I joined the technical committee, which defines the tracks and the coordinators.
I've done every role possible at TDC except volunteer, the people in blue shirts helping everywhere.
That gave me a very broad view of how an event works, and especially how you get results from what you want out of it.
A lot of people say:
- "I don't go to events anymore. It doesn't give me results, it's expensive, I lose a lot of time, nothing happens."
Probably you didn't set a clear goal for what you want to do and get at the event. If you go and spend the whole day watching talks, which is what people usually do, you really won't get anything.
Plan for it. I may watch talks, but I'll note beforehand which ones. And I don't want to spend the whole day in talks, because I want to talk to people. Which people? I decide before.
That day, for example, I had a podcast to record with Edson Yanaga. The event is always generous with me and gives me space to record. I'd found out a few days earlier that Edson would be in Brazil, asked which days, we set a time. That became part of my plan for the event.
I always try to find a moment with Júlio Matos, Yara Mascarenhas, Bruno Souza.
Someone might say:
- "But Bruno's your friend, he's on your WhatsApp."
Sure, but only a few times a year do I see him in person.
Go with a short list of things you want to do there. If it's too long you won't do it. If you get through most of a short one, you'll leave feeling it was worth it.
In software security, three vectors have always mattered for insider threats, the ones from inside the company: access, judgment and speed.
Access is how much a person can reach. Judgment is how much they understand that what they're accessing is critical, valuable, has impact. Speed is how fast they can exploit that access given that judgment.
An AI agent has all three, as long as you give it access.
Imagine an agent with a full-access key to your API. It's like an employee who has your bank password and no notion of risk or value judgment. Imagine the damage.
A lot of people are doing exactly that. You give the agent your API key because it needs to do a job, and off it goes:
- "God bless, go access my stuff."
And in most cases I see, nothing is holding that agent back.
What are people relying on for security? A while back I heard a great line:
- "Just ask nicely and the AI does it right."
Trust that asking something non-deterministic nicely means it'll do it right? It won't.
You need deterministic mechanisms. Something that works no matter what happens. That API key is read-only. Or read-only and can't delete, if that's the biggest risk. Or the tools the agent can access are limited, and that's in a config file, not in the prompt.
Get this in your head: what you put in the prompt is a guide. A suggestion. Models are getting better at doing what you wrote, but they can interpret it differently from what you meant. You know when you tell someone one thing and they understand and do another? An AI agent is worse, because it can do more damage faster than all of us together.
So put in hard security gates that block and prevent. Do security with AI the way you would by not handing your bank password to someone you may not trust.
If your company started measuring how many AI tokens you spend, sorry to say it, but you're measuring absolutely nothing.
Earlier in 2026 there was the token maxing fad. Companies handing AI to everyone, plans, subscriptions, tokens, APIs, and people were charged for usage. In both of my mentorship groups I heard the same thing:
- "How do we use more AI? There's a KPI for AI usage."
A mess.
Now most have realized it doesn't work like that. But they're going to the other extreme:
- "Let's limit it, it's too expensive and there's no return."
Both extremes have the same problem: measuring by token usage.
Token usage measures nothing except what you pay at the end of the month. Some of you are thinking:
- "Obviously, idiot."
Stay with me.
What you should measure is: for each dollar spent on AI, how many dollars you're making from it. No matter how many tokens were in that 1, 10 or 1,000 dollars. Token usage varies wildly. I said here the other day I spent a billion and a half tokens on a project. Cool, but it means nothing.
An older example, from a talk on metrics I gave years ago. You need a steady state metric, the state where everything is normal. At Netflix it's streams per second, SPS. They don't want more or less, they have their curve. Inside it, the user experience is fine.
Say Netflix uses AI on something that affects SPS, and more SPS attracts more sponsorship. They spend 100 thousand dollars on AI and get 500 thousand more in sponsorship in that window. Return on investment. Do the tokens matter? Could be a trillion.
A while back I saw an innovation leader at a company here in Brazil say exactly this. They put a value on each task. If AI spent more than it returned, they change the approach, not just "use fewer tokens." Sometimes the task is wrong.
As a developer on a subscription, you already do this. You watch your usage window. I doubt you count tokens. If the window's fine, everything's fine.
223
Elder Moraes retweeted
Humans are simply bad at programming.
Most human-written PRs are incomplete or simply move the bug somewhere else; the human misses a case, or fixes one inconsistency by creating an inconsistency somewhere else.
That's why every human-written change should be reviewed by AI.
Using AI to write code, text, content isn't enough anymore. Some people want to use AI to study, guess what? The Moon.
A while back IBM and NASA released an open source model to help study the Moon. They took the lunar missions of the last decades, all that material, and trained a specific model on it.
Then you ask:
- "But, Elder, why on earth would anyone use AI to study the Moon?"
They say understanding the Moon better supports plans for a lunar base, to help resupply missions to Mars. So the goal isn't even the Moon. It's Mars.
The paper says the model is up to 22% more accurate than traditional methods at studying the lunar surface.
Some things they want to use it for:
- The potential presence of ice deposits. If they're really there, there may be water and oxygen, which helps with a base.
- Studying the Moon's volcanic history, for better knowledge of the surface, since one side never faces Earth and is hard to study.
- Crater detection.
And it's open source. I went looking and it's already on Hugging Face. In the community tab there was a post: demo for this model on Spaces. Someone from Hugging Face built a demo with the model and even offered it to the team. It generates new image predictions of the lunar surface.
AI doesn't live on code, content and internet fights alone.
1
249
Maybe you only need 15 minutes to get a quality of answer from AI that saves you days, maybe weeks or months of work.
We're so hooked on how fast AI does things that we just open a terminal, write something quick and go. Sometimes it works, sometimes not so much. That variation is the probabilistic nature: the AI answers within the vector space your question landed in. Models have gotten much better, but that shallow first prompt rarely leads you somewhere good right away.
Two things you can do with those 15 minutes.
First: stop for 15 minutes, think about what you want, and write it. Open a doc, a notepad, anything. I need this, I need that, make a list, bullets, don't forget this. Whatever you write in 15 minutes is already far better than throwing a prompt and going.
Second, what I've been doing and really liking: use my voice. A few months ago I started using Wispr Flow. It transcribes as you talk. At first I used it with no editing. Then I found that in the formal mode it fixes transcription errors and structures things. When I list things, it turns them into lists.
In the morning I look at the day's tasks. When one needs an agent, I open Wispr Flow and start talking:
- "I need you to do this, this and that, because I need this. The context is this. In this folder there's a project where I did X, in another one I did Y. You can access my second brain. I'm logged into the browser, you can use it."
I built a skill so all my projects can reach my second brain. It's one of my main sources of context today.
As I talk, it gets clearer to me, and I add more details. Then I send that prompt. It won't one-shot the task, but the context, the idea and what I want are much better elaborated. With a good agent, a good harness and a good model, it gets really good.
1
248
You know who uses AI the most on the planet, by far? Us. Software engineers, programmers, developers, call it what you want.
That's not me, it's The Economist. And they give an interesting reason: our work is testable. I think few professions, if any, have work as testable, verifiable and validatable as a software engineer's.
They cite a SemiAnalysis estimate that more than half of the revenue of both Anthropic and OpenAI comes from code generation. And four factors explain it:
- Public training data is heavy on code.
- The output is verifiable, which helps training.
- The context is purely digital. Our work is entirely digital.
- Adoption is bottom-up. It starts with the developer and only later reaches the top. Some people even lost AI access because of that.
There's something else I didn't find in the article, that for me goes a bit further. Less technical users often don't look at this, but if you've ever been curious, when you ask AI for something more complex, to look at what it's doing to answer you, most of the time it writes code. Some program, however small. You ask for a report and it writes a Python script that generates it.
LLMs were born as communication models. Large language models. At some point they realized the model, to communicate, writes code. Builds software. So at least those two big companies started investing heavily in it: if the model does its best work by writing code, let's train it to write code better and more of it.
That's why the revolution hit software engineering first. There's much more to software engineering than writing code, but everything revolves around code, so naturally the usage curve came to us.
Maybe I'm being naive. But for me it's one more reason software engineering won't end, and demand for professionals will grow, as it already has. Not necessarily writing code, because engineering goes way beyond that.
If I were you, I'd prepare for a much bigger demand for software engineers and for your work in the coming years.
At TDC São Paulo 2026, the year TDC turned 20, I was also celebrating 10 years since my first talk at TDC. It was TDC São Paulo too, in 2016.
A year before that first talk, I'd come to TDC São Paulo as an attendee. I was on the mobile track, not Java or architecture, because back then I was working a lot on mobile apps. It was great, lots of good talks. And something happened.
At one point, and I remember the click like it was today, I thought:
- "I think I could give a talk."
It had never crossed my mind. But after watching people give good talks all day, I thought:
- "I think I can do this."
A little over a year later, I was at TDC giving my first talk. And that completely changed my career, and my life.
Why tell you this? Sometimes we have impressions, ideas, and we ignore them. We think it's just in our head. I could have said:
- "Give a talk? Who am I to give a talk?"
That whole series of self-judgments.
Maybe you've had ideas like that. Not only talks.
- "I think I could apply for that job."
- "I think I could try to start that business."
- "I think I could learn that technology."
- "I think I could learn to do something I don't know how to do."
That was my case. I didn't know how to give talks. I've improved a lot since. But giving myself the chance to try something that had only crossed my mind changed the course of my career. I was invited to a second, a third, started submitting to events, and got hired to do it. Since 2017, my first job at Oracle, until today, talks became 60, 70, 80% of my work.
I had no idea what would happen over the next 10 years.
So if you have an idea, an impression, something you think you could do, give yourself the chance to try.
3
232
40% of AI agent projects will be canceled by 2027. That's not me, it's Gartner. And the reason has a name: agent washing.
They did a survey and found that a lot of what people called agent projects were chatbot projects, RPA, or assistants, even if built on LLMs, purely assistants.
What was missing for them to count as agents? Being able to take some kind of action autonomously. A chatbot doesn't. An RPA doesn't. Autonomy doesn't mean doing things left and right, but some level of autonomy. Without it, it's not an agent. And plenty of people are selling agent projects without building agents.
There's another number, from an MIT report published in 2025: only 5% of AI tools built inside companies reach production. Even worse. 95% of AI projects never get there. The same report talks about 30 to 40 billion dollars invested in generative AI, with 95% of companies getting zero return.
I want to look at that 5%. While 95% goes down the drain, there's demand that is reaching production, generating value, built for results, built looking at the client, the company, the project.
If you really want to work with AI, where you are or at another company, you need to aim at those companies, those projects, those cases that actually reach production.
A software developer exists to solve problems. That's our career. And we only solve problems if what we build goes to production. What only runs on your machine maybe solves your own problem. Is someone paying you to solve that? If yes, great. Most of the time, what's only on our machine helps nobody else.
So aim for the 5%: what goes to production, solves someone's problem, makes someone more productive, gives someone a less miserable day. Your next project or your next company may be in there.
The AI conversation went from "AI will take our jobs, AI will replace me" to "AI will kill me. AI will kill everyone, humanity will go extinct because of AI."
And many people ask:
- "What do I do if AI replaces me? What do I do if AI kills me?"
Whatever I think about either case, something I kept thinking about is that part of this urge for an answer in extreme cases is that we always want someone to give us the answer. And that's fine. We look for answers in others.
In these extreme cases the doubt comes from very divergent opinions from very relevant people, sometimes relevant in different areas, which may be why the opinions differ. One says AI won't do anything, the other says AI will kill everyone. One says everyone will work with AI, the other says nobody will work anymore. Relevant people on both sides, and we're left in doubt.
My point: we're adults. I assume you are. We need to be able to make our own decisions and take our own positions. Even if your decision is to follow someone else's. That's fine.
But you can't depend on someone on the internet telling you what to do, what's right and wrong. You need to make that judgment as an adult, because in the end, even if you follow someone's judgment, the consequences fall on you.
You can try to blame someone. Say AI took everyone's job:
- "I should've done it differently, but I followed what so-and-so told me."
OK, but you followed it. So-and-so just gave an opinion, with good intentions or not.
I keep telling software engineers that even if AI writes your code, you're responsible for it. In everything in this story, the responsibility is mine and yours.
So listen to whoever you need to, study what you need to, embrace whatever conspiracy theories you want, and in the end own the decision.
1
247
AI made our work as developers much easier. Faster code, faster troubleshooting, faster debugging, faster exploring a new codebase.
But it created a kind of problem we didn't have, at least not at this scale: silent errors.
When you compile an application and there's a compilation error, it's in your face. No doubt. You run a build and it breaks. No doubt either.
When an LLM gets it wrong, most of the time it doesn't throw an error in your face. It hallucinates.
A colleague of mine wrote in a post that he was working with an LLM and it invented a Quarkus extension that doesn't exist. It thought it was reasonable. Plausible. That's the plausibility principle.
When the hallucination comes in a direct answer, you glance at it and notice. You deal with it. The problem is when it happens at the reasoning level and never reaches you directly.
One context engineering concept for this is context poisoning. A hallucination becomes part of the context and the agent starts deciding based on it. A close cousin is when it takes a wrong direction because of a hallucination and keeps going that way.
The answer: pay attention to your agent's context. People kind of stopped talking about context engineering after a hype earlier in 2026. The term came up around mid 2025, and it took off with personal agents like OpenClaw, Hermes, now Grok Bot. The better the context, the better they work and the less they get wrong.
That's true for your code too. A lot of people think:
- "The agent writes the code now, I don't need to care about clean code, project organization, the domain."
It's the opposite. If your code is a mess, it's a mess for the agent. It may take longer than you to get lost, but it will.
So do what a compiler does: put restrictions in place so that when something goes wrong, it stops and tells you.



