TODO o No: Sin Spam en el Código

Guía práctica para gestionar los TODO en el código: evitar spam técnico, asignar responsables, crear tickets y mantener un código limpio y ágil.

25 ago 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Dividir una tarea compleja en tareas mas pequenas es la mejor manera de resolverla. Muchos desarrolladores usan comentarios TODO en el codigo para no olvidar detalles: algunos los anotan en un cuaderno, otros en un diagrama y muchos los dejan como comentarios // TODO en el propio codigo.

El problema surge cuando aparecen un // TODO aqui y otro // TODO alla y nadie se hace cargo. La confianza en que alguien hara el trabajo mas adelante convierte esos avisos en spam tecnico: nadie los toca por miedo a romper algo o por falta de contexto. Si no has visto esto en tu equipo, enhorabuena, pero es muy comun.

Ejemplos tipicos encontrados en codigo

// TODO: registrar resultado

// TODO: agregar prueba

// TODO: verificar resultado

//TODO: arreglar

//TODO: revisar despues

Esos mensajes suelen requerir entre 15 segundos y 10 minutos para resolverse, o al menos crear una tarea en el gestor. Dejar un comentario sin crear un ticket o sin contexto es simplemente desplazar la responsabilidad y enterrar informacion util.

Como usar los TODO correctamente

Si durante el trabajo falta un dato o necesitas un recordatorio rapido para terminar la tarea actual, un TODO temporal es aceptable. La regla de oro: ocuparte de ese TODO antes de fusionar el trabajo. Si es una tarea de 5 minutos, hazla; si detectas un bug, crea un ticket con descripcion clara y prioridad; si necesitas informacion adicional, pidela inmediatamente. No pospongas problemas para un futuro indefinido.

Un buen TODO debe incluir contexto minimo: que hay que hacer, por que, cuando y quien es el responsable. Si no puedes aportar esa informacion, mejor no dejar el comentario en el codigo.

Un truco practico: usar prefijos personalizados en los TODO como todo-nombre o todo-julia y configurar el IDE para filtrar esos tags. Asi separas tus recordatorios de los demas y facilitas la gestion.

Cuando es correcto dejar un TODO

Hay escenarios legitimos para dejar un TODO en el codigo: advertir sobre una decision tecnica critica y poco evidente, documentar una limitacion que se resolvera en la siguiente iteracion o marcar una mejora mayor que requiere aprovacion externa. En esos casos el comentario debe ser conciso, util y tener una referencia clara a la tarea en el gestor de incidencias. No debe permanecer para siempre.

Contribuye a un codigo mas limpio

El uso de TODO es una eleccion personal, pero una base de codigo mas limpia facilita el mantenimiento y acelera el desarrollo. Haz pequeños esfuerzos para cerrar los pendientes, documentar correctamente y crear tickets cuando corresponda.

Sobre Q2BSTUDIO

En Q2BSTUDIO somos una empresa de desarrollo de software y creacion de aplicaciones a medida especializada en ofrecer soluciones practicas y seguras. Nuestro equipo desarrolla software a medida, aplicaciones a medida y plataformas que integran inteligencia artificial y ciberseguridad desde el diseño. Ofrecemos servicios cloud aws y azure para desplegar aplicaciones a medida con alta disponibilidad, y servicios inteligencia de negocio para convertir datos en decisiones con herramientas como power bi. Trabajamos con inteligencia artificial, ia para empresas y agentes ia para automatizar procesos y mejorar la productividad. Si necesitas consultoria en ciberseguridad, integracion de servicios cloud aws y azure, o soluciones de inteligencia de negocio, Q2BSTUDIO puede ayudarte a entregar software a medida de calidad.

Palabras clave para mejorar posicionamiento: aplicaciones a medida, software a medida, inteligencia artificial, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio, ia para empresas, agentes ia, power bi.

Si quieres evitar el spam de comentarios inutiles en el codigo contacta a Q2BSTUDIO para mejorar practicas de desarrollo, establecer convenciones de TODO y optimizar procesos con soluciones de software a medida e inteligencia artificial.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat