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. Metodología TDD: pasos para aplicarla, con un ejemploLa metodología TDD paso a paso: lista de tests, rojo, verde y refactor. Un ejemplo real ejecutado en Node.js, los errores comunes y cómo aplicarla con IA.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: las 4 reglas de Kent Beck, con un ejemploEl diseño simple cabe en 4 reglas de Kent Beck: pasa los tests, revela la intención, sin duplicados y pocos elementos. Orden, ejemplo y qué cambia con IA.Nivel inicial
  6. ¿Qué es la deuda técnica? Definición y ejemplosQué es la deuda técnica, con ejemplos de código, sus cuatro tipos según Martin Fowler y cómo medirla y pagarla poco a poco sin parar el proyecto.Nivel inicial

Trainalia

  • Hexagonal architecture
  • Tests at several levels
  • Works offline

My own gym app, built with hexagonal architecture and tests at several levels.

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