Hello peers in wisdom,
Last week I was experimenting for the first time with AI tools to generate code, specifically with the code editor, Antigravity. I'll describe my configurations, experiences, expectations and results.
What was my setup?
Antigravity out of the box, and I used Gemini 3 Flash. I gave it a detailed requirements document for an automated quoting system.
What were my expectations?
- Semi-functional project
- Clean hexagonal architecture
- Use of libraries I indicated it
What was the result?
It was neither too good nor too bad.
- The project is semi-functional as I expected. Some of the most interrelated business rules were not implemented exactly as expected. CRUD and authentication systems were fully functional.
- The code architecture was hexagonal as I asked for, but there were bad practices implemented, such as anemic entities, use of
anyinstead of mapping with a DTO. Also, there was a lack of custom errors and data validation, and some potential problems with the implementation of a finite state machine in one entity. - There was no problem managing and connecting different libraries. On the contrary, Gemini detected incompatibilities with the newest version of Prisma ORM and automatically decided to version down to solve the problem. Pretty cool!
Conclusion
It took me around 4 hours to read Gemini's generated code versus probably the 20+ hours it would have taken me to write the same amount of code. Even though it is not perfect, the code is a good template to start customizing the application's functionalities.
Definitely, I will be exploring other configurations, trying different agents, and iterating over the first result to see how good the final outcome can be. Stay tuned!
Comentarios
Publicar un comentario