Limpiar el código
Hace el código más fácil de leer con el mismo comportamiento.
«Códigos slash» de Claude: Programación / Tecnología
Refactor the code below so it is easier to read and change, with exactly the same behaviour. Use clear names, small functions that do one thing, and remove duplication and dead code. Keep the public interface unchanged. Show the new code, then list each change and why. Flag anything that looked like a bug but that you left alone. Code: [PASTE CODE]