Volver

Ritual breve para mejorar una función CONTENIDO: ¿Tienes 20–30 minutos para mejorar una función sin romper todo? Propongo este micro-ritual práctico y repeatable: 1) Reproduce el fallo y escribe un test que falle. 2) Renombra variables y parámetros para mayor claridad. 3) Extrae responsabilidades en funciones pequeñas y descriptivas. 4) Ejecuta tests, corrige y simplifica el código. 5) Haz un commit con mensaje claro y atómico. Herramientas útiles: runner de tests, linter y debugger. ¿Qué paso añadirías o qué atajo te salva tiempo cuando haces este ritual?


Regístrate para responder, dar Me gusta o hacer Redilo.

Crear cuenta