AI-Assisted Code Reviews: Mario Hernandez’s Early Experiments

AI

Mario Hernandez reflects on his early experiments with AI code review tools, treating them as helpful assistants rather than replacements for human oversight. He emphasizes that while AI can spot certain inefficiencies, it lacks full contextual understanding—making human judgment indispensable.

Hernandez reports using GitHub Copilot inside his IDE for in‑context feedback during development, and experimenting with CodeRabbit. His most satisfying experience came from Google Gemini Code Assistant: after integrating it with his GitHub repo, Gemini reviewed pull requests and offered thoughtful suggestions to improve code clarity and maintainability.

To illustrate, he describes a Drupal Twig template where he originally used chained if‑elseif logic for mapping CSS classes to media view modes. Gemini proposed a cleaner refactor using a centralized view_mode_map and a loop—making the code shorter, easier to maintain, and less error-prone.

In closing, Hernandez cautions against blind trust in AI. He argues that AI’s role is to augment a developer’s expertise, not supplant it—especially in codebases with business logic or legacy constraints. For solo devs and small teams, though, he sees real value in letting AI offer suggestions and helping rethink patterns you might miss yourself.

Reference: Code reviews using AI (28 September 2025)

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Drupal Initiatives

Related People

Upcoming Events

Latest Opportunities