Elder Moraes (@elderjava) header
Elder Moraes (@elderjava) profile picture

Helping @java developers to build software using AI. @Java_Champions. Published author. Board member @soujava. Prev @Oracle | @RedHat. Now @IBM.

At some JVM out there
Joined March 2016
Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)Photo by Elder Moraes (@elderjava)
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
18
10
4
156
Elder Moraes retweeted
Frankly, I don't get the rage about voluntary departure programs, whether at @Microsoft or @JetBrains. We all know most of our industry has overhired in the last decade. If people don't do anything meaningful and prefer to leave, and the company pays them well to leave, how is it a bad thing? What would the critics prefer? Flat layoffs across the org?
4
2
39
4,531
An AI found a security issue that had already been fixed back in February. Nobody had shipped the patch. Some OpenAI agents were in security training. While trying to escape the environment they were in, they found a vulnerability in Google's Brotli, which a ton of projects on the internet use. The agents wrote the patch and made the commit. That commit never went live. Later, in another AI test, someone found the same flaw and saw the fix was already sitting there. Someone just had to put it in production. It was rated 9.2 out of 10, a serious one, because it allowed remote code execution through compressed data. What a crazy world. In AI training it's common to put agents inside an environment and give them a challenge that makes them try to get out, or they try to get out for some other reason. They find the flaw, exploit it, fix it, nobody notices it was fixed, and the flaw is still out there. It's resolved now. But around then it was a very intense stretch in cybersecurity, lots of exploits discovered and already being exploited, people desperate. So we need to change how we look at our applications and at security. How we test, how we automate our tests to get more and more coverage, security included, code review. This is completely changing the way we develop software.
4
5
356
Adding people to a late project makes it later. If I add more agents instead, does the law still hold? Fred Brooks wrote it in 1975 in The Mythical Man-Month. Plenty of people back then probably had it tattooed: adding manpower to a late software project makes it later. His reasons. First, ramp-up time for a new person. You have to teach them, stop someone to teach, often more than one person. Learning time varies, some learn faster, some slower. In a project that's already late, guess what, that slows it down more. Second, you multiply communication channels. You and me talking is one thing. Us and 10 more people is another. Us and 50 more, another. If two people already play broken telephone, imagine many more. And the line I heard as a junior that explained software engineering to me back then: nine women can't make a baby in one month. One woman makes a baby in nine months, but nine women don't make one in a month. Does it hold for AI agents? If I keep shoving agents into my project, will I deliver faster? I'd say up to a certain point, maybe. After that it probably stagnates, and beyond that it probably starts to drop. Why? Context grows absurdly. You get a clash of contexts, with agents' communication and information colliding. Context poisoning gets much easier, slop, drift. All the problems we have with agents multiply when you have many more of them. So you can use more agents, but it's not back-of-the-envelope math where you shove more in and everything's fine. Same with people. We don't just keep shoving people into a project and expect it to work.
2
220
External dependencies usually save you work, but often they give you more work. And sometimes you end up choosing, or having to choose, to build something that replaces them. A personal case. When I was still at Red Hat, we had workshop demos built around Star Wars that used a public Star Wars API. That API went down. Who knows why. We found another public API, pointed to it, had to refactor our project. That one went down too. We moved to a third. Guess what. It went down. When the third one died, I said: - "Man, I'm making an API." I didn't refactor for another API. I bought a domain and put my own API up. I spent about two days on it. That was around a year and a half ago, I wasn't doing much with AI yet, so I wrote it by hand. It was a chance to build it with everything I wanted from Quarkus, Java virtual threads, native compilation with GraalVM. I built it exactly the way I wanted and said: - "This API will never go down." And I made sure it never does. It's swapi.build if you want to look. We refactored the demo and I told my team: - "Relax, this thing will never go down again." What AI did was let me add more things. Today it has a really nice frontend, MCP, WebMCP, and recently statistics pages. When I have a little time, I work on it. I use lots of external tools, services and libraries. But when one starts becoming more problem than solution, building your own can be not just viable but necessary. And with AI it's often much easier, more accessible, sometimes more logical. In the past you might not build that tool or API because it was too much work, too much hassle. I remember getting native compilation with GraalVM working wasn't simple at all. It had to run inside a container, there was a whole thing with images. Today that comes out much more easily.
1
2
259
The systems you put in production look like your company's org chart. Conway said that in 1967, in what became the famous Conway's law. What he published: organizations that design systems are bound to produce software that replicates their communication structure. In the microservices era people talked about it a lot. If your organization is in silos, you'll end up shipping more monolithic software. If your teams are multidisciplinary, each team with people of different skills, you'll more naturally build microservices. Now, in the agent era, it still holds. The way you and I communicate is reflected in the software we build. The way agents communicate is reflected in the software they build. And yes, agents communicate. Put a team of agents to ship software with a role for each, and you'll see them exchanging messages and context. So when you set up the agents that will open your pull request, solve your issue, run an audit, whatever it is, define not only each one's role but how each one communicates. One does research, one tests, one runs CI. Set it up so the output stays as close as possible to how it would be done in your organization. In the end, what changed with AI building software is the abstraction layer. We had layer after layer through history: punch cards, compilers, frameworks, IDEs. There was always a developer using higher and higher levels of abstraction. Now there's an abstraction layer for the developer themselves. They may not write the code anymore and let an agent write it. But communication, between us or between agents, is still extremely important to how we deliver software.
2
4
397
quarkus update can take a 3.x app to Quarkus 4 and leave it compiling. In the app I built, Jackson 3 defaults only showed up when the tests ran. I cover what the command handles, what it leaves to you, and where the coding agent helps. eldermoraes.com/migrating-to…
1
1
16
871
A while back I hit 100 videos published in 47 days, something I definitely couldn't have done before AI. We talk a lot about AI and productivity, so I decided to test it on my own skin, in a challenge: publish 365 videos in less than 365 days. If all goes well, by December 31, 2026. Why couldn't I do it without AI? There's a lot involved. An idea, at least a rough outline, captions on the video, a cover, the text that goes below, publishing, scheduling. I'm using AI for all of it. The idea. I created a project for the challenge with an idea bank, always being fed, around 150 ideas. When I'm going to record, I ask for the next idea. It comes with what the video is about, where the idea came from, since I have a second brain I keep feeding, and roughly what I'll say. If the topic doesn't click at that moment, next, next, until one does. In an hour I record 5, 6, 7 videos, depending on inspiration. Then I drop all the videos into the same project and ask it to edit. It connects to my ElevenLabs API, transcribes everything, and that becomes the captions. The transcript also drives the edits. In some videos you heard me say: - "Editor, put the screenshot here." I send the screenshot too, and it uses that. Simple edits, but ones I'd have to do myself, pay someone for, or learn a tool for. Covers and thumbnails: it has my fonts and my parameters. Eye-catching, clickbait in quotes, but clickbait that actually delivers what's in the video. Scheduling: I set a daily posting window and a minimum gap between videos. If I recorded more than fits in a day, it rolls to the next and fills the windows, through a tool called Social IT that connects to all my accounts, each network with its own way of doing it. And I created a skill so every week it tells me how that week performed, and based on that and previous weeks it helps me polish the next week's posts, ideas and approaches. Take what you really need or want to do, and use AI to gain speed and output in that. That's where it actually accelerates you.
1
1
246
The last time Hibernate had < 520 open bug reports was March 8, 2007, almost twenty years ago. This is like an impossible dream come true.
5
10
1
117
8,577
In late October 2026 the cybersecurity world was agitated, and it reached Java too. On October 21st Oracle issued a security alert rated 9.1 out of 10. The problem was in a certificate list. The fix was to stop trusting a certificate authority called eMudhra. Java's JSSE components, its TLS, could be exploited over the network without login and without user interaction. A big impact on confidentiality and integrity. Affected: Java 8, 11, 17, 21, 25, 27, and GraalVM for JDK 17 and 21. A whole lot of fun. The lesson: your TLS chain of trust is also a dependency of your project. Sometimes we just leave it there: - "There's a certificate authority, they've been around forever, we trust them." You shouldn't always trust them. The step is basically: update your JDK. Check the list of versions, see if yours is there, the security patch is already published. And think about how long your company, your project, your team takes to react to something like this. With AI, zero-day vulnerabilities will get more and more common. I find the vulnerability and can already exploit it. For a long time vulnerabilities took a while to be exploited, because finding a way to exploit them took time. Not anymore. So keep an eye out whenever these security alerts come out, and update your Java version.
1
4
838
A simple folder with a Markdown file became a Linux Foundation standard in 2026. I'm talking about skills. That little SKILL.md file we use to teach agents to follow repetitive instructions, trying to get them to follow a pattern of behavior. We know they don't always follow it exactly, but that's the idea. Skills were created by Anthropic and donated to the Agentic AI Foundation, which is affiliated with the Linux Foundation. Fun fact: Anthropic also created MCP and donated it there too. So what is a skill, in the end? A folder, literally, with that SKILL.md file where you write what you want an agent to do. It was born in Claude in October 2025, so about a year ago, and became a market standard. Every agent platform uses skills now. ChatGPT, Cursor, GitHub Copilot, VS Code. Estimates say there are around a million published skills and almost 280 million installs, probably more, since it's hard to measure. What's interesting is watching the market adjust around things you'd have dismissed a while ago. Who would have thought two years ago that a Markdown file could become a standard of the biggest open source foundation on the planet? I created a skill called Elder Voice, made to write as if it were me. Whenever I write any kind of text with AI, I use it, because I have rules, patterns, quirks of my language, values, a lot of things I put in there. As a developer it's not much of a challenge, but for me it matters. And I use market skills too. I really like Matt Pocock's. I used Superpowers a lot, then stopped.
5
340
Thoughts to my friends at @jetbrains. If there's anything I can do for any of you, my DM is open. Our industry has already transformed in ways no one would predict. And I'm pretty sure that if any company will break through to the other side, it's JetBrains. blog.jetbrains.com/blog/2026…
3
4
36
2,540
Do you feel like everyone, or almost everyone around you, is using AI? If so, and I do, congratulations, we're in the same bubble. A small one. A while back I read a post by Andrej Karpathy with some back-of-the-envelope numbers. About 6 billion people, roughly 75% of the world, have never had any contact with AI, or only very superficial contact. Another group of 1 to 2 billion, around 20%, are casual users of free products. Your aunt on ChatGPT's free plan, your cousin on Claude's free plan, chat only. Then our little group, the one that feels everyone uses AI: about 20 million people. Sounds like a lot, but it's roughly the population of Greater São Paulo, about 0.2% of the world. People using frontier models for basically math and code work. And a smaller group still, about 5 thousand people, professionals working with frontier models inside the AI labs. What I want you to think about. First, if you feel you're behind and need to learn, yes, you need to learn, especially if you're a dev, because our work really changed. But calm down. There are 6 billion people who know nothing of what you know about this. Second, all those people who are on free plans or don't even know it exists show how much this market can and still needs to grow. "It'll end everyone's job" isn't even close. People keep living their lives without knowing what's happening. Third, there's a lot of opportunity. Using AI to build products that solve problems for all those people, or teaching them to improve their work with AI. When a market has a lot of growth ahead and very little adoption, there's opportunity, and you can find yours by using the skills you already have to help people solve problems with it.
1
299
There's a chess champion who learned to play with three pieces, and his approach teaches us a lot about software engineering. Josh Waitzkin, whose story is in The Art of Learning. He wasn't a world champion, but he was a US national champion many times and became a chess International Master at 16, very young. When his teacher started teaching him, he took all the pieces off the board and left only one king, the other king and a pawn. That's where he started. Normally, people who really want to study chess go study openings and memorize them. There are famous openings. When I was a kid I had an uncle who played chess and lent me books with openings from great players and great tournaments. The risk he points out: when you start by focusing only on openings, you do great at the beginning, but at some point you freeze. You memorized the moves, but the game doesn't work like that. Your opponent makes a move you hadn't thought of. Sometimes they know that opening too, and how to defend against it. And you're left hanging. He compares it to walking on quicksand. We do that a lot in our careers in software. Design patterns. There are 23 of them, and someone studies all 23. Great. Monday at work someone says: - "Go on, use one." And you go: - "Man, I don't know." Because you don't know what problem each of those 23 patterns solves. If instead you'd asked: - "For this project, this type of work, which are the three main ones?" Now, when you hit one of those three problems, it's at hand, without so much crossing in your head. He didn't stay with three pieces. After two kings and a pawn he moved to endgames with few pieces, then rook and knight, adding complexity until he could see the full game against an opponent. And he became an International Master at 16. How do you eat a whole ox? Slice it into steaks and eat one at a time. Absorb one thing before going to the next. We're often in a hurry and skip steps. Even if software engineering keeps changing, as it already is, you're still the one piloting it, even if it's an agent. Master small things first, then expand.
247
Old but gold
2
289
Bad code has never been as expensive as it is now, with AI. That's Matt Pocock. If you've looked for skills to help you develop software, you've run into his. His skills repository is among the most popular on GitHub of all time. He spoke at AI Engineer in Europe in April, and at one point said bad code has never been so expensive. It sounds like a counterpoint to my friend Markus Eisele saying code is cheap and software engineering is expensive. They're saying the same thing. When you have a good codebase, well modularized, well structured, well specified, the agent flies. When your codebase is bad, does the agent get to the other side? Sometimes yes, sometimes no. And when it does, it spends many more tokens, makes many more mistakes, redoes its own work many more times. That's what we engineers always did when we landed in a bad codebase. You look, debug, investigate, get it wrong, do it again and again, until you get out the other side. The agent just does it faster. So this idea that code doesn't matter anymore because I have agents, no. Code matters for agents too. A personal experience. I build my projects in Quarkus. Starting a project, I asked Claude Code to write an agent with LangChain4j to do this, this and that. In a few minutes it worked. But it didn't use several conventions I'd use. Looks like fussiness, it was a short block. But about 15 of its 20 lines weren't needed, they could all be configuration in the properties file, in fewer lines. And you say: - "10 to 15 extra lines? Who cares." In my little project, no difference. In a 10 thousand class project, which isn't even that big, 10 to 15 extra lines per class is tens of thousands of unnecessary lines. More context for the agent, harder for it, harder for me, more test coverage needed. A chain reaction. That's why you steer the agent. So it writes code very close to what you'd write, or better, and better code gets better results, in functionality and in maintainability.
2
1
4
602
Java 27 cut the size of every object header in the JVM by a third, for free. If you just migrate versions, your objects take a lot less memory. How? Every object you create in the JVM has a header. Until now that header had 96 bits. In Java 27 it has 64. Looks silly, looks like nothing. But every object carries metadata: its class, its hash, its lock. Even a simple application can have millions of those. So any improvement in resource usage there can be really significant for your JVM. This came in as experimental in JDK 24, became a product feature in Java 25, and now in Java 27 it's the default. Some numbers they published. One scenario used 22% less heap and 8% less CPU. Another had 15% less garbage collection, just from this change. A JSON parser they tested ran 10% faster. Some companies already use it in production, like Amazon and SAP. Sometimes we want to improve our applications' performance, especially in the cloud, where you never know exactly what the bill will be at the end of the month. Small changes like this can have huge impacts on your service, your server and that bill.
27
102
14
692
67,312
Many people tied a Google account lock to Antigravity over the weekend, and Google said it was a security false positive. Custom agents in the Antigravity CLI drew quota at a higher rate until it was reverted. I cover both cases and what I would change. eldermoraes.com/coding-agent…
1
1
223
A lot of people say the future of AI is local models, open weight models you download to your machine or your company's server, no subscription. There's lots of debate about hardware, cost, whether it pays off. Even Jensen Huang from NVIDIA has been making the case for open models. I like the idea, for two reasons. I come from open source, and open weights is close to that. And nobody wants to pay a subscription if the quality is as good, or at least close. That's been my fight, in quotes. At an event one of my friends told me: - "We're almost there." And I said: - "Man, it's far." On my flight to Belgium for Devoxx I had the perfect chance to test it. 12 hours on a plane, internet so bad it only did messages. I installed some things before and decided to try the simplest thing possible, to see if a local model gives me anything minimally usable. I'd been using Ollama, and found my MacBook's architecture works better with LM Studio because of MLX. People spoke highly of the new Qwen family. Before the trip I tested three models, two Qwen and one Gemma. The other two were too slow, so I kept a Qwen. My machine has 40 GPU cores on Apple silicon and 48 GB of RAM. Reasonable. Mid flight, I asked for the dumbest possible thing: an agent with LangChain4j and Quarkus, even using my Quarkus agent scaffolding plugin, which guides the agent on how to do it, so the risk of mistakes is much lower. It was a disaster. An absolute disaster. In five minutes it was done, and I thought: - "That's it, I'm cancelling my subscriptions." Then I looked. Missing imports. Packages outside what the plugin specified. Invented imports, invented dependencies. I prompted it again, it went to look at the Maven cache: - "Oh, found the dependency." It ran for 40 minutes and I gave up, the machine was frying even with a small model. What it had done was very, very far off. I'm not saying we won't have good local models. But from what I see, in my layman's view, the processing architecture for local models has to change. Running a minimally viable model locally today is unviable, even with an external card, because it can't allocate enough memory. For a poem or an email, fine. For really delivering product to end users, it's another conversation.
1
1
5
385