Un punto importante, pero recordado sólo con el propósito de que lea completa la reflexión de James Ward, que lo merece.Monolithic Releases Suck
Unless you work for NASA there is no reason to have release cycles longer than two weeks. It is likely that the reason you have such long release cycles is because a manager somewhere is trying to reduce risk. That manager probably used to do waterfall and then switched to Agile but never changed the actually delivery model to one that is also more Agile. So you have your short sprints but the code doesn’t reach production for months because it would be too risky to release more often. The truth is that Continuous Delivery (CD) actually lowers the cumulative risk of releases. No matter how often you release, things will sometimes break. But with small and more frequent releases fixing that breakage is much easier. When a monolithic release goes south, there goes your weekend, week, or sometimes month. Besides… Releasing feels good. Why not do it all the time?
Moving to Continuous Delivery has a lot of parts and can take years to fully embrace (unless like all startups today, you started with CD). Here are some of the most crucial elements to CD that you can implement one-at-a-time:
There are a ton of details to these that I won’t go into here. If you’d like to see me expand on any of these in a future blog, let me know in the comments.
- Friction-less App Provisioning & Deployment: Every developer should be able to instantly provision & deploy a new app.
- Microservices: Logically group services/apps into independent deployables. This makes it easy for teams to move forward at their own pace.
- Rollbacks: Make rolling back to a previous version of the app as simple as flipping a switch. There is an obvious deployment side to this but there is also some policy that usually needs to go into place around schema changes.
- Decoupled Schema & Code Changes: When schema changes and code changes depend on each other rollbacks are really hard. Decoupling the two isolates risk and makes it possible to go back to a previous version of an app without having to also figure out what schema changes need to be made at the same time.
- Immutable Deployments: Knowing the correlation between what is deployed and an exact point-in-time in your SCM is essential to troubleshooting problems. If you ssh into a server and change something on a deployed system you significantly reduce your ability to reproduce and understand the problem.
- Zero Intervention Deployments: The environment you are deploying to should own the app’s config. If you have to edit files or perform other manual steps post-deployment then your process is brittle. Deployment should be no more than copying a tested artifact to a server and starting it’s process.
- Automate Deployment: Provisioning virtual servers, adding & removing servers behind load balancers, auto-starting server processes, and restarting dead processes should be automated.
- Disposable Servers: Don’t let the Chaos Monkey cause chaos. Servers die. Prepare for it by having a stateless architecture and ephemeral disks. Put persistent state in external, persistent data stores.
- Central Logging Service: Don’t use the local disk for logs because it prevents disposability and makes it really hard to search across multiple servers.
- Monitor & Notify: Setup automated health checks, performance monitoring, and log monitoring. Know before your users when something goes wrong.
Comentarios, discusiones, notas, sobre tendencias en el desarrollo de la tecnología informática, y la importancia de la calidad en la construcción de software.
domingo, febrero 22, 2015
James Ward sobre Java
jueves, agosto 25, 2011
ERPs e innovación (a propósito de gerenciamiento)
Now CEO Apotheker’s plan for HP’s growth is selling ERP software from a third-tier competitor. ERP (enterprise resource planning) applications like SAP and Oracle are viewed today as the remarkably expensive, hard to install, hard to maintain, hard to modify, monolithic, bureaucracy creating, innovation killing systems they were designed to be. ERP applications were created to force companies, functions and employees to replicate previous decisions, in the hopes of increasing control (especially financial control) and cutting operating cost. Not to learn, or do anything new. They were designed to create rigidity, and are completely unable to enhance flexibility, market responsiveness and growth. ERP was the emerging high-tech “solution” in 1992!
It is clear Mr. Apotheker is returning to his previous personal success, as CEO of SAP. He isn’t looking to the future and how he can meet new, unmet needs. He’s investing in what he knows, from his past. His focus on “business solutions” is his way of pushing HP to be more like SAP – only 2 decades too late, against enormously well funded competitors, in a low-growth marketplace looking for new solutions. Too bad for HPs investors, employees and suppliers.
miércoles, octubre 27, 2010
TPS: su historia en un gráfico
El original de esta historia tiene dos fuentes: la línea histórica textual publicada en Superfactory (ya comentada en otro momento aquí), y el grafico generado sobre su base por Rick Ladd.
sábado, junio 20, 2009
MDA + Scrum, un caso de uso
Pues bien, dejando a salvo esta objeción, quiero apuntar a la que prepararan los colegas de I2E para el curso de especialista universitario Java Enterprise de la Universidad de Alicante. Tengo dos razones: una, es la segunda vez que I2E presenta en este curso casos prácticos de uso de una herramienta y del estándar MDA. Sé por el modo en que muchas personas llegan a este sitio, que estos casos son buscados para ver en la vida real la construcción de software guiado por modelos.
La segunda razón es que en este caso acompañan el desarrollo de la aplicación con la explicación del modo en que manejan el proceso usando Scrum. En el último tiempo, curiosamente encuentro que muchos equipos y personas que usan algún sistema guiado por modelos (MDD/MDE), dudan al momento de estimar posible usar MDD con métodos ágiles. Particularmente, de la posibilidad de efectuar iteraciones frecuentes. Volveremos sobre ésto, que creo que más bien revela fallos puntuales de algunos esquemas de trabajo.
En fin, retomando la presentación, se la puede seguir en Slideshare: la actual, y la anterior, que alguna vez se mencionó antes aquí. Probablemente, si su lectura despierta preguntas, Emilio o José Luis podrán ampliar su contenido.
lunes, marzo 09, 2009
La importancia de la gente en el sistema de Toyota
Este último aspecto progresivamente es el que más me interesa, siendo observador frecuente de "sistemas" de gestión, por llamarlos de alguna manera, que difieren mucho de buenas prácticas productivas. Observaciones logradas en años de cambios de mano de empresas argentinas, de sus propietarios familiares originarios a consorcios que las convirtieran en commodities, con administradores recién llegados que sólo piensan en bajar costo o maquillarlas para una reventa rápida. Empresas familiares que, por otra parte, sucumbieron con facilidad ante el primer cambio de generación, o ante la competencia directa de una empresa multinacional. También puntualizaciones anotadas sobre la empresa chilena, en general familiar, jerárquica, basada en estructuras de confianza, con poca voz de las personas que la integran fuera de esa organización informal. Y en estos últimos años, un volúmen de información sobre la empresa española que no acabo de procesar, pero que en múltiples ocasiones se aparece ineficiente, inconducente. No por casualidad es un lugar común la afirmación de la baja productividad en España. Muchas veces, hablando con otros colegas, he dicho que debiera abrir un cuaderno para anotar malas prácticas. Quizá lo sean estas notas.
A propósito de un reportaje a Steven Spear, del Harvard Business School, quisiera recordar una perogrullada: la gente es importante en una organización (de lo que hemos hablado antes).
En el título de esta nota se habla de Toyota y la gente con la que produce. Cuando se habla de su caso, se entiende que se habla de la empresa, sus proveedores, y sus agentes comerciales y de servicio, porque su sistema los integra, ya que parten del criterio que para aplicar su justo-a-tiempo (Just in Time, JIT), es necesario que todo el proceso de producción, comercialización y seguimiento esté integrado y colabore para que dé resultado. En todo este proceso, la participación de cada integrante de la cadena es fundamental. Cada uno es responsable por su parte del trabajo, asegurando que el producto pase sin defectos. Cada persona debe tener múltiples aptitudes, porque contrariamente a las prácticas tradicionales, no existen especialistas, sino personas capaces de hacer distintas actividades. Y además, cada persona tiene la capacidad de detener la producción si lo considera necesario debido a un fallo o defecto.
El sistema de Toyota fue estudiado y copiado desde hace tiempo, pero, al menos en el caso de sus competidoras americanas, el objetivo de mejora no es logrado, con poca asimilación de sus participantes. Asimismo, en distintas lecturas de papeles sobre TPS, parecería que se escapa el rol que la gente cumple en el sistema.
Spear puntualiza este aspecto durante el reportaje de Sarah Jane Johnston (How Toyota Turns Workers Into Problem Solvers):
(...) despite Toyota's openness and the genuinely honest efforts by other companies over many years to emulate Toyota, no one had yet matched Toyota in terms of having simultaneously high-quality, low-cost, short lead-time, flexible production over time and broadly based across the system.Spear explica sobre la delegación de responsabilidad:
[qué se ha escapado: ] In essence (...), the people who work in an organization that produces something are simultaneously engaged in collaborative production and delivery and are also engaged in a collaborative process of self-reflective design, "prototype testing," and improvement of their own work systems amidst changes in market needs, products, technical processes, and so forth.It is our conclusion that Toyota has developed a set of principles, Rules-in-Use we've called them, that allow organizations to engage in this (self-reflective) design, testing, and improvement so that (nearly) everyone can contribute at or near his or her potential, and when the parts come together the whole is much, much greater than the sum of the parts.
(...) We've seen that consistently—across functional roles, products, processes (assembly, equipment maintenance and repair, materials logistics, training, system redesign, administration, etc.), and hierarchical levels (from shop floor to plant manager and above) that in TPS managed organizations the design of nearly all work activities, connections among people, and pathways of connected activities over which products, services, and information take form are specified-in-their-design, tested-with-their-every-use, and improved close in time, place, and person to the occurrence of every problem.
We've observed that Toyota, its best suppliers, and other companies that have learned well from Toyota can confidently distribute a tremendous amount of responsibility to the people who actually do the work, from the most senior, expeirenced member of the organization to the most junior. This is accomplished because of the tremendous emphasis on teaching everyone how to be a skillful problem solver.Spear destaca también las distintas características requeridas para gerencias y jefaturas:
(...) We've observed that Toyota, its best suppliers, and other companies that have learned well from Toyota can confidently distribute a tremendous amount of responsibility to the people who actually do the work, from the most senior, expeirenced member of the organization to the most junior. This is accomplished because of the tremendous emphasis on teaching everyone how to be a skillful problem solver.
Como en otras oportunidades se ha comentado, esta confianza en la gente, esa disposición a delegar, y, en el caso de Toyota al menos, el estímulo a proponer, representan una gran diferencia con el estilo que solemos presenciar. El trabajo en equipo, la consulta, el estímulo a la puntualización de defectos, están muy lejos de las prácticas de trabajo con alta rotación (contratación por cortos períodos, reducido equipo propio), la baja importancia dada a la capacitación, la inexistencia de estímulo a la participación, son algunos vicios reiterados en nuestras tierras, con impacto en la productividad.[Pregunta Johnston]Q: What is the role of the manager in this process?
[Responde Spear]A: Your question about the role of the manager gets right to the heart of the difficulty of managing this way. For many people, it requires a profound shift in mind-set in terms of how the manager envisions his or her role. For the team at Aisin to become so skilled as problem solvers, they had to be led through their training by a capable team leader and group leader. The team leader and group leader were capable of teaching these skills in a directed, learn-by-doing fashion, because they too were consistently trained in a similar fashion by their immediate senior. We found that in the best TPS-managed plants, there was a pathway of learning and teaching that cascaded from the most senior levels to the most junior. In effect, the needs of people directly touching the work determined the assistance, problem solving, and training activities of those more senior. This is a sharp contrast, in fact a near inversion, in terms of who works for whom when compared with the more traditional, centralized command and control system characterized by a downward diffusion of work orders and an upward reporting of work status.
Muchas certificaciones de procesos de software, o más simplemente, el diseño de esquemas de manejo del proceso, fallan simplemente por erróneos criterios de gerenciamiento: no es posible que un sector funcione bien, si está encajado en un universo de malas prácticas.
domingo, septiembre 28, 2008
Windows 7 en el camino del Vista?
Es probable que en estos términos, Windows 7 tenga viscisitudes parecidas a las de Vista..."We create feature teams with n developers, n testers, and 1/2n program managers," Sinofsky wrote in a four-page blog that introduced his views on managing large-scale software development. "On average a feature team is about 40 developers across the Windows 7 project."
Based on that arrangement, each feature team would appear to have about 40 developers writing code, an equal number of beta testers -- which Sinofsky separately described as "software development engineers in test" -- and about 20 program managers.
In other words, that would be 2,000 developers creating or testing Windows 7 code, overseen by 500 managers.
Microsoft's public relations firms declined to confirm or clarify those figures.
sábado, junio 14, 2008
Una pequeña demo de un desarrollo basado en MDA
sábado, octubre 20, 2007
JIT desde el punto de vista de la Investigación de Operaciones
Las notas son sobre Justo-a-tiempo (Just-in-time). No se trata de un tema que tenga directa relación con la generación de software, pero tiene múltiples contactos directos e indirectos, aparte de su interés conectado con los criterios de calidad acuñados en Japón. Vinculados a JIT, notas sobre inventarios, planeamiento maestro de producción, planeamiento de requerimiento de materiales, TPS, y algunos temas logísticos o de inventarios desde el punto de vista de investigación operativa. Simplemente un link, pero una cuestión de entusiasmo, al fin.
miércoles, marzo 28, 2007
Más sobre Poppendieck y Lean Manufacturing
In a January 2001 article in Harvard Business Review titled ‘Strategy as Simple Rules’, Kathleen Eisenhardt describes how smart companies thrive in a complex business environment by establishing a set of simple rules which define direction without confining it.[2] She suggests that instead of following complex processes, using simple rules to communicate strategy is the best way to empower people to seize fleeting opportunities in rapidly changing markets.
The 1980’s were a time of profound change in US manufacturing, and the change was guided by a set of simple rules. Simple rules gave guidance to every level of the organization, and got everyone on the same sheet of music. They empowered people at all levels of the organization, because the provided guidance for making day-to-day decisions. With simple rules, work teams were able to continuously improve the processes and products without detailed guidance or complex processes.
The basic practices of Lean Manufacturing and TQM in the 1980’s might be summed up in these ten simple rules:
1. Eliminate Waste
2. Minimize Inventory
3. Maximize Flow
4. Pull From Demand
5. Empower Workers
6. Meet Customer Requirements
7. Do it Right the First Time
8. Abolish Local Optimization
9. Partner With Suppliers
10. Create a Culture of Continuous Improvement
These Lean Manufacturing rules have been tested and proven over the last two decades. They have been adapted to logistics, customer service, health care, finance, and even construction. The application of the rules may change slightly from one industry to the next, but the underlying principles have stood the test of time in many sectors of the economy.
Lean Programming
Recent work in Agile Methodologies, Adaptive Software Development, and Extreme Programming have in effect applied the simple rules of Lean Manufacturing to software development. The results, which we call Lean Programming, are as dramatic as the improvements in manufacturing brought on by the Just-in-Time and Total Quality Management movements of the 1980’s.
sábado, marzo 24, 2007
Mary Poppendieck: cómo se aprendió de Japón
Algunas de sus afirmaciones:
Pregunta: De dónde viene Lean?
Mary: Lean comes from the Toyota Production System which was invented at Toyota for automotive manufacturing in the late 1940s, 1950s, 1960s. We didn’t actually discover how it was working in the US until perhaps the early 1980s, when the idea of "Just-In-Time" manufacturing started competing against other US products, so we started seeing Toyota and other Japanese cars taking market share away. In my industry, which was 3M, we were making video cassettes and all of a sudden we found that Japanese competitors were selling video cassettes for a third of what we could selling for, and less than we could make them for. We were trying to figure out what caused that. It turns out that this concept of Just-In-Time manufacturing was strongly behind what was going on, and later the concept became known as Lean manufacturing.Ante la pregunta de qué es Lean, Mary lo explica en su aplicación original en la industria:
Mary: We’ll talk about Lean in general. The Lean history starts over here in manufacturing. Here the first thing Lean was known as was "the Toyota Production System" (it was the way Toyota learned how to manufacture cars). That became known as Just-In-Time and that how it was known when it came to the US and Europe. Then, in 1990 a book was published "The Machine that Changed the World" - the Story of Lean Production. That’s where the word Lean production came from. They’re all basically the same thing. They’re a way of thinking about manufacturing that allows you to do rapid manufacturing with very low inventory and high variability. Then, if we come down this path there’s something in logistics (warehousing, moving materials between companies) called supply chain management (SCM). SCM is the way that you use Lean in the logistics area. And if we come over here there’s a whole other area which I’ll call Product Development, which is very different than manufacturing and logistics. We now apply Lean thinking principles (not the practices, but the principles) from manufacturing and logistics into Product Development. When you apply Lean into Product Development you get a different way of looking at it. And I believe that software development is a subset of, is like, it’s part of Product Development. When you apply Lean to software development you take the general principles of Toyota production system or Lean and you apply them into the Product Development environment but you don’t use the exact practices that you would use in manufacturing. You have to go back to the first principles of what you’re trying to accomplish and move those into software development.Qué significa "Inventario" aplicado al desarrolo de software:
(...) The main principles behind Lean were articulated by Taiichi Ohno, the person at Toyota who invented the Toyota Production System. The first principle would be the idea of Flow (or Low Inventory, or Just-in-Time). The second one is what I would have to call "expose problems" or "no workarounds". The idea is that you have flow and you have low inventory: it’s like you have a boat on the water and your boat is sailing above these big rocks, which are problems. This is your inventory level here. If you lower your inventory level, at some point you’re going to run into a rock rock and your boat is going to come down and bump into this rock. If you don’t get rid of these rocks when you lower your inventory you’re going to bump into rocks, and crash and burn. The first thing you’re doing is lower your inventory to expose those problems so that you can get rid of them. If you don’t expose problems and stop and fix your problems, then lowering your inventory is just going to crash your boat. You have to do two things: you have flow but you also have no tolerance for abnormality. You just don’t allow defects into your system; you don’t allow things to go wrong. When something wrong happens you stop, you figure out what is causing it, you fix it rather than continuing on and just ignoring it or working around it. These are the two basic principles.
(...) I have seven principles that are the foundation of the way to look at it Lean in software development. The first principle is to eliminate waste. The second is to amplify learning. The third is to delay commitment. The forth is to deliver fast. The fifth is to build integrity into the product. You can’t test it in later; you have to build it with integrity in the first place. The sixth is to engage the intelligence of the people who are doing the work. The last is to optimize the whole system, not just part of it.
Mary:In software development inventory is anything that you’ve started and you haven’t gotten done. It’s "partially done" work. In manufacturing if you start making something and it is in-process, it’s not sold, it is inventory. In development it’s the same thing. If you started developing something and it’s not done, it is inventory. What you’re trying to do Lean software development is the least amount of "partially done" work as possible. You want to go from understanding what you’re supposed to do to having it done and deployed and in somebody’s hands as rapidly as possible.Qué significa "desperdicio" en el desarrollo de software:Tom: "Done" means coded, tested, documented, integrated, "Done", so there’s no more work to do. It is one of the main reasons why Lean approach gives you a more reliable delivery, a more trustworthy delivery. So that instead of finishing activities like requirements, which doesn’t tell you much about how far you are along overall, each piece of work that you do is completely done.
Waste is anything that the customers do not value. If you’re doing something and in the end the customers don’t think it is important for them, then it is waste. There are lots of ways to look at waste. One is: partially done work is waste. Just like in manufacturing, inventory is waste; in software development partially done work is waste. Also, extra features you don’t need right now is waste; stuff that causes delays is waste; things that get in the way of a rapid flow of product are waste. Because customers, when they have a problem they want the problem solved now, and stuff that delays that is waste.Qué significa "demorar el compromiso" (delayed commitments):
En el reportaje hay más: una comparación con XP, con RUP y con CMM, que merecen ser leídas.[1. Anticipado al discutir su método aplicado:]
Well, when you have requirements churn, meaning you’ve done some requirements work and then it needs to be changed, that means you’ve written your requirements too soon. If you don’t wait until it’s time to write those requirements (that’s what I mean by "delayed commitment") that’s when you’re going to have a lot of changes in requirements. On the other hand say you get to testing and you find errors - oh my goodness! Now you have to go back and code-and-fix, and code-and-fix. If you have that cycle in your value stream you’re testing too late. The idea is to move the detailed requirements closer to the coding, the testing closer to the coding, and do it in smaller chunks.
[2. Contestado específicamente:]
Mary: The idea of delayed commitments is not to decide until you have the most information that you possibly can have. Then you make decisions based on that. It’s the idea that (not that you procrastinate and never make decisions) but that you schedule decisions for when you have the most information. For example, pilots are trained that when they have to make a taught choice, they should decide when they have to decide, and not to decide until then because that’s when they have the most information. The military paradigm: when you’re threatened decide when you need to respond and don’t respond ahead of that, wait until that time because then you have the most information. But don’t wait any longer than that. So, it is the idea of scheduling decisions until the last moment when they need to be made, and not making them before that, because then you have the most information.
For example, let’s take user interface. When do you really need to design a user interface? Oftentimes it drives the whole design, but in fact you don’t really need it until you’re about to do your first alpha test. Before that you can be designing the business layer and you can actually put testing in below the user interface and you can be designing all of the other business logic; you can get that done with any kind of interface and in fact you ca drive testing with a automated interface, and then just before you go to alpha testing you decide what you want for your user interface. Then you take it off and at that point in time you figure it out. But up until that point in time you don’t need that. And there are many pieces of decision in software development, where there’s this idea that we have to design the whole thing before we get started. But the fundamental Lean principle in product development is that we should not make any design decisions until we absolutely have to. We really do not want to have decided anything until we need to; and so at the point it time of the decision we should still have 3 options. Still have a couple of middleware options, or still have not decided how we’re going to do the user interface. You wait until you know the most possible information before you make decisions. So, the idea of having a complete detailed spec at the beginning is the exact opposite of the Lean commitment.Tom: At the beginning is the time of maximum ignorance about what you really need. It is hardly the time to make your key commitments. Most of the cost is incurred when you make the first commitments. If you can delay that, you can do a much better job.
Mary: You want irreversible decisions, decisions which you can’t change, to be made as late as you possibly can. Otherwise, if you make them early you’re going to lock in the decision, because you’re going to build stuff on it, and you didn’t need to make it yet. And if you wait, you leave options open so that you can chose later exactly what you need to do. That’s just basically a good design heuristic.
Más aún, pueden además buscarse las respuestas que Mary da a doce preguntas de lectores consultados por Abilla.
[1] La referencia a la versión inglesa de Wikipedia, más completa que la castellana.
