Rubén Tejera · Software developer at Lean Mind

AI that races,
code that lasts.

Learn to code with AI without your code turning into a problem. Explained so it makes sense, whether you start today or have been at it for years.

I have worked on projects for

  • Inditex
  • Wolters Kluwer
  • Voxel · Amadeus

My method: Clean AI

Six principles so that what AI generates can be understood, tested and changed.

  1. If you don’t understand it, don’t accept it

  2. No tests, not done

  3. What matters goes in the center

  4. Everything external gets an adapter

  5. The simplest thing that works

  6. The responsibility is still yours

Read all six, explained with real-life examples

Start here

The articles behind Clean AI: TDD and clean code, explained from scratch (in Spanish).

  1. Algoritmo TDD: el ciclo rojo, verde, refactor y sus reglasEl algoritmo de TDD en un diagrama: qué puedes y qué no puedes hacer en rojo, verde y refactor, las tres leyes de TDD y un ejemplo ejecutado.Nivel inicial
  2. Pasos para aplicar TDD en tus proyectos, con un ejemploLos pasos para aplicar la metodología TDD en un proyecto: lista de tests, rojo, verde y refactor, con un ejemplo real ejecutado en Node.js.Nivel inicial
  3. Nombres con sentido en código limpio (Clean Code)Nombres con sentido en el desarrollo de software: las reglas de Clean Code para nombrar variables, funciones y clases, con ejemplos antes y después.Nivel inicial
  4. Funciones en Código Limpio: reglas y un ejemploCómo escribir funciones limpias según Clean Code: pequeñas, que hagan una cosa, con pocos argumentos y sin efectos secundarios. Con un refactor probado.Nivel inicial
  5. Diseño simple y emergente: las 4 reglas de código limpioQué es el diseño simple: las 4 reglas de Kent Beck (pasa los tests, revela la intención, sin duplicados, pocos elementos), su orden y un ejemplo.Nivel inicial
  6. ¿Qué es la deuda técnica? Definición y ejemplosQué es la deuda técnica, de dónde viene la metáfora, sus cuatro tipos según Martin Fowler y cómo pagarla poco a poco sin parar el proyecto.Nivel inicial

Trainalia

  • AI agents
  • Hexagonal architecture
  • Works offline

What I explain here is what I apply in my own gym app.

See how it is built

Trainalia on a phone: a gym member logs the weight, the reps and how an exercise felt
Rubén Tejera smiling, wearing glasses and a checked shirt

Who I am

I work at Lean Mind, from the Canary Islands. I specialize in clean code, clean architecture and hexagonal architecture, and here I explain how to apply them to what AI generates.

See my background