About Robot name

Abierto
#1,673 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Documentación
Claridad
Necesita aclaración
Estado de actividad
Estancado

Línea de trabajo

Empieza revisando las instrucciones de Robot name problem y las interpretaciones descritas en este issue. El trabajo termina cuando la especificación resuelve claramente si los nombres deben ser únicos solo entre los robots activos o entre todas las asignaciones, incluido el caso en que no haya ningún nombre disponible.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Instructions for the "Robot name" problem ask for two independant things:

  • at any time, each robot name has to be unique;
  • when reset, a robot gets a new random name.

From that, what I understand is that:

  • when creating a robot, we have to check for current names of robots currently up;
  • when reseting a robot, we do the same, given that obviously this one is currently up and has a current name.

Most solutions I saw are checking against all already given names: they not only ensure that names are unique in "space", but also in "time".
We may think that's not a big deal, but something else makes this kind of solution unsatisfying. From instruction, we may deduce there are 676000 possibles names:

  • so a right implementation should handle the case were there is no more name to give, to avoid bad things;
  • in a strict interpretation, that means 676000 possible different robots, while in the mainstream one it's about 676000 names attribution, which makes a big difference.

To me, the strict interpretation is more interesting. Anyway, instructions should be refined to help people to get it, or they should be reformulated to reflect how most people currently understand them (still an interesting problem).

Lenguaje dominante
Ruby
Estrellas
362
Forks
566
Merge medio
15 h 13 min
PR fusionados (30 d)
8

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de exercism/problem-specifications

Todos los issues de exercism/problem-specifications

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.