Es de sobras conocido que la estimación es una de las áreas más problemáticas en todo proyecto de software. Pero en esta entrada no quiero centrarme en los problemas más habituales cuando estimamos (cómo conseguir estimaciones lo más cerca de la realidad posible), sino en un punto directamente relacionado con SCRUM. Un punto en el que he visto, muchas veces, que hay confusión.
Por si fuera poco con los problemas intrínsecos de la estimación, cuando estamos empezando a trabajar con SCRUM surgen dudas, que yo llamo "logísticas", sobre cómo vamos a estimar. ¿En horas? ¿En puntos de historia? ¿Qué relación hay entre las unidades de estimación y estimar en tareas o historias de usuario?
Voy a explicar mi punto de vista, basado en mi experiencia. Pero quiero dejar claro que no hay un método estándar. Es cierto que algunas herramientas (estoy pensando en TFS) pueden predeterminar cómo entrar las estimaciones (por ejemplo en horas), pero no hay una fórmula mágica. Y esto es bueno, porque es flexible.
SCRUM te da la posibilidad de adaptar cómo estimamos a nuestra necesidad. En general, las historias de usuario se estiman en puntos de esfuerzo mientras que las tareas en horas.
Las historias de usuario forman el Product Backlog. Del Product Backlog, las escogeremos para nuestro Sprint (el Product Backlog está ordenado por prioridades del negocio) y compondremos con él el Sprint Backlog.
En la reunión de Sprint Kickoff, analizaremos las historias de usuario y refinaremos su estimación. Aquí es donde yo suelo descomponer las historias de usuario en tareas y asignar horas.
Es decir:
Las estimaciones de las historias de usuario son más globales y las utilizo para dar estimaciones al negocio. Es muy útil en el caso que el negocio necesite tener buenas estimaciones del proyecto en sí: cuando, por ejemplo, es crítico cumplir plazos.
Las estimaciones en horas por tareas las utilizaré para controlar el Sprint, con el Burndown Chart.
Esta es una forma de hacerlo, pero no la única. Por ejemplo, en un proyecto que realicé tuvimos suficiente con las estimaciones de historias de usuario, puesto que eran pequeñas, (de 1 o 2 días de duración), y no valía la pena dividirlas en tareas. Como en ese caso tampoco utilizábamos ninguna "herramienta sofisticada" para llevar el tracking del proyecto (nuestro Sprint Backlog era un fichero excel y nuestro Burndown Chart, un gráfico derivado de dicho excel), pudimos cambiar nuestro "modus operandi" y trabajar con puntos de esfuerzo sin mucha complicación.
En general es importante entender los conceptos básicos (historias de usuario, tareas, etc.), pero es más importante aún saber adaptarlas a tu entorno (necesidades del negocio, equipo, etc.). Y, muchas veces, cambiar: A veces el equipo puede tener dificultad estimando en puntos de esfuerzo por estar muy habituado a estimar en horas, mientras que otras veces, al cabo de poco, estimar en puntos de esfuerzo resultará más afinado.
It is widely known that estimation is one of the most problematic areas in any software development project. But in this post, I don't want to focus on the most common problems of estimation (how to obtain estimates as close to reality as possible), but on a question related to SCRUM that I've seen many times.
As if the problems of estimating were not difficult enough, when we begin to work with SCRUM a lot of questions on how to estimate arise. Questions which I like to call "logistical". Do we estimate in hours? In history points? What is the relationship between tasks and user stories?
Let me explain my point of view, based on my experience. But let me make clear that there is no standard method. It is true that some tools (I'm thinking TFS) can predetermine how to set the estimates (for example in hours), but there is no magic formula. And this is good, because it is flexible.
SCRUM gives you the ability to adapt how you estimate to your real needs. In general, user stories are with history points while tasks are estimated in hours.
User stories compose the Product Backlog. Then, every Sprint some user stories are chosen and compose the Sprint Backlog (the Product Backlog is sorted by business priorities).
In the Sprint Kickoff meeting, the user stories will be analyzed and assigned, and the estimations will be "refined" to make them more accurate. This is when I usually break the user stories into tasks and assign hours to them.
That is:
Estimates of user stories (history points) are more global and I use them for the business. This is very useful when the business has the need for good estimates of the project itself: When, for example, is critical to meet deadlines.
Estimates of tasks (hours) are more specific and I use them to track the Sprint (Burndown Chart).
As said, this is a scheme that has worked for me, but it is not the only one. In one project I worked, we had enough with user stories estimates, since they were small, (1 or 2 days), and it was not worth splitting them into tasks. As in that case we used no "sophisticated tool" to track the project (our Sprint Backlog was an excel file and our Burndown Chart, a graph produced from that excel), we changed our "modus operandi" and worked with history points without much hassle. But, I repeat, each case is unique.
In general, it is important to understand the basics (user stories, tasks, etc.), but it is more important to learn how to adapt it to your environment (business needs, team, etc.). And don't be afraid to change: Sometimes, the team might have difficulty estimating with history points as they are used to estimate in hours, while other times, after a short period of time, estimation with history points becomes simpler and more accurate.
Cualquier persona que empiece a leer sobre SCRUM se dará cuenta de la importancia de que las iteraciones (o sprints) tengan una duración determinada a lo largo de un proyecto. Fijar la duración de los sprints es uno de los pocos principios de SCRUM. Por ejemplo, no se puede variar, a medio proyecto, los sprints de 2 a 3 semanas, y después a 2 de nuevo. Crea confusión en el cliente y en el mismo equipo, y no ayuda a establecer un buen ritmo de trabajo.
Ahora bien, algo más complicado es decidir cuál es la mejor duración en cada caso.
Cuando me preguntan qué duración es la adecuada para una iteración SCRUM, siempre respondo que “depende del caso”. Es una respuesta imprecisa, con lo que quiero aprovechar este post para dar mis razones para no aconsejar una duración estándar de un sprint (sin conocer los detalles del proyecto).
Cuando estamos implantando SCRUM por primera vez, mi sugerencia (¡para esto y para tantas otras cosas!) es tomarnos nuestro tiempo entendiendo el entorno. Llegar como consultor expertísimo en SCRUM e intentar aplicar el proceso que te ha funcionado en otras ocasiones a un nuevo “ecosistema” es una receta para el fracaso. Muchas veces, la implantación de SCRUM se servirá de un proyecto prototipo. Considero aceptable variar la duración del sprint después de dicho prototipo (¿para qué nos sirven los proyectos prototipos si no es para probar?). Pero, cuando se haga un despliegue de la metodología a nivel departamental o de toda la compañía (o sea, incluyendo múltiples proyectos), sería adecuado mantener sprints más o menos similares, porque ayuda a una mejor comprensión a nivel organizativo de SCRUM y de cuando esperar resultados.
En general, se debería tener en cuenta:
Procesos organizativos y entorno
¿Es un producto interno o para un cliente externo?
¿Qué procesos de autorización existen para ponerlo en producción? Por ejemplo, los complicados procesos que pueden existir en un entorno bancario o en según qué clientes externos, incluyendo departamentos de operaciones, etc.
Disponibilidad del cliente
Número de usuarios
Necesidades de formación cada vez que se lanza una nueva release
Localización / disponibilidad en general
Naturaleza de la solución (producto realizado)
¿Cuán urgente es la necesidad de nuevas funcionalidades?
Madurez del equipo de desarrollo
Conocimiento de SCRUM, cómo de multidisciplinares sean sus miembros, etc.
¿Cuál es la capacidad de utilización / reacción / tolerancia de los usuarios a las nuevas iteraciones?
En resumen, no es lo mismo realizar un producto para un grupo de usuarios internos que lo conozcan bien y sólo necesiten una mínima formación que no, por ejemplo, una release de software bancario para un cliente externo en el que son necesarios un par de días de pruebas más formación y documentación para los usuarios, etc. En el primer caso se podría pensar en iteraciones de incluso 1 semana, en el segundo, de 1 mes. Y según mi opinión, ninguna sería más correcta que la otra.
Anyone who starts reading about SCRUM will realize the importance that iterations (or sprints) have a fixed duration during a project. It is one of the few SCRUM principles to maintain a fixed sprint duration. For example, it is not a good idea to have sprints of 2 weeks and, in the middle of a project, change them to 3 weeks, only to change them back to 2 weeks afterwards. It creates confusion in the customers and it does not help to establish a good pace within the development team.
But to decide this sprint duration is somewhat more complicated.
When I am asked about what is the appropriate duration for an iteration in SCRUM, I always reply that "it depends on the case". It's a vague answer, so I will use this post to explain my reasons behind not recommending a standard duration of a sprint (without knowing the details of the project).
When you first implement SCRUM, my suggestion (for this and many other things!) is to take your time and understand the environment. Being hired as a SCRUM coach and try to apply the same process that has worked for you in the past to a new "ecosystem" is a recipe for failure. Many times, the implementation of a SCRUM project will use a prototype. I consider acceptable to vary the length of the sprint after this prototype (why do we use prototypes, if not to experiment?). But, when deploying SCRUM to other departments or even company-wide (i.e., including multiple projects), you should have defined similar sprints. It helps the organisation to understand better how SCRUM works, and what to expect.
In general, when deciding sprint duration, you should consider:
Organizational processes and environment
Are you building an internal product or do you have external customers?
What authorisation processes exist? How do things get deployed into Production? For example, the complicated processes that exist in banking, operation departments procedures, etc.
Customer Availability
Number of users
Training needs whenever a new release is launched
Location / availability in general
Nature of the solution (product)
How urgent is the need for new features?
Maturity of the development team
Knowledge of SCRUM, skills and competencies of the members, etc.
What is the reaction / tolerance of users to new iterations?
In summary, it is not the same to develop a product for a group of internal users who know it well and need basic or no training at all, than building software for external customers who need a couple of days of testing plus training and user documentation, etc. In the first case we could think of 1-week iterations in the second case, 1-month iterations. And in my opinion, one option won’t be more correct than the other.
El tema de cómo testear software siempre levanta mucha polémica, pero cuando entramos en un desarrollo Agile, hay además bastante confusión. La pregunta que he escuchado en más ocasiones es la de: ¿Cómo vamos a involucrar a un testeador desde un principio, si el desarrollo no está acabado?
Para resolver esta duda, hay que empezar mencionando que Agile es una metodología que pone mucho énfasis en la calidad. La calidad entendida no sólo como calidad del código (sin bugs, bien diseñado, etc.) sino como proceso global: Lo desarrollado es útil al negocio, responde a las expectativas cambiantes, se pone en producción en iteraciones relativamente cortas, etc.
Por eso, porque la calidad es algo que se mantiene en todo momento, un testeador se involucra desde el principio de la iteración. No se pone a trabajar sólo los dos últimos días del ciclo (como he oído en algunas ocasiones).
En general, un testeador:
Colabora con el Product Owner para definir las condiciones de aceptación.
Muchas veces, en esta fase se descubren "puntos oscuros" que ni el Product Owner tiene del todo claro. ¡Considero que esta parte es vital!
El testeador se encarga de que las user stories sean claras y tengan sentido. Es en esta parte donde cobra importancia lo mencionado antes de la calidad no sólo entendida como código bien escrito.
Crea los planes de test, los casos de test y los planes de regresión, a partir de dichas condiciones de aceptación.
Se encarga de los entornos de test y del proceso de build (y muchas veces de los repositorios de código).
Se encarga de la automatización del test.
Testea.
Informa de los resultados para estadísticas, análisis, etc. ¡Los testeadores suelen ser una parte importante de las sprint retrospective!
Por supuesto, hay múltiples variaciones, dependiendo del perfil de los testeadores con los que se cuente, pero los puntos mencionados antes son los que yo considero básicos cuando se habla de test en un entorno Agile.
How to test software is always a tricky subject, but when you develop software using Agile methodologies, often there are also misunderstandings. The question I’ve heard more often is: How are we going to involve a tester from the beginning of the cycle, if the code is not ready?
To answer this question, we must keep in mind that Agile is a methodology that puts great emphasis in quality. Quality understood not only as code quality (no bugs, code well designed, etc.) but as a global process: The code is useful to business, responds to changing expectations, is delivered to production in relatively short iterations, etc.
Therefore, because quality is something we focus in all the time, a tester is involved from the beginning of the iteration. The tester does not work only during the last two days of the cycle (as I have heard in some cases!).
In general, a tester:
Collaborates with the Product Owner to define the acceptance criteria.
Often, during this, "dark areas" that not even the Product Owner is clear on are discovered. I think this part is vital!
The tester ensures that the user stories are clear and meaningful. Here is where the concept of quality not only as well-written code makes more sense.
Creates the test plan, test cases and regression test plans, based on these acceptance criteria.
Is responsible for test environments and build process (and often code repositories).
Is responsible for test automation.
Tests.
Gathers and reports the results for statistics, analysis, etc. Testers are often an important part of the sprint retrospective!
Of course, there are multiple variations to this depending on the skills of the testers in the team, but I consider the responsibilities mentioned above as the basic ones when we are in an Agile development environment.
Hace poco me pidieron crear un plan para introducir una metodología ágil (SCRUM) a nivel de toda una organización. Puesto que resumí en un plan de 5 pasos mis experiencias (y las mejores prácticas de otros autores), quiero compartirlo en el blog por si a alguien le resulta útil.
Así que, ¿quieres cambiar tu organización? Si eres un agile coach o evangelist, yo te sugeriría...
1) Estudia la situación
Identifica quién está a favor y quién en contra: ¿Quién quiere el cambio? Y, por otra parte... ¿qué es lo que se quiere cambiar? A veces, algunas personas sólo quieren dejar de hacer "tanta documentación", otros quieren "una gestión más libre", mientras que otros quieren... todo lo contrario!
Establece espacios abiertos, cuestionarios, foros. En este punto, toda la información que se obtenga es extremadamente valiosa.
Obtén ayuda! Lo ideal es conseguir consultores externos (estos consultores no tienen miedo a ser despedidos y suelen decir lo que piensan!) y buenos agile trainers (a veces, los consultores serán los trainers!). Aportarán experiencia (ellos ya han estado allí antes) y darán confianza al equipo cuando tenga problemas.
Establece las expectativas correctas: Seas tú o un consultor externo, se necesitará algún tiempo para analizar la situación y diseñar la mejor estrategia. No se pueden cambiar las cosas desde el primer minuto!
2) Empieza con un piloto
Elije el equipo adecuado para hacer el piloto. No escojas un equipo que ofrezca resistencia o un equipo con miedo al cambio. Elije un equipo que haga del piloto una historia de éxito. La idea del piloto es convencer al resto de la organización que SCRUM funciona! El primer paso (análisis) te ayudará a elegir el equipo adecuado.
3) Comunica y capacita
Establece un proceso de comunicación y formación para otros equipos desde el principio.
Comunicación:
Haz la buena información más visible que la mala información, con actualizaciones por correo electrónico, presentaciones, etc. Da a conocer "quick wins" y pequeñas victorias!
Formación:
Prepara formaciones basadas en historias de éxito de lo que está ya ocurriendo. La idea es que los otros equipos participen en el cambio y quieran empezar con SCRUM.
A veces, además de la formación de los equipos, es útil designar a "champions" dentro de cada equipo, personas que te ayudarán a hacer el cambio.
Forma a los altos directivos y mandos medios por separado. Realizan funciones distintas y tienen problemas muy diferentes!
Equipo SCRUM de introducción:
Algunos autores abogan por un equipo de gerentes diseñado para "eliminar los obstáculos" en el proceso mismo. Yo estoy a favor. Si estamos llevando a cabo un cambio en toda la organización, tendremos que quitar "blockers" por el camino, así que, ¿por qué no utilizar el paradigma de SCRUM a un nivel superior?
4) Despliega SCRUM a otros equipos gradualmente
En primer lugar, identifica la velocidad correcta de despliegue (por ejemplo, cuantos equipos por mes, etc)
Poco a poco ve desplegando SCRUM a los otros equipos, en consonancia con el programa de comunicación y de formación mencionados en el paso 3.
No te olvides del departamento técnico! A menudo es el punto de fallo de estas implementaciones!
5) Comunicación final
A medida que se acerca el final del despliegue a nivel organizativo... prepara bien la comunicación final de resultados: Ha sido difícil, lo que queda seguirá siendo difícil (SCRUM es un cambio constante!), pero los buenos resultados superarán los problemas!
I was recently asked to put together a plan to introduce Agile methodology (SCRUM) organisation-wide. Since I summarised my experiences (and best practices from other authors), I thought it would be useful to share it.
So, do you want to change your organisation? If you are an agile coach or evangelist and you find yourself in that scenario, I would suggest you...
1) Study the situation
Identify supporters: Who wants to change? And, moreover… what do they want to change? Sometimes, some people just want to drop "documentation", others want "more self-management", while others… want just the opposite!
Set up open spaces, questionnaires, forums. At this point, all information is extremely valuable.
Get help! Ideally, get consultants in-house (consultants are not afraid of being "made redundant" and speak their mind!) and good agile trainers (sometimes, the consultants will be the trainers!). They will bring experience (they have been there before) and will give confidence to the team when they encounter problems.
Set the right expectations: Consultant(s) will need some time to analyse the situation and design the best strategy. Don’t expect them to go changing things from the very first minute!
2) Start with a pilot
Choose the right team to do the pilot. Don’t go for a team that offers resistance, don’t go with a team afraid of change. Choose a team that will make the pilot a success story – The idea of the pilot is to convince the rest of the organisation that SCRUM works! The first step (analysis) should help you in choosing the right team.
3) Communicate and train
Set up a communication and training process for other teams from the beginning.
Communication:
Make good information more visible than bad information, with email updates, presentations, etc. Publicize quick wins and small victories!
Training:
Aligned with communication, prepare trainings based on success stories happening already. The idea is to involve other teams in the change and make them want to start with SCRUM.
Sometimes, apart from training the teams, it does help to designate "champions" within the teams, people who will help you making the change happen.
Communicate and train top managers and middle managers separately. They perform different functions and have very different problems!
SCRUM introduction team:
Some authors also advocate for a team of managers designed to "remove impediments" in the process itself. I think this can be very valuable! If you are undertaking an organisation-wide change, you will need to remove blockers along the way, so why not use the SCRUM paradigm at a higher level?
4) Gradually roll out SCRUM to other teams
First, identify the correct speed of rollout (how many teams per month, etc.)
Gradually roll out SCRUM, aligned with the communication and training program mentioned in step 3.
Don’t forget technical dept.! It is often a point of failure for implementations...
5) Final communication
As the end of the rollout approaches, prepare for properly communicating the results: It has been hard, it will still be hard (SCRUM implies continuous change!), but the good results are outweighing the problems!