Inglés para programadores · Code review

Frases en inglés para code review

Respuesta rápida

Estas son 275 frases en inglés para code review de la app Devlingo: sugerir un cambio, señalar un bug, pedir contexto, elogiar y aprobar. Cada una trae traducción, cuándo usarla y audio. En una revisión el tono importa tanto como el contenido, por eso muchas son formas amables de no estar de acuerdo.

Actualizado el

En un comentario de revisión, la pregunta suena mejor que la orden: What do you think about…? y Could we…? abren la conversación; nit: marca un detalle que no bloquea el merge.

Frases fáciles (70)

  1. Could you add some unit tests for this?

    ¿Podrías agregar algunas pruebas unitarias para esto?

    Cuándo usarla: Requesting test coverage during code review

  2. Looks good to me. Approved!

    Me parece bien. ¡Aprobado!

    Cuándo usarla: Approving a pull request after review

  3. Can you rename this variable to something more descriptive?

    ¿Puedes renombrar esta variable a algo más descriptivo?

    Cuándo usarla: Suggesting a better variable name for clarity

  4. Nice refactoring! The code is much cleaner now.

    ¡Buena refactorización! El código está mucho más limpio ahora.

    Cuándo usarla: Praising a well-done refactoring effort

  5. What happens if this value is nil?

    ¿Qué pasa si este valor es nil?

    Cuándo usarla: Asking about null safety and edge cases

  6. Let's use a constant instead of this magic number.

    Usemos una constante en lugar de este número mágico.

    Cuándo usarla: Suggesting replacing a hardcoded value with a named constant

  7. Please resolve the merge conflicts before I review.

    Por favor, resuelve los conflictos de merge antes de que revise.

    Cuándo usarla: Asking the author to fix conflicts before proceeding with review

  8. Have you tested this on older iOS versions?

    ¿Has probado esto en versiones anteriores de iOS?

    Cuándo usarla: Asking about backward compatibility testing

  9. Can you move this logic to the view model?

    ¿Puedes mover esta lógica al view model?

    Cuándo usarla: Asking to separate business logic from the view layer

  10. I left a few minor comments, but overall this is great work.

    Dejé algunos comentarios menores, pero en general es un gran trabajo.

    Cuándo usarla: Giving positive feedback with small suggestions

  11. The naming convention here doesn't match the rest of the codebase.

    La convención de nombres aquí no coincide con el resto del código.

    Cuándo usarla: Pointing out inconsistent naming style

  12. This code path is unreachable — we should remove it to keep the codebase clean.

    Esta ruta de código es inalcanzable — deberíamos eliminarla para mantener el código limpio.

    Cuándo usarla: When dead code exists that can never be executed

  13. Let's avoid abbreviations in variable names — spell out the full word for clarity.

    Evitemos abreviaciones en los nombres de variables — escribe la palabra completa para mayor claridad.

    Cuándo usarla: When variable names use unclear abbreviations like 'usr', 'cnt', 'tmp'

  14. I think we should add unit tests for this logic.

    Creo que deberíamos agregar pruebas unitarias para esta lógica.

    Cuándo usarla: Requesting test coverage for new or changed business logic

  15. The error message here isn't helpful for debugging.

    El mensaje de error aquí no es útil para la depuración.

    Cuándo usarla: When a catch block or error handler provides a vague error message

  16. Could you add a TODO here so we remember to revisit this before launch?

    ¿Podrías agregar un TODO aquí para que recordemos revisar esto antes del lanzamiento?

    Cuándo usarla: Marking incomplete or temporary solutions that need future attention

  17. Looks good overall, just a few style nits.

    Se ve bien en general, solo unos pocos detalles de estilo.

    Cuándo usarla: General approval with minor formatting suggestions

  18. Please remove the commented-out code before merging.

    Por favor, elimina el código comentado antes de fusionar.

    Cuándo usarla: When old code is left commented out instead of being deleted

  19. This hardcoded URL should come from the config.

    Esta URL fija debería venir de la configuración.

    Cuándo usarla: When a URL or endpoint is hardcoded instead of being configurable

  20. The commit messages could be more descriptive.

    Los mensajes de commit podrían ser más descriptivos.

    Cuándo usarla: When commit messages are vague like 'fix stuff' or 'update'

  21. Did you run the linter before pushing?

    ¿Ejecutaste el linter antes de hacer push?

    Cuándo usarla: When code has formatting issues that a linter would catch

  22. I appreciate the thorough test coverage here.

    Aprecio la cobertura de pruebas exhaustiva aquí.

    Cuándo usarla: Complimenting well-written tests in a code review

  23. The PR description is missing — can you add context about what this changes?

    Falta la descripción del PR — ¿puedes agregar contexto sobre qué cambia esto?

    Cuándo usarla: When a PR lacks a description explaining the purpose of the changes

  24. This log statement should use a proper log level instead of print.

    Esta declaración de log debería usar un nivel de log apropiado en lugar de print.

    Cuándo usarla: When console.log or print is used instead of a structured logging framework

  25. The access modifier on this method should be private.

    El modificador de acceso de este método debería ser privado.

    Cuándo usarla: When a method is public but only used internally

  26. This switch statement is missing a default case.

    Este switch no tiene un caso por defecto.

    Cuándo usarla: When a switch doesn't handle all possible values

  27. This conditional could be simplified with a ternary expression.

    Este condicional podría simplificarse con una expresión ternaria.

    Cuándo usarla: When an if-else block assigns a simple value and could be shortened

  28. Can you add the ticket number to the PR title for traceability?

    ¿Puedes agregar el número del ticket al título del PR para trazabilidad?

    Cuándo usarla: When a PR doesn't reference the associated Jira/Linear ticket

  29. This import is unused — please clean it up.

    Este import no se usa — por favor, límpialo.

    Cuándo usarla: When a module import is no longer needed in the file

  30. Can we move this configuration to environment variables?

    ¿Podemos mover esta configuración a variables de entorno?

    Cuándo usarla: When config values are hardcoded that should be environment-specific

  31. This file has gotten too large — let's split it up.

    Este archivo se ha vuelto demasiado grande — dividámoslo.

    Cuándo usarla: When a single file contains too many classes or too much code

  32. Can we add integration tests for this workflow?

    ¿Podemos agregar pruebas de integración para este flujo?

    Cuándo usarla: When a complex feature path only has unit tests

  33. This comparison should be case-insensitive.

    Esta comparación debería ser insensible a mayúsculas y minúsculas.

    Cuándo usarla: When string comparison doesn't account for different casing

  34. The indentation is inconsistent — tabs and spaces are mixed.

    La indentación es inconsistente — tabulaciones y espacios están mezclados.

    Cuándo usarla: When code formatting mixes tab and space indentation

  35. This placeholder text was left in — should be replaced with actual content.

    Este texto de placeholder se quedó — debe ser reemplazado con contenido real.

    Cuándo usarla: When Lorem Ipsum or test data is accidentally left in production code

  36. The spacing and formatting here don't match our style guide.

    El espaciado y formato aquí no coinciden con nuestra guía de estilo.

    Cuándo usarla: When code formatting deviates from the team's style conventions

  37. This constant should be uppercase by convention.

    Esta constante debería estar en mayúsculas por convención.

    Cuándo usarla: When a constant uses lowercase naming against coding conventions

  38. The indentation is inconsistent in this block — some lines use tabs and others use spaces.

    La indentacion es inconsistente en este bloque — algunas lineas usan tabulaciones y otras usan espacios.

    Cuándo usarla: Noting coding style inconsistency in whitespace usage

  39. The response body should use camelCase to be consistent with the rest of our API.

    El cuerpo de la respuesta deberia usar camelCase para ser consistente con el resto de nuestra API.

    Cuándo usarla: Commenting on inconsistent naming conventions in API response fields

  40. The variable name 'data' is too generic — can we rename it to something more descriptive like 'userProfiles'?

    El nombre de la variable 'data' es muy generico — podemos renombrarlo a algo mas descriptivo como 'userProfiles'?

    Cuándo usarla: Suggesting better naming for improved code readability

  41. Good catch on the boundary condition — what about negative numbers though?

    Buena captura en la condicion de limite — pero que hay de los numeros negativos?

    Cuándo usarla: Acknowledging a fix while pointing out another edge case not yet handled

  42. The spacing and formatting in this file are inconsistent — let's run the linter before we merge.

    El espaciado y formato en este archivo son inconsistentes — ejecutemos el linter antes de hacer merge.

    Cuándo usarla: Asking to apply consistent code formatting before merging a pull request

  43. This entire module would benefit from a comprehensive README explaining the architecture and data flow.

    Todo este modulo se beneficiaria de un README completo explicando la arquitectura y el flujo de datos.

    Cuándo usarla: Requesting high-level documentation for a complex module to help future developers

  44. LGTM! The separation of concerns here is really clean.

    LGTM! La separación de responsabilidades aquí está realmente limpia.

    Cuándo usarla: Approving a PR that demonstrates good architectural separation

  45. Nice use of generics here. This makes the component much more reusable.

    Buen uso de genéricos aquí. Esto hace que el componente sea mucho más reutilizable.

    Cuándo usarla: Praising effective use of generic types in a PR

  46. Great job adding structured logging. The correlation ID will really help with debugging in production.

    Buen trabajo agregando logging estructurado. El ID de correlación realmente ayudará con la depuración en producción.

    Cuándo usarla: Praising good observability practices

  47. Approved! This is a solid refactor. The tests give me confidence nothing is broken.

    ¡Aprobado! Este es un refactor sólido. Los tests me dan confianza de que nada se rompió.

    Cuándo usarla: Approving a refactoring PR that includes good test coverage

  48. I like the trade-off you chose here. Slightly more code but much easier to test and maintain.

    Me gusta el compromiso que elegiste aquí. Un poco más de código pero mucho más fácil de probar y mantener.

    Cuándo usarla: Acknowledging a thoughtful design decision

  49. Clean implementation! I especially like how you handled the edge cases.

    ¡Implementación limpia! Me gusta especialmente cómo manejaste los casos borde.

    Cuándo usarla: Praising thorough handling of edge cases

  50. Can we add a comment explaining why we chose this approach over the simpler alternative?

    ¿Podemos agregar un comentario explicando por qué elegimos este enfoque sobre la alternativa más simple?

    Cuándo usarla: Requesting documentation for a non-obvious design decision

  51. Looks good to me. Just one minor nit: this variable name could be more descriptive.

    Se ve bien. Solo una observación menor: este nombre de variable podría ser más descriptivo.

    Cuándo usarla: Approving with a small naming suggestion

  52. Love the use of early returns here. It makes the happy path much easier to follow.

    Me encanta el uso de retornos tempranos aquí. Hace que el camino feliz sea mucho más fácil de seguir.

    Cuándo usarla: Praising guard clauses and early return pattern

  53. Excellent test coverage on this module. These tests will save us a lot of regression debugging later.

    Excelente cobertura de pruebas en este módulo. Estas pruebas nos ahorrarán mucha depuración de regresiones después.

    Cuándo usarla: Praising comprehensive test coverage

  54. This looks like a feature flag that was left behind. Can we check if it is still needed?

    Esto parece una feature flag que quedó olvidada. ¿Podemos verificar si todavía es necesaria?

    Cuándo usarla: Identifying potentially stale feature flag code

  55. Ship it! This is exactly what we discussed in the design review.

    ¡Adelante! Esto es exactamente lo que discutimos en la revisión de diseño.

    Cuándo usarla: Enthusiastically approving a well-aligned implementation

  56. This configuration is hardcoded. Can we move it to an environment variable or a config file?

    Esta configuración está hardcodeada. ¿Podemos moverla a una variable de entorno o archivo de configuración?

    Cuándo usarla: Suggesting externalization of configuration values

  57. The error messages are being shown to the user in English only. These should be localized.

    Los mensajes de error se muestran al usuario solo en inglés. Estos deberían estar localizados.

    Cuándo usarla: Noting missing localization in error handling

  58. Good catch adding the timeout. Without it, a slow downstream call could hang the entire request.

    Buena captura al agregar el timeout. Sin él, una llamada downstream lenta podría colgar toda la solicitud.

    Cuándo usarla: Acknowledging a good defensive coding practice

  59. We should add a total count to the paginated response so the client knows how many pages there are.

    Deberíamos agregar un conteo total a la respuesta paginada para que el cliente sepa cuántas páginas hay.

    Cuándo usarla: Requesting metadata in a pagination response

  60. I appreciate the documentation you added here. It will help the next person who touches this code.

    Aprecio la documentación que agregaste aquí. Ayudará a la próxima persona que toque este código.

    Cuándo usarla: Praising good inline documentation

  61. Why are we using a string literal here instead of the constant we defined in the config module?

    ¿Por qué estamos usando un literal de cadena aquí en lugar de la constante que definimos en el módulo de configuración?

    Cuándo usarla: Pointing out use of magic strings instead of constants

  62. Nice work extracting this into a shared component. It was duplicated in four places before.

    Buen trabajo extrayendo esto en un componente compartido. Estaba duplicado en cuatro lugares antes.

    Cuándo usarla: Praising DRY refactoring to a shared component

  63. The page size should be configurable rather than hardcoded to 50. Different clients may need different page sizes.

    El tamaño de página debería ser configurable en lugar de estar hardcodeado en 50. Diferentes clientes pueden necesitar tamaños diferentes.

    Cuándo usarla: Suggesting configurable pagination parameters

  64. The naming is much better in this version. It reads almost like natural language now.

    La nomenclatura es mucho mejor en esta versión. Ahora se lee casi como lenguaje natural.

    Cuándo usarla: Praising improved naming after a revision

  65. I think we can simplify this by using a map and filter chain instead of the manual for loop.

    Creo que podemos simplificar esto usando una cadena de map y filter en lugar del for loop manual.

    Cuándo usarla: Suggesting a more functional programming style

  66. Solid work overall. My only suggestion would be to add integration tests covering the happy path and the main failure scenario.

    Trabajo sólido en general. Mi única sugerencia sería agregar pruebas de integración cubriendo el camino feliz y el principal escenario de fallo.

    Cuándo usarla: Mostly approving but requesting additional test coverage

  67. Approving with one suggestion: let us add a doc comment explaining when this method should and should not be called.

    Aprobando con una sugerencia: agreguemos un comentario de documentación explicando cuándo este método debe y no debe ser llamado.

    Cuándo usarla: Approving with a request for usage documentation

  68. The unit tests are great, but they all test the same happy path. Can we add tests for the error and edge cases?

    Los tests unitarios son geniales, pero todos prueban el mismo camino feliz. ¿Podemos agregar tests para los casos de error y borde?

    Cuándo usarla: Requesting broader test coverage beyond happy path

  69. This is a really elegant solution. I learned something new from reviewing this PR.

    Esta es una solución realmente elegante. Aprendí algo nuevo al revisar este PR.

    Cuándo usarla: Expressing genuine appreciation and learning from a PR

  70. Overall this is a well-structured PR. I left a few minor suggestions but nothing blocking. Approve.

    En general este es un PR bien estructurado. Dejé algunas sugerencias menores pero nada bloqueante. Aprobado.

    Cuándo usarla: Giving a final approving summary with minor non-blocking suggestions

Frases intermedias (109)

  1. This logic could be simplified with a guard statement.

    Esta lógica podría simplificarse con una sentencia guard.

    Cuándo usarla: Suggesting a code simplification using early return

  2. I think we should extract this into a separate function.

    Creo que deberíamos extraer esto en una función separada.

    Cuándo usarla: Suggesting extraction of repeated or complex logic

  3. This function is doing too many things. Can we break it down?

    Esta función está haciendo demasiadas cosas. ¿Podemos dividirla?

    Cuándo usarla: Pointing out a violation of the single responsibility principle

  4. Could you add a comment explaining why this workaround is necessary?

    ¿Podrías agregar un comentario explicando por qué es necesaria esta solución alternativa?

    Cuándo usarla: Requesting documentation for non-obvious code

  5. This error handling is too generic. We should catch specific errors.

    Este manejo de errores es demasiado genérico. Deberíamos capturar errores específicos.

    Cuándo usarla: Suggesting more precise error handling instead of a catch-all

  6. Is there a reason you chose a class instead of a struct here?

    ¿Hay alguna razón por la que elegiste una clase en lugar de un struct aquí?

    Cuándo usarla: Questioning the choice of reference type vs value type

  7. I see some duplicated code between these two files. Can we create a shared utility?

    Veo código duplicado entre estos dos archivos. ¿Podemos crear una utilidad compartida?

    Cuándo usarla: Identifying code duplication and suggesting DRY improvement

  8. This file is getting quite long. Should we split it into smaller modules?

    Este archivo se está volviendo bastante largo. ¿Deberíamos dividirlo en módulos más pequeños?

    Cuándo usarla: Suggesting file decomposition for maintainability

  9. Great use of the builder pattern here. Very clean.

    Excelente uso del patrón builder aquí. Muy limpio.

    Cuándo usarla: Complimenting a well-implemented design pattern

  10. We should add input validation before passing this data to the API.

    Deberíamos agregar validación de entrada antes de enviar estos datos a la API.

    Cuándo usarla: Requesting data validation at the boundary layer

  11. Can you add a comment explaining why this edge case is handled differently?

    ¿Puedes agregar un comentario explicando por qué este caso especial se maneja de forma diferente?

    Cuándo usarla: When code handles a special case but the reasoning isn't obvious

  12. I think self-documenting code would be better here than adding comments.

    Creo que el código autodocumentado sería mejor aquí que agregar comentarios.

    Cuándo usarla: Suggesting that clear naming and structure are preferable to explanatory comments

  13. Let's define custom error types instead of throwing generic exceptions.

    Definamos tipos de error personalizados en lugar de lanzar excepciones genéricas.

    Cuándo usarla: When error handling uses generic errors instead of domain-specific ones

  14. This endpoint is missing input validation.

    A este endpoint le falta validación de entrada.

    Cuándo usarla: When an API endpoint doesn't validate request parameters

  15. This PR is too large — can we break it into smaller, focused changes?

    Este PR es demasiado grande — ¿podemos dividirlo en cambios más pequeños y enfocados?

    Cuándo usarla: When a pull request touches too many files and is hard to review

  16. Approved with minor comments — nothing blocking.

    Aprobado con comentarios menores — nada bloqueante.

    Cuándo usarla: Approving a PR while leaving optional improvement suggestions

  17. We should use an enum here instead of passing raw string literals around.

    Deberíamos usar un enum aquí en lugar de pasar cadenas literales sueltas.

    Cuándo usarla: When string literals are used where a type-safe enum would be more appropriate

  18. This magic number should be extracted into a named constant.

    Este número mágico debería extraerse a una constante con nombre.

    Cuándo usarla: When a raw number appears in code without explanation

  19. This should be lazy loaded — there's no need to initialize it until it's actually used.

    Esto debería cargarse de forma lazy — no hay necesidad de inicializarlo hasta que se use realmente.

    Cuándo usarla: When an expensive object is created eagerly but only needed conditionally

  20. I'd recommend adding guard clauses at the top to fail fast on invalid input.

    Recomendaría agregar cláusulas guard al inicio para fallar rápido con entrada inválida.

    Cuándo usarla: Suggesting defensive programming with early validation

  21. We need to add tests specifically for the edge cases — empty input, boundary values, and timeouts.

    Necesitamos agregar pruebas específicamente para los casos límite — entrada vacía, valores frontera y timeouts.

    Cuándo usarla: When test coverage exists but doesn't cover critical edge cases

  22. Can you walk me through the thought process behind this design decision?

    ¿Puedes explicarme el razonamiento detrás de esta decisión de diseño?

    Cuándo usarla: Asking the author to explain their architectural choice

  23. I left a few comments but nothing that should block the merge.

    Dejé algunos comentarios pero nada que deba bloquear el merge.

    Cuándo usarla: Indicating that review feedback is optional and PR can proceed

  24. Let's not mix refactoring with feature work in the same PR.

    No mezclemos refactorización con trabajo de funcionalidad en el mismo PR.

    Cuándo usarla: Requesting separation of concerns in pull requests

  25. Can we use an enum here instead of string comparisons?

    ¿Podemos usar un enum aquí en lugar de comparaciones de cadenas?

    Cuándo usarla: Suggesting type-safe enums over raw string matching

  26. Could you bump up the test coverage for this module?

    ¿Podrías aumentar la cobertura de pruebas de este módulo?

    Cuándo usarla: Requesting more tests for a module that lacks sufficient coverage

  27. Is there a reason we're not using the existing utility for this?

    ¿Hay alguna razón por la que no estamos usando la utilidad existente para esto?

    Cuándo usarla: When someone writes custom code for something that already exists in the codebase

  28. This timeout value seems too aggressive for production.

    Este valor de timeout parece demasiado agresivo para producción.

    Cuándo usarla: When a network or operation timeout is set too low for real-world conditions

  29. The happy path works, but what about error handling?

    El camino feliz funciona, pero ¿qué pasa con el manejo de errores?

    Cuándo usarla: When code only handles the success case and ignores failures

  30. We need to think about how this scales with a large dataset.

    Necesitamos pensar en cómo esto escala con un gran conjunto de datos.

    Cuándo usarla: When code works fine with small data but may have performance issues at scale

  31. This is a breaking change — we need to coordinate with the mobile team.

    Este es un cambio que rompe la compatibilidad — necesitamos coordinar con el equipo móvil.

    Cuándo usarla: When an API or interface change will affect other teams or clients

  32. I think we should handle the case where the API returns a 429.

    Creo que deberíamos manejar el caso en que la API devuelve un 429.

    Cuándo usarla: When rate limiting from external APIs isn't handled

  33. This regex is unreadable — can we add a comment or break it up?

    Este regex es ilegible — ¿podemos agregar un comentario o dividirlo?

    Cuándo usarla: When a complex regular expression has no documentation

  34. We should add an index on this column to speed up the query.

    Deberíamos agregar un índice en esta columna para acelerar la consulta.

    Cuándo usarla: When a database query is slow due to missing indexes

  35. This API response should be cached to reduce unnecessary network calls.

    Esta respuesta de API debería estar en caché para reducir llamadas de red innecesarias.

    Cuándo usarla: When the same API data is fetched repeatedly without caching

  36. Let's make sure we're not exposing any sensitive data in this response.

    Asegurémonos de que no estamos exponiendo datos sensibles en esta respuesta.

    Cuándo usarla: When reviewing API responses that might leak private information

  37. Can we avoid the force unwrap here? It's a crash waiting to happen.

    ¿Podemos evitar el force unwrap aquí? Es un crash esperando a ocurrir.

    Cuándo usarla: When a force unwrap (!) is used in Swift or similar patterns in other languages

  38. Can we add a guard clause at the top instead of wrapping everything in an if?

    ¿Podemos agregar una cláusula guard al inicio en lugar de envolver todo en un if?

    Cuándo usarla: Suggesting guard-style early exit over deep nesting

  39. Good catch handling the edge case — I wouldn't have thought of that.

    Buena captura manejando ese caso especial — no habría pensado en eso.

    Cuándo usarla: Praising a developer for anticipating an unusual scenario

  40. This would read better as a computed property instead of a method.

    Esto se leería mejor como una propiedad computada en lugar de un método.

    Cuándo usarla: When a no-argument method that returns a value could be a property

  41. The error handling here follows our established patterns nicely.

    El manejo de errores aquí sigue bien nuestros patrones establecidos.

    Cuándo usarla: Praising consistent error handling that matches team standards

  42. We should validate the response schema before parsing it.

    Deberíamos validar el esquema de la respuesta antes de procesarla.

    Cuándo usarla: When API response data is used without validating its structure

  43. I'd rather see an explicit type annotation here for readability.

    Preferiría ver una anotación de tipo explícita aquí para legibilidad.

    Cuándo usarla: When type inference makes the code harder to understand at a glance

  44. This date formatting should respect the user's locale.

    Este formato de fecha debería respetar la localización del usuario.

    Cuándo usarla: When dates are formatted with a hardcoded format string

  45. Consider using a protocol here to make this more flexible.

    Considera usar un protocolo aquí para hacerlo más flexible.

    Cuándo usarla: When concrete types are used where protocols/interfaces would be better

  46. Nice use of generics here — very clean and reusable.

    Buen uso de genéricos aquí — muy limpio y reutilizable.

    Cuándo usarla: Complimenting good use of generic types for reusability

  47. We should discuss this architectural decision in a design doc first.

    Deberíamos discutir esta decisión arquitectónica en un documento de diseño primero.

    Cuándo usarla: When a PR introduces a major architectural change without prior discussion

  48. We need to handle the loading state in the UI while this request is in flight.

    Necesitamos manejar el estado de carga en la UI mientras esta solicitud está en curso.

    Cuándo usarla: When async operations don't show loading indicators to the user

  49. This pagination implementation doesn't handle the last page correctly.

    Esta implementación de paginación no maneja la última página correctamente.

    Cuándo usarla: When pagination logic has edge cases around the final page of results

  50. The API contract changed but the documentation wasn't updated.

    El contrato de la API cambió pero la documentación no fue actualizada.

    Cuándo usarla: When API docs are out of sync with the actual implementation

  51. Could we use a more specific exception type here?

    ¿Podríamos usar un tipo de excepción más específico aquí?

    Cuándo usarla: When a generic Exception is thrown instead of a domain-specific one

  52. This fallthrough in the switch is intentional, right?

    Este fallthrough en el switch es intencional, ¿verdad?

    Cuándo usarla: When a switch case falls through without a break or explicit annotation

  53. I'd add a timeout to this network request to avoid hanging indefinitely.

    Agregaría un timeout a esta solicitud de red para evitar colgar indefinidamente.

    Cuándo usarla: When a network call has no timeout configured

  54. This is over-engineered for what we need right now.

    Esto está sobre-diseñado para lo que necesitamos ahora mismo.

    Cuándo usarla: When a solution is more complex than what the current requirements demand

  55. This would be cleaner using destructuring assignment.

    Esto sería más limpio usando desestructuración.

    Cuándo usarla: When properties are accessed one by one instead of using destructuring

  56. The method signature changed but the callers weren't updated.

    La firma del método cambió pero los llamadores no fueron actualizados.

    Cuándo usarla: When a function's parameters change but all call sites aren't fixed

  57. This callback hell can be cleaned up with async/await.

    Este callback hell puede limpiarse con async/await.

    Cuándo usarla: When nested callbacks make code difficult to follow

  58. The tests pass but they're not actually asserting anything meaningful.

    Las pruebas pasan pero no están verificando nada significativo.

    Cuándo usarla: When tests exist but don't verify important behavior

  59. Please squash these commits before merging to keep the history clean.

    Por favor, aplana estos commits antes de fusionar para mantener el historial limpio.

    Cuándo usarla: When a PR has too many small/messy commits that should be combined

  60. This data structure choice is perfect for this use case.

    Esta elección de estructura de datos es perfecta para este caso de uso.

    Cuándo usarla: Praising a well-chosen data structure for a specific problem

  61. This endpoint returns way too much data — can we paginate the response?

    Este endpoint devuelve demasiados datos — podemos paginar la respuesta?

    Cuándo usarla: Commenting on an API design issue where too much data is returned at once

  62. Will this change break backwards compatibility with older API clients?

    Este cambio rompera la compatibilidad hacia atras con los clientes de API mas antiguos?

    Cuándo usarla: Asking whether a modification will cause issues for existing consumers of an API

  63. We should add JSDoc comments to this public API so consumers know what each parameter expects.

    Deberiamos agregar comentarios JSDoc a esta API publica para que los consumidores sepan que espera cada parametro.

    Cuándo usarla: Requesting documentation for a public-facing API function

  64. This catch block silently swallows the exception — at minimum we should log it.

    Este bloque catch traga la excepcion silenciosamente — como minimo deberiamos registrarla en el log.

    Cuándo usarla: Pointing out that errors are being caught but not handled or logged

  65. Instead of these nested if-else blocks, a guard clause at the top would make this much cleaner.

    En lugar de estos bloques if-else anidados, una clausula guard al inicio dejaria esto mucho mas limpio.

    Cuándo usarla: Suggesting early returns to improve code readability and reduce nesting

  66. This force unwrap could crash in production — let's use optional binding with a fallback instead.

    Este force unwrap podria fallar en produccion — usemos optional binding con un fallback en su lugar.

    Cuándo usarla: Flagging unsafe force unwrapping that should use safe unwrapping patterns

  67. We could simplify this by using a map and filter chain instead of the manual for loop with conditionals.

    Podriamos simplificar esto usando una cadena de map y filter en lugar del bucle for manual con condicionales.

    Cuándo usarla: Suggesting functional programming approach over imperative looping

  68. Let's add a rate limiter to this endpoint to prevent abuse.

    Agreguemos un limitador de tasa a este endpoint para prevenir abuso.

    Cuándo usarla: Suggesting security hardening for a public-facing API endpoint

  69. This function is doing too many things. Can we break it into smaller, focused helpers?

    Esta función está haciendo demasiadas cosas. ¿Podemos dividirla en ayudantes más pequeños y enfocados?

    Cuándo usarla: Requesting changes when a function has grown too complex

  70. We should add input validation before passing this data to the service layer.

    Deberíamos agregar validación de entrada antes de pasar estos datos a la capa de servicio.

    Cuándo usarla: Noting missing validation at the boundary of a module

  71. The error is being swallowed here. We should at least log it before returning a default value.

    El error está siendo tragado aquí. Deberíamos al menos registrarlo antes de devolver un valor predeterminado.

    Cuándo usarla: Noting that error information is being silently discarded

  72. Could we use dependency injection here instead of directly instantiating the service?

    ¿Podríamos usar inyección de dependencias aquí en lugar de instanciar el servicio directamente?

    Cuándo usarla: Suggesting DI to improve testability and decoupling

  73. This feature flag has been enabled for three months. Should we clean up the dead code path?

    Esta feature flag ha estado habilitada durante tres meses. ¿Deberíamos limpiar la ruta de código muerto?

    Cuándo usarla: Suggesting removal of stale feature flag logic

  74. Have we considered caching this API response? It rarely changes and we call it on every page load.

    ¿Hemos considerado cachear esta respuesta de la API? Raramente cambia y la llamamos en cada carga de página.

    Cuándo usarla: Suggesting a caching strategy for frequently accessed, slowly changing data

  75. The cognitive load of this method is quite high. I had to re-read it several times to understand the flow.

    La carga cognitiva de este método es bastante alta. Tuve que releerlo varias veces para entender el flujo.

    Cuándo usarla: Commenting on code that is difficult to understand due to complexity

  76. These button labels are not accessible. Screen readers will just read "button" without any context.

    Estas etiquetas de botón no son accesibles. Los lectores de pantalla solo leerán "botón" sin ningún contexto.

    Cuándo usarla: Flagging accessibility issues in UI code

  77. This protocol has too many requirements. Consider splitting it into smaller, composable protocols.

    Este protocolo tiene demasiados requisitos. Considera dividirlo en protocolos más pequeños y componibles.

    Cuándo usarla: Suggesting protocol decomposition for better design

  78. We are missing proper error propagation here. The caller has no way to know why the operation failed.

    Nos falta la propagación adecuada de errores aquí. El llamador no tiene forma de saber por qué la operación falló.

    Cuándo usarla: Identifying that errors are not being communicated back to callers properly

  79. The UI looks great, but the color contrast ratio does not meet WCAG AA standards for body text.

    La UI se ve genial, pero la relación de contraste de colores no cumple con los estándares WCAG AA para texto del cuerpo.

    Cuándo usarla: Flagging accessibility color contrast issue

  80. This query is missing an index. Without it, we will do a full table scan on every request.

    A esta consulta le falta un índice. Sin él, haremos un escaneo completo de la tabla en cada solicitud.

    Cuándo usarla: Identifying missing database index for performance

  81. I would prefer we use a protocol here so we can swap the implementation in tests.

    Preferiría que usáramos un protocolo aquí para poder intercambiar la implementación en los tests.

    Cuándo usarla: Suggesting abstraction for better testability

  82. Instead of returning null here, can we use the Result type to make the error case explicit?

    En lugar de devolver null aquí, ¿podemos usar el tipo Result para hacer explícito el caso de error?

    Cuándo usarla: Suggesting typed error handling instead of nullable returns

  83. The business logic is leaking into the view layer. Let us move this calculation to the view model.

    La lógica de negocio está filtrándose a la capa de vista. Movamos este cálculo al view model.

    Cuándo usarla: Identifying violation of separation of concerns

  84. Consider using a type alias here to improve readability of this complex generic signature.

    Considera usar un type alias aquí para mejorar la legibilidad de esta firma genérica compleja.

    Cuándo usarla: Suggesting readability improvement for complex generic types

  85. The deep nesting makes this hard to reason about. Can we flatten it with guard clauses or extract methods?

    El anidamiento profundo hace difícil razonar sobre esto. ¿Podemos aplanarlo con cláusulas guard o extraer métodos?

    Cuándo usarla: Requesting simplification of deeply nested conditional logic

  86. I noticed the focus order of these form fields does not match the visual layout. This will confuse keyboard users.

    Noté que el orden de enfoque de estos campos del formulario no coincide con el diseño visual. Esto confundirá a los usuarios de teclado.

    Cuándo usarla: Identifying an accessibility issue with tab/focus order

  87. Why are we creating a new database connection for each request instead of using a connection pool?

    ¿Por qué estamos creando una nueva conexión de base de datos para cada solicitud en lugar de usar un pool de conexiones?

    Cuándo usarla: Questioning inefficient database connection management

  88. I am concerned about the coupling between these two modules. They should not need to know about each other's internals.

    Me preocupa el acoplamiento entre estos dos módulos. No deberían necesitar conocer los internos del otro.

    Cuándo usarla: Raising concerns about tight coupling between modules

  89. This catch block is too broad. We should handle specific error types instead of catching everything.

    Este bloque catch es demasiado amplio. Deberíamos manejar tipos de error específicos en lugar de capturar todo.

    Cuándo usarla: Requesting more granular error handling

  90. The data layer should not know about UIKit. This import creates an unnecessary dependency on the UI framework.

    La capa de datos no debería conocer UIKit. Este import crea una dependencia innecesaria del framework de UI.

    Cuándo usarla: Flagging an architecture boundary violation

  91. This is a nice abstraction, but make sure it does not become a leaky abstraction as requirements evolve.

    Esta es una buena abstracción, pero asegúrate de que no se convierta en una abstracción con fugas conforme evolucionan los requisitos.

    Cuándo usarla: Cautioning about abstraction sustainability

  92. We are not validating the email format before saving it to the database. This could lead to corrupted data.

    No estamos validando el formato del email antes de guardarlo en la base de datos. Esto podría llevar a datos corruptos.

    Cuándo usarla: Noting missing input validation before persistence

  93. The logging level here should be warn, not info. We want to be alerted if this code path is hit in production.

    El nivel de log aquí debería ser warn, no info. Queremos ser alertados si esta ruta de código se ejecuta en producción.

    Cuándo usarla: Correcting log severity level for an important condition

  94. This is a great example of composition over inheritance. The flexibility this provides is well worth the slightly more verbose code.

    Este es un gran ejemplo de composición sobre herencia. La flexibilidad que proporciona bien vale el código ligeramente más verboso.

    Cuándo usarla: Praising a design pattern choice

  95. I see we are using force unwrap here. Can we use a guard let or optional binding to handle the nil case gracefully?

    Veo que estamos usando force unwrap aquí. ¿Podemos usar guard let o enlace opcional para manejar el caso nil de forma elegante?

    Cuándo usarla: Flagging unsafe force unwrap in Swift or similar patterns

  96. This feature flag is being checked in the view, the view model, and the service. Can we centralize the check to one place?

    Esta feature flag se está verificando en la vista, el view model y el servicio. ¿Podemos centralizar la verificación en un solo lugar?

    Cuándo usarla: Identifying scattered feature flag checks

  97. The image alt text is missing on these product thumbnails. Visually impaired users will not know what they show.

    El texto alternativo de la imagen falta en estas miniaturas de producto. Los usuarios con discapacidad visual no sabrán qué muestran.

    Cuándo usarla: Flagging missing accessibility attributes for images

  98. We need to add metrics around this operation so we can set up alerts if the latency degrades.

    Necesitamos agregar métricas alrededor de esta operación para poder configurar alertas si la latencia se degrada.

    Cuándo usarla: Requesting monitoring and alerting instrumentation

  99. This SELECT * should be replaced with explicit column names. It will break if someone adds a column later.

    Este SELECT * debería reemplazarse con nombres de columnas explícitos. Se romperá si alguien agrega una columna después.

    Cuándo usarla: Flagging fragile SQL query pattern

  100. If we cache this, we also need to think about cache invalidation. When does this data become stale?

    Si cacheamos esto, también necesitamos pensar en la invalidación del caché. ¿Cuándo estos datos se vuelven obsoletos?

    Cuándo usarla: Raising cache invalidation concerns

  101. This view controller is over 500 lines. We should extract the table view data source methods into a separate class.

    Este view controller tiene más de 500 líneas. Deberíamos extraer los métodos del data source del table view en una clase separada.

    Cuándo usarla: Suggesting decomposition of a large view controller

  102. This switch statement should have an exhaustive check. Adding a default case hides the compiler warning when new enum values are added.

    Este switch statement debería tener una verificación exhaustiva. Agregar un caso default oculta la advertencia del compilador cuando se agregan nuevos valores de enum.

    Cuándo usarla: Recommending exhaustive pattern matching over default cases

  103. I would add a TTL to this cache entry. Stale configuration data could cause unexpected behavior in production.

    Yo agregaría un TTL a esta entrada de caché. Datos de configuración obsoletos podrían causar comportamiento inesperado en producción.

    Cuándo usarla: Suggesting time-to-live for cached configuration data

  104. Using a computed property here instead of a stored one would avoid the stale data issue entirely.

    Usar una propiedad computada aquí en lugar de una almacenada evitaría completamente el problema de datos obsoletos.

    Cuándo usarla: Suggesting a computed property to prevent stale cached values

  105. This closure is capturing self strongly and could cause a memory leak. Consider using [weak self] here.

    Esta closure está capturando self fuertemente y podría causar una fuga de memoria. Considera usar [weak self] aquí.

    Cuándo usarla: Identifying a potential retain cycle in closure-based code

  106. I think the trade-off here leans too far toward performance at the expense of readability. This code will be hard to maintain.

    Creo que el compromiso aquí se inclina demasiado hacia el rendimiento a expensas de la legibilidad. Este código será difícil de mantener.

    Cuándo usarla: Pushing back on premature optimization that hurts readability

  107. The debug log statements are fine for development, but we should gate them behind a log level check to avoid overhead in production.

    Las instrucciones de log de debug están bien para desarrollo, pero deberíamos protegerlas con una verificación de nivel de log para evitar sobrecarga en producción.

    Cuándo usarla: Suggesting log level gating for production performance

  108. The keyboard navigation for this modal is broken. Users cannot tab to the close button or press Escape to dismiss it.

    La navegación por teclado de este modal está rota. Los usuarios no pueden tabular hasta el botón de cerrar ni presionar Escape para cerrarlo.

    Cuándo usarla: Flagging broken keyboard accessibility in a modal dialog

  109. The graceful degradation approach here is spot on. If the third-party service is unavailable, the user still gets a usable experience.

    El enfoque de degradación elegante aquí es acertado. Si el servicio de terceros no está disponible, el usuario aún obtiene una experiencia utilizable.

    Cuándo usarla: Praising resilient design that handles service failures gracefully

Frases avanzadas (96)

  1. I noticed a potential memory leak here.

    Noté una posible fuga de memoria aquí.

    Cuándo usarla: Flagging a memory management issue in the code

  2. This approach won't scale well. Have you considered using a dictionary instead?

    Este enfoque no escalará bien. ¿Has considerado usar un diccionario?

    Cuándo usarla: Raising scalability concerns and suggesting an alternative data structure

  3. I would prefer using a protocol here to make this more testable.

    Preferiría usar un protocolo aquí para hacer esto más testeable.

    Cuándo usarla: Suggesting dependency injection via protocol for better testability

  4. This closure should capture self weakly to avoid a retain cycle.

    Este closure debería capturar self de forma débil para evitar un ciclo de retención.

    Cuándo usarla: Pointing out a potential retain cycle in a closure

  5. This API call should be on a background thread to avoid blocking the main thread.

    Esta llamada a la API debería estar en un hilo de fondo para no bloquear el hilo principal.

    Cuándo usarla: Flagging a threading issue with network calls

  6. Consider using async/await instead of completion handlers for better readability.

    Considera usar async/await en lugar de completion handlers para mejorar la legibilidad.

    Cuándo usarla: Suggesting modernization of asynchronous code style

  7. The race condition here could cause intermittent bugs in production.

    La condición de carrera aquí podría causar errores intermitentes en producción.

    Cuándo usarla: Identifying a concurrency issue that may cause unpredictable behavior

  8. The performance implications of using filter followed by map here are worth considering. A single compactMap would be more efficient.

    Las implicaciones de rendimiento de usar filter seguido de map aquí valen la pena considerarse. Un solo compactMap sería más eficiente.

    Cuándo usarla: Suggesting a performance optimization for chained higher-order functions

  9. This force unwrap will crash the app if the value is nil. Can you handle the optional safely?

    Este force unwrap provocará un crash en la app si el valor es nil. ¿Puedes manejar el optional de forma segura?

    Cuándo usarla: Flagging a dangerous force unwrap that could cause a runtime crash

  10. The cyclomatic complexity of this function is too high — can we simplify the branching?

    La complejidad ciclomática de esta función es demasiado alta — ¿podemos simplificar las ramificaciones?

    Cuándo usarla: When a function has too many conditional paths making it hard to test and maintain

  11. This looks like it could be a race condition.

    Esto parece que podría ser una condición de carrera.

    Cuándo usarla: When identifying potential concurrency issues in multithreaded code

  12. This is a DRY violation — the same logic exists in the user service.

    Esto viola el principio DRY — la misma lógica existe en el servicio de usuario.

    Cuándo usarla: When duplicate code is found across different parts of the codebase

  13. Have you considered the performance implications of this query inside a loop?

    ¿Has considerado las implicaciones de rendimiento de esta consulta dentro de un bucle?

    Cuándo usarla: When a database query or API call is made inside a loop, causing N+1 issues

  14. This violates the single responsibility principle.

    Esto viola el principio de responsabilidad única.

    Cuándo usarla: When a class or function is doing too many unrelated things

  15. I'd suggest using a more defensive approach here with proper error boundaries.

    Sugeriría usar un enfoque más defensivo aquí con límites de error apropiados.

    Cuándo usarla: Recommending safer error handling patterns in critical code paths

  16. This catch block is swallowing the exception silently.

    Este bloque catch está tragando la excepción silenciosamente.

    Cuándo usarla: When an error is caught but not logged or re-thrown

  17. This coupling between modules is going to bite us later.

    Este acoplamiento entre módulos nos va a traer problemas después.

    Cuándo usarla: Warning about tight coupling that will cause maintenance problems

  18. We should sanitize this user input to prevent SQL injection.

    Deberíamos sanitizar esta entrada del usuario para prevenir inyección SQL.

    Cuándo usarla: Identifying a security vulnerability with unsanitized input

  19. This needs a migration script for the database schema change.

    Esto necesita un script de migración para el cambio en el esquema de la base de datos.

    Cuándo usarla: When a DB schema change is made without a corresponding migration

  20. I'm not sure this abstraction is earning its keep.

    No estoy seguro de que esta abstracción se justifique.

    Cuándo usarla: When an abstraction layer adds complexity without clear benefit

  21. This is a classic N+1 query problem.

    Este es un problema clásico de consulta N+1.

    Cuándo usarla: When code triggers individual database queries for each item in a collection

  22. This test is testing implementation details rather than behavior.

    Esta prueba está probando detalles de implementación en lugar de comportamiento.

    Cuándo usarla: When a test is brittle because it's tightly coupled to internal code structure

  23. I would avoid mutating state directly — use a reducer pattern instead.

    Evitaría mutar el estado directamente — usa un patrón reducer en su lugar.

    Cuándo usarla: Suggesting immutable state management patterns

  24. I see potential for a memory leak here with this strong reference cycle.

    Veo potencial para una fuga de memoria aquí con este ciclo de referencia fuerte.

    Cuándo usarla: When closures or delegates create retain cycles

  25. This boolean parameter is a code smell — consider using separate methods.

    Este parámetro booleano es un code smell — considera usar métodos separados.

    Cuándo usarla: When a function takes a boolean that toggles different behavior

  26. The type assertion here is unsafe — can we use a type guard instead?

    La aserción de tipo aquí no es segura — ¿podemos usar una verificación de tipo en su lugar?

    Cuándo usarla: When a forced type cast could crash at runtime

  27. This would be a good candidate for the strategy pattern.

    Esto sería un buen candidato para el patrón strategy.

    Cuándo usarla: When suggesting a design pattern to replace conditional logic

  28. The dependency injection here makes this much easier to test.

    La inyección de dependencias aquí hace esto mucho más fácil de probar.

    Cuándo usarla: Complimenting good use of dependency injection for testability

  29. I'd recommend wrapping this third-party dependency behind an interface.

    Recomendaría envolver esta dependencia de terceros detrás de una interfaz.

    Cuándo usarla: When external libraries are used directly without abstraction

  30. This would benefit from being wrapped in a transaction.

    Esto se beneficiaría de estar envuelto en una transacción.

    Cuándo usarla: When multiple database operations should be atomic

  31. Have you considered using the strategy pattern here to make this more extensible?

    ¿Has considerado usar el patrón strategy aquí para hacerlo más extensible?

    Cuándo usarla: Suggesting a design pattern to improve code flexibility and maintainability

  32. We should debounce this event handler to prevent excessive calls.

    Deberíamos aplicar debounce a este manejador de eventos para prevenir llamadas excesivas.

    Cuándo usarla: When a UI event fires too frequently without throttling

  33. I'm concerned about the thread safety of this shared mutable state.

    Me preocupa la seguridad de hilos de este estado mutable compartido.

    Cuándo usarla: When a shared variable is modified without synchronization

  34. This looks like premature optimization — let's keep it simple for now.

    Esto parece optimización prematura — mantengámoslo simple por ahora.

    Cuándo usarla: When code is over-engineered for performance without evidence of a bottleneck

  35. This optional chaining is getting out of hand — maybe restructure the data model.

    Este encadenamiento opcional se está saliendo de control — quizás reestructurar el modelo de datos.

    Cuándo usarla: When deeply nested optional chaining indicates a design problem

  36. Let's use a builder pattern here to handle all these constructor parameters.

    Usemos un patrón builder aquí para manejar todos estos parámetros del constructor.

    Cuándo usarla: When a constructor has too many parameters making it unwieldy

  37. The complexity of this function exceeds our threshold — let's refactor.

    La complejidad de esta función excede nuestro umbral — refactoricemos.

    Cuándo usarla: When cyclomatic complexity is too high on a function

  38. This feature flag check should be at the entry point, not deep in the logic.

    Esta verificación de feature flag debería estar en el punto de entrada, no dentro de la lógica.

    Cuándo usarla: When a feature flag is checked too deep in the call chain

  39. The retry logic here doesn't have exponential backoff.

    La lógica de reintento aquí no tiene retroceso exponencial.

    Cuándo usarla: When retry mechanisms don't increase wait times between attempts

  40. This string concatenation in a loop is going to be slow — use a string builder.

    Esta concatenación de cadenas en un bucle va a ser lenta — usa un string builder.

    Cuándo usarla: When strings are concatenated repeatedly inside a loop causing performance issues

  41. This map/filter chain could be simplified with a single reduce.

    Esta cadena de map/filter podría simplificarse con un solo reduce.

    Cuándo usarla: When multiple array operations could be combined into one

  42. This assertion will fail in production — use a proper validation instead.

    Esta aserción fallará en producción — usa una validación adecuada.

    Cuándo usarla: When debug assertions are used where production-safe validation is needed

  43. We're leaking implementation details through the public API.

    Estamos filtrando detalles de implementación a través de la API pública.

    Cuándo usarla: When internal types or structures are exposed in the public interface

  44. This sorting algorithm choice might not be optimal for our data characteristics.

    Esta elección de algoritmo de ordenación podría no ser óptima para las características de nuestros datos.

    Cuándo usarla: When the sorting approach doesn't match the typical data patterns

  45. We should add rate limiting to this endpoint before it goes live.

    Deberíamos agregar limitación de tasa a este endpoint antes de que entre en producción.

    Cuándo usarla: When a public-facing endpoint has no protection against abuse

  46. The error boundary here will catch errors from child components too.

    El límite de error aquí también capturará errores de los componentes hijos.

    Cuándo usarla: When an error boundary's scope is broader than intended

  47. This recursive function needs a maximum depth guard to prevent stack overflow.

    Esta función recursiva necesita un límite de profundidad para evitar desbordamiento de pila.

    Cuándo usarla: When recursion has no depth limit and could crash with deep inputs

  48. I'd suggest adding a circuit breaker for this external service call.

    Sugeriría agregar un circuit breaker para esta llamada de servicio externo.

    Cuándo usarla: When calls to external services have no fallback mechanism

  49. This is a perfect use case for lazy initialization.

    Este es un caso de uso perfecto para inicialización lazy.

    Cuándo usarla: When an expensive object is created eagerly but may not always be needed

  50. This PR addresses the issue, but I think there's a deeper root cause we're missing.

    Este PR aborda el problema, pero creo que hay una causa raíz más profunda que estamos ignorando.

    Cuándo usarla: When a fix treats the symptom rather than the underlying problem

  51. Are we logging PII here? That could be a compliance issue.

    ¿Estamos registrando información personal aquí? Eso podría ser un problema de cumplimiento.

    Cuándo usarla: When personally identifiable information might be written to logs

  52. The observer isn't being removed on deallocation — this will cause issues.

    El observador no se está eliminando en la desasignación — esto causará problemas.

    Cuándo usarla: When notification observers or event listeners aren't properly cleaned up

  53. Let's use a factory method instead of this complex constructor.

    Usemos un método factory en lugar de este constructor complejo.

    Cuándo usarla: When object creation logic is complex and should be encapsulated

  54. This loop creates a new database connection on every iteration — that's going to be a performance bottleneck.

    Este bucle crea una nueva conexion a la base de datos en cada iteracion — eso va a ser un cuello de botella de rendimiento.

    Cuándo usarla: Flagging a performance issue where resources are wastefully allocated inside a loop

  55. This user input is being concatenated directly into the SQL query — that's a SQL injection vulnerability.

    Esta entrada del usuario se esta concatenando directamente en la consulta SQL — eso es una vulnerabilidad de inyeccion SQL.

    Cuándo usarla: Flagging a critical security issue where user input is unsafely used in database queries

  56. This optional chain is getting really deep — we should guard against nil earlier in the flow.

    Esta cadena de opcionales se esta haciendo muy profunda — deberiamos verificar nil mas temprano en el flujo.

    Cuándo usarla: Pointing out excessive optional chaining that makes code fragile and hard to read

  57. I notice we're rendering user-submitted HTML without sanitization — that opens us up to XSS attacks.

    Noto que estamos renderizando HTML enviado por el usuario sin sanitizacion — eso nos expone a ataques XSS.

    Cuándo usarla: Flagging a cross-site scripting vulnerability in user content rendering

  58. We should wrap this database transaction in a try-finally block to ensure the connection is always released.

    Deberiamos envolver esta transaccion de base de datos en un bloque try-finally para asegurar que la conexion siempre se libere.

    Cuándo usarla: Noting missing resource cleanup in error handling for database operations

  59. This N+1 query inside the loop is going to kill performance — we should batch the database calls.

    Esta consulta N+1 dentro del bucle va a matar el rendimiento — deberiamos agrupar las llamadas a la base de datos.

    Cuándo usarla: Identifying a classic N+1 query problem in a data access pattern

  60. A Factory method would clean this up nicely instead of having all these constructor variants scattered around.

    Un metodo Factory limparia esto bien en lugar de tener todas estas variantes de constructor dispersas.

    Cuándo usarla: Suggesting the Factory pattern to centralize object creation logic

  61. Have we considered what happens when two users try to update the same record simultaneously?

    Hemos considerado que pasa cuando dos usuarios intentan actualizar el mismo registro simultaneamente?

    Cuándo usarla: Asking about race condition edge cases in concurrent data access

  62. The test is asserting implementation details rather than behavior — this will break every time we refactor.

    La prueba esta verificando detalles de implementacion en lugar de comportamiento — esto se rompera cada vez que refactoricemos.

    Cuándo usarla: Critiquing a test that is too tightly coupled to implementation

  63. This class has too many responsibilities — it handles parsing, validation, and persistence all at once.

    Esta clase tiene demasiadas responsabilidades — maneja parsing, validacion y persistencia todo a la vez.

    Cuándo usarla: Noting a violation of the Single Responsibility Principle

  64. Using string interpolation inside this query makes it vulnerable to injection — please use parameterized queries.

    Usar interpolacion de cadenas dentro de esta consulta la hace vulnerable a inyeccion — por favor usa consultas parametrizadas.

    Cuándo usarla: Flagging an injection vulnerability and suggesting the safe alternative

  65. I see a potential race condition here. What happens if two threads access this map concurrently?

    Veo una posible condición de carrera aquí. ¿Qué pasa si dos hilos acceden a este mapa concurrentemente?

    Cuándo usarla: Flagging thread safety issues in concurrent code

  66. Is this operation idempotent? If the request is retried, will we end up with duplicate records?

    ¿Es esta operación idempotente? Si la solicitud se reintenta, ¿terminaremos con registros duplicados?

    Cuándo usarla: Asking about idempotency when reviewing an API endpoint or data mutation

  67. This N+1 query will be a performance bottleneck once we have more data. Can we use a join or batch fetch?

    Esta consulta N+1 será un cuello de botella de rendimiento cuando tengamos más datos. ¿Podemos usar un join o una búsqueda por lotes?

    Cuándo usarla: Identifying an N+1 query problem in database access code

  68. This async/await chain looks good, but we need a cancellation handler for when the user navigates away.

    Esta cadena de async/await se ve bien, pero necesitamos un manejador de cancelación para cuando el usuario navegue fuera.

    Cuándo usarla: Reviewing async code that should handle task cancellation

  69. The pagination looks correct, but what happens when new items are inserted while the user is scrolling?

    La paginación parece correcta, pero ¿qué pasa cuando se insertan nuevos elementos mientras el usuario está desplazándose?

    Cuándo usarla: Questioning edge cases in a pagination implementation

  70. What is the migration strategy for existing users when we deploy this breaking change?

    ¿Cuál es la estrategia de migración para usuarios existentes cuando despleguemos este cambio incompatible?

    Cuándo usarla: Asking about backward compatibility and migration plans

  71. Could you add aria-live regions to announce these dynamic content updates to assistive technologies?

    ¿Podrías agregar regiones aria-live para anunciar estas actualizaciones de contenido dinámico a las tecnologías asistivas?

    Cuándo usarla: Requesting accessibility improvements for dynamic content

  72. This cache has no eviction policy. It will grow unbounded over time and eventually cause memory issues.

    Esta caché no tiene política de desalojo. Crecerá sin límites con el tiempo y eventualmente causará problemas de memoria.

    Cuándo usarla: Identifying a memory leak risk in a caching implementation

  73. We should use cursor-based pagination instead of offset-based. Offset pagination is unreliable with frequently changing datasets.

    Deberíamos usar paginación basada en cursor en lugar de offset. La paginación por offset no es confiable con conjuntos de datos que cambian frecuentemente.

    Cuándo usarla: Recommending a better pagination approach

  74. This shared mutable state between threads needs a proper synchronization mechanism.

    Este estado mutable compartido entre hilos necesita un mecanismo de sincronización adecuado.

    Cuándo usarla: Flagging unsafe concurrent access to shared state

  75. This log message includes user PII. We need to redact or hash sensitive fields before logging.

    Este mensaje de log incluye PII del usuario. Necesitamos redactar o hashear campos sensibles antes de registrar.

    Cuándo usarla: Flagging privacy concerns in logging statements

  76. This endpoint accepts user input but does not sanitize it. We are vulnerable to injection attacks here.

    Este endpoint acepta entrada del usuario pero no la sanitiza. Somos vulnerables a ataques de inyección aquí.

    Cuándo usarla: Flagging a security vulnerability from unsanitized input

  77. This await call is inside a for loop. Can we use Promise.all or TaskGroup to parallelize these requests?

    Esta llamada await está dentro de un for loop. ¿Podemos usar Promise.all o TaskGroup para paralelizar estas solicitudes?

    Cuándo usarla: Suggesting parallel execution instead of sequential async calls

  78. This retry logic has no exponential backoff. Rapid retries could overwhelm the downstream service.

    Esta lógica de reintentos no tiene backoff exponencial. Los reintentos rápidos podrían abrumar al servicio downstream.

    Cuándo usarla: Suggesting resilience patterns for network retry logic

  79. We need to handle the case where the API returns a 429 status. Without rate-limit handling, we will keep hammering the server.

    Necesitamos manejar el caso donde la API devuelve un estado 429. Sin manejo de límite de tasa, seguiremos golpeando el servidor.

    Cuándo usarla: Identifying missing rate-limiting response handling

  80. The approach is sound, but I think we should add a database migration script to handle the schema change safely.

    El enfoque es sólido, pero creo que deberíamos agregar un script de migración de base de datos para manejar el cambio de esquema de forma segura.

    Cuándo usarla: Requesting a migration strategy for database changes

  81. This extension adds a lot of methods to a system type. Can we scope these to a custom namespace to avoid collisions?

    Esta extensión agrega muchos métodos a un tipo del sistema. ¿Podemos limitarlos a un namespace personalizado para evitar colisiones?

    Cuándo usarla: Suggesting namespacing to avoid conflicts with system extensions

  82. The structured concurrency here is well done. Using a task group keeps the lifetime of child tasks well-scoped.

    La concurrencia estructurada aquí está bien hecha. Usar un task group mantiene el ciclo de vida de las tareas hijas bien delimitado.

    Cuándo usarla: Praising proper use of structured concurrency patterns

  83. We should add request tracing spans here so we can see where the latency is coming from in the distributed trace.

    Deberíamos agregar spans de rastreo de solicitudes aquí para poder ver de dónde viene la latencia en el trace distribuido.

    Cuándo usarla: Requesting better observability with distributed tracing

  84. The pagination cursor should be opaque to the client. Exposing internal IDs leaks implementation details.

    El cursor de paginación debería ser opaco para el cliente. Exponer IDs internos filtra detalles de implementación.

    Cuándo usarla: Suggesting better API design for pagination cursors

  85. The generic constraint here is too restrictive. Using a protocol conformance instead of a concrete type would make this more flexible.

    La restricción genérica aquí es demasiado restrictiva. Usar conformidad de protocolo en lugar de un tipo concreto lo haría más flexible.

    Cuándo usarla: Suggesting a more flexible generic constraint

  86. We need to make sure this write operation and the subsequent read are within the same transaction to avoid inconsistencies.

    Necesitamos asegurar que esta operación de escritura y la lectura posterior estén dentro de la misma transacción para evitar inconsistencias.

    Cuándo usarla: Flagging potential data consistency issues without transaction boundaries

  87. This mutation is not atomic. If the process crashes between these two writes, we will have inconsistent state.

    Esta mutación no es atómica. Si el proceso falla entre estas dos escrituras, tendremos estado inconsistente.

    Cuándo usarla: Identifying atomicity concerns in data mutation

  88. Can we add a circuit breaker pattern here? If the external service goes down, we should fail fast instead of queuing up requests.

    ¿Podemos agregar un patrón circuit breaker aquí? Si el servicio externo se cae, deberíamos fallar rápido en lugar de encolar solicitudes.

    Cuándo usarla: Suggesting resilience pattern for external service calls

  89. Since this API is consumed by mobile clients, we should version it now before it becomes a breaking change later.

    Ya que esta API es consumida por clientes móviles, deberíamos versionarla ahora antes de que se convierta en un cambio incompatible después.

    Cuándo usarla: Suggesting API versioning for forward compatibility

  90. The actor isolation here prevents data races, but we should verify that the async let does not capture self strongly and cause a retain cycle.

    El aislamiento de actor aquí previene carreras de datos, pero debemos verificar que el async let no capture self fuertemente y cause un ciclo de retención.

    Cuándo usarla: Reviewing actor-based concurrency for memory safety

  91. Have we verified this endpoint is idempotent? The client SDK retries on network timeout, so we could get duplicate calls.

    ¿Hemos verificado que este endpoint es idempotente? El SDK del cliente reintenta en timeout de red, así que podríamos recibir llamadas duplicadas.

    Cuándo usarla: Verifying idempotency for an endpoint with retry logic

  92. The dependency graph here is circular. Module A depends on Module B which depends on Module A. We need to introduce a protocol to break the cycle.

    El grafo de dependencias aquí es circular. El Módulo A depende del Módulo B que depende del Módulo A. Necesitamos introducir un protocolo para romper el ciclo.

    Cuándo usarla: Identifying circular dependency and suggesting a solution

  93. This WHERE clause is building a raw SQL string from user input. We need parameterized queries to prevent SQL injection.

    Esta cláusula WHERE está construyendo una cadena SQL cruda a partir de la entrada del usuario. Necesitamos consultas parametrizadas para prevenir inyección SQL.

    Cuándo usarla: Flagging a SQL injection vulnerability

  94. The Sendable conformance is missing on this struct that crosses actor boundaries. The compiler will flag this in strict concurrency mode.

    Falta la conformidad con Sendable en esta struct que cruza límites de actor. El compilador marcará esto en modo de concurrencia estricta.

    Cuándo usarla: Noting missing Sendable conformance for actor isolation safety

  95. The offset-based pagination will return wrong results if items are deleted between page requests. Let us handle that edge case.

    La paginación basada en offset devolverá resultados incorrectos si se eliminan elementos entre solicitudes de página. Manejemos ese caso borde.

    Cuándo usarla: Identifying a data consistency bug in pagination

  96. This composite index covers three columns, but the query only uses two of them. The third column adds write overhead without benefiting reads.

    Este índice compuesto cubre tres columnas, pero la consulta solo usa dos de ellas. La tercera columna agrega sobrecarga de escritura sin beneficiar las lecturas.

    Cuándo usarla: Optimizing database indexes for actual query patterns

Otras situaciones del día a día de un dev

← Inglés para programadores

Llévalo en el celular

En la app Devlingo recibes 10 frases nuevas al día, cada una con contexto real, pronunciación y ejemplos, y el widget muestra la frase del día en la pantalla de inicio del iPhone.

Preguntas frecuentes

Lo que más se pregunta sobre el tema, respondido con la fuente.

¿Qué significa nit en un code review?
Nit (de nitpick) marca un comentario pequeño, de estilo, que no impide aprobar. Ej.: nit: could we rename this variable?
¿Cómo sugiero un cambio sin sonar brusco en inglés?
Cambia el imperativo por una pregunta o sugerencia: Have you considered…?, What if we…?, I'd suggest….
DevlingoAprende frases y fluidez
Usar sin instalarDescargar