Showing posts with label Technical Debt. Show all posts
Showing posts with label Technical Debt. Show all posts

Sunday, September 12, 2021

Technical debt and waste: check trends and act preventively

I will now discuss a concrete case (...I actually found it in several organizations) in which one of the main risks for a software development company is the high level of technical debt for the product and its documentation.
The final effects are the followings:

  • Components difficult to modify and fix
  • Economic inefficiency in developing and maintaining several product variants, as required by the market
  • High risk when technologies need to be changed: components need to be completely rewritten, documentation does not reflect current functionality, but only a long series of change requests, time and cost high now, and impossible to bear in the future.
  • The risk for the future, given that technologies change very often (even if you keep the same technology, it will change at a rapid rate) is infinite.

How did they get here? 

They somehow complied with the basic recommendations for technical debt and flow optimization:

  • Technical debt was not a major impediment… until it became so
  • Flow delays were not a big problem… until they became so

For a while, at any time, they could have told you “Our flow is good, we have no major delays and technical debt does not cause us much trouble"
Important - the technical debt accumulates, it's like in the metaphor with the Boiled Frog. You also need to consider measurements trends and future implications, not just current ones.
My advice about Technical Debt: measure the trends and act preventively.
Likewise, to avoid waste: it is not enough to measure the delays in the flow, this being only the final effect of many sources of waste. Find the various sources of waste, calculate the trend, and take preventive action.

We have more strategies to deal with the waste (read more here):

  • correct
  • correct early 
  • avoid

Sunday, November 4, 2018

Take care about your impact!

CIVILIZATION & SOFTWARE – There are some common things between human history and software development: the fundamental things in evolution are the people, their collaboration and how they are creating, managing and distributing knowledge.  


“REACT BEFORE DISASTER” – several days ago I have discussed with a younger friend about what we need to improve a country or city status-quo, dealing with an ineffective evolution. Things are stopped improving, groups of interested have now a well-oiled political machine and propaganda that allow them to act discretionary and people seems to be anesthetized. It was interesting that this candid viewpoint seems to be very similar to what really works in human organizations in history, but also in software.  

Until the people do not reach a desperate situation, morality remains just for coffee discussions. More, when people start doing something, they do not agree with each other ... they are hampered in detail and forget the purpose.

Maybe politics is not for us, and that’s it…

Maybe we can ... probably with more patience. The politics is also part of life you do not have to join a political party to do your civic duty ... just that there's the problem that how to communicate well enough to convince people that needs to be involved. Instead of being stuck in some blind principles we can do something against what it is worse.  

There are some macro level things that could be done: if healthy economic interests are growing, something will change.

Let think to the micro level, where we are now: I should ask myself what I can do for my own little community. That is also indispensable.  


“BEFORE DISASTER” IN SOFTWARE  - In software development instead of malefic groups of interests we have specific problems more similar for us with some “natural disasters”. Technical debt is accumulating and will deeply affect our products and business. We are unable to deal with the complexity of software variants. We are unable to produce, manage and effectively transmit the knowledge. The status quo is similar to the one from above dialog:

  • Professional ethics is just a discussion at coffee break until a disaster will strike us
  • We think that we can do nothing because some forces beyond our powers are influencing our context
  • We are stuck in some “local” ideas and principles without collaborating to optimize the whole
  • The “global goods” as the product design healthy are the responsibility of no one

What is really happening: we do not react when the problems are small, we let these problems to accumulate, we do not speak loudly about them. It is not our responsibility, it is a “Deux ex Machina” job. We are expecting for formal responsibilities delegation instead of acting according to implicit professional responsibilities (~political vs. civic)  


WHAT GIVE US A CIVILIZATION – “Flexibly cooperate in large numbers” it is the argument of Yuval Noah Harari [Biblio- Harari 1]. What I did not find in Harari book Sapiens [Biblio- Harari 2] it is what always work better regarding this cooperation. It is not the religion, or the empire.  The best advances in civilization were made by “entrepreneurial societies”, where there was (some) liberty, especially liberty of action, and people could directly participate in political decisions. Here are some examples:
  • Minoan civilization – beginning of the European civilizatio
  • Classical Greek – people are entrepreneurs in science, arts, commerce but also in the military. If the Mycenaeans have only palaces and big defense walls, in Classical Greek, the first most important construction in a city-state will be the Agora. 
  • Roman Republic (the Empire just inherited anything that the Republic has built)
  • Medieval Renascence in all domains
In human history and even earlier, we can find and observe various ways of human organizations and their specific result. History starts with the first large communities, where people could start “Flexibly cooperate in large numbers”. Anyway, in modern society with a lot of small, medium and large communities, we can find us again isolated as individuals and even as teams.  


LEVEL OF INVOLVEMENT – to have a society that evolves and improve, we need the active involvement of its members. We have modern states where this level is low and ancient states where this level was high.  Consequently, there are modern states with no evolution and there were ancient states with outstanding evolution. Modernity by itself it is not a guarantee for evolution, but our behavior. 
We will go back to the software to see how it is possible to be responsible not only for good ideas but also to have an impact on the community and society.


KENT BECK:  FROM IDEA TO IMPACT (ON COMMUNITY) - There is a kind of specificity for great contributions in software development. These contributions are not some lab researches first published in scientific papers and latter applied in production. This kind of contributions are made for production and it is re-evaluated again and again. More: bright ideas and implementations are not enough. You need to do some hard work to distribute them in a good form.  Kent Beck [Biblio- Idea to Impact]:  

“Here are the stages:
1.      Adopt personally
2.      Find the totem
3.      Repetitively broadcast”

Kent Beck “Idea to impact” it is the road from micro to macro level, nurturing and validating a good idea, then trying to distribute and making an impact.

“When I have convinced myself by personal experience that an idea has the potential for impact, I start talking about it.”
“These conversations help me find the spirit of the idea. I know the mechanics and maybe the theory of the idea, but I don't know the intellectual and emotional hooks that will interest and motivate other people to try what, if I'm doing it right, sounds pretty crazy.”
“Along the way I pay attention to what other people are saying about the idea. When I hear someone repeat the idea to someone else without referring to me, then I know I have won.”


“TEAL IS THE NEW BLACK” – Scott Ambler propose (inside Disciplined Agile) the same parallel with the civilization progress [Biblio – Teal Orgs]. He uses the model of the author of Reinventing organizations, Frederick Laloux, where the most advanced forms of organization are [Biblio – Teal Orgs]:  

Teal: Self-organizing/Adaptive
  • Cellular. living organism
  • Awareness, fulfillment
  • Evolutionary purpose

Green Post Modern/Information
  • Consensus/Participative style
  • Value based motivational culture

You can see here that evolution it is strictly related with (direct) Participation and Awareness.

For effective, efficient (Agile) teams, Ambler recommends a Teal-like organization or at least a Green one. He specified, that most likely “Your Organization is Probably a Rainbow” and your strategy should be adapted to the context [Biblio – Teal Orgs].


WE HAVE IDEAS, REFERENCES, AND GUIDANCE!  

What we do in each second will have an impact. Longer period with no improvements it is also a kind of (negative) impact in evolution. As Yuval Noah Harari said [Biblio- Harari 1] humans have done also horrible things while they have collaborated in large numbers.  For a positive impact we need not only to collaborate, but also we need to be aware and “civically”/”ethically” involved both at work and as citizens.

Some find references from history as in “Reinventing Organization” [Biblio – Teal Orgs].  According to others, even the newest organizational types are not so new, and are proved or not by the history. “If we don’t learn from our successes as species, in the course of reinventing organizations we will spend a lot of time reinventing the wheel.” [Biblio- Jessica Prentice].

We have references and guidance in the software industry. Kent Beck has told as a story about how to go “From Idea to Impact”. Robert C. Martin writes about “responsibility of the programmer”. Discipline Agile (Scott Ambler and Mark Lines) offer guidance about how developers and other stakeholders could be actively involved and collaborate at team, enterprise and community level.

Last, but not least, we have “the next Jedi”, young people with the same good intuition and common sense as their predecessors.

Take care about your impact!   


REFERENCE AND BIBLIOGRAFY

[Biblio- Idea to Impact] - Idea to Impact, Kent Beck· Wednesday, July 8, 2015
[Biblio- Harari 1] - Why humans run the world - Yuval Noah Harari
[Biblio- Harari 2] - Sapiens: A Brief History of Humankind Hardcover
  • February 10, 2015, by Yuval Noah Harari
[Biblio – Teal Orgs] - Teal is the New Black, Scott Ambler
[Biblio – Jessica Prentice] - The Most Dangerous Notion in “Reinventing Organizations” by Jessica Prentice

Monday, March 20, 2017

Pitfalls using Agile


Fail to address domain core problems – do not cover core capability: adaptive & lean (with undesired results as slowness, low quality, expensive). Example: if your product is fragile, rigid and have a lot of technical debt (a symptom for Flaccid Scrum), there is no way to be Agile, and there is no way to have a good software economics. Example: if there is no collaborative work, there is no room for process improvement.  The first step toward a solution is to develop core capabilities around Agile Core Practices (as the ones recommended by XP and DA, beyond Scrum offer).  

Fail to address context problems – each context could have different kinds of risks and problems. The main pitfall is to copy-paste the process from one context to another. That is a common risk when are used “prescriptive” methods, with too few guidance for tailoring.  Example: we cannot copy-paste a process from a product with a lower complexity to another one with a bigger complexity. Example: releasing a whole new product is very different that a small release with a delta for an existing product. Example: An Agile scaling approach that does not have options per context.

Too small set of practices – When teams are relying only on practices existent in lightweight methods (as Scrum or XP), and the rest process has severe skill gaps or, it is too ad hoc. So, both domain and context problems could not be addressed well.  You cannot excel in managing software development only with 10-15 practices.

“Modernization” by dilution – any approach could evolve, but regression it is also possible. There are many attempts to modernize or enhance or “scale” Core Agile (Manifesto and Core Agile Practices). Everything is fine if the agility itself it is not diluted until disappearance. Any enhancement is good if will address the domain and context problems and offer responses for core needed capabilities: adaptive-lean and tailoring /context. 

Recommended readings

The Land that Scrum Forgot, by Robert C. Martin
  • https://www.scrumalliance.org/community/articles/2010/december/the-land-that-scrum-forgot
 Flaccid Scrum, by Martin Fowler
  • https://martinfowler.com/bliki/FlaccidScrum.html

Wednesday, May 14, 2014

Agile products - an Agile "Missing Link"

Agile Manifesto: "Customer collaborations", "Early and continuous delivery", "Deliver working software frequently", "Business people and developers must work together daily".
Extreme programming: "Make frequent small releases.",  "This is critical to getting valuable feedback in time to have an impact on the system's development. The longer you wait to introduce an important feature to the system's users the less time you will have to fix it".
Scrum: Maximizing value delivery.

Yes,  all the Agile logic it is about serving the customer business by delivering value, early and often and by a close collaboration.

That sounds great, but it is only one viewpoint.

Our software should be developed in above mentioned manner ... The product must be able to follow the customer business...But that mean should be in proper shape for a such endeavor. It is that simple? I think it is a little more complicated.

In each moment of time, the product need to be easy and quickly adapted to some new requests that corespondent do some new business needs. It is that simple?
When time = zero. The product it is new and need to be deployed to more customers - there it is a big probability that many product features to not match to the business.
When time = several years. The product it is "old" by accumulating a lot of technical debt and the respond to the changes become slow.

We need to care about customer business, but in the same time we need to care about the product! 


There is a TWO WAY ROAD TO AGILE :
  • Development to Business -  DELIVER VALUE to the customer
  • Business to Development - INJECT BUSINESS into the product 
 "Delivering value",  "Delivering value",  "Delivering value" ... in fact there is more than that. The delivered product will "live" in the customer business process and need to be able to evolve and adapt with that business. The BUSINESS DNA must be injected into the product, in order to accomplish such goals.

Here some useful principles:

- adapt the product to the business
  • with the same pace with early, continuous and frequently delivery of valuable software.
  • with  close customer collaboration, "business people and developers must work together daily throughout the project."
  • with "small releases" (~XP), because any big release will lose contact with the busines
  • with  "constant pace indefinitely", that suppose low level of Technical Debt
  • with a good visibility and work optimization via a a well refined Product Backlog
- keep this business clean: easy to read and change inside the product 
  • "well crafted software", "technical excellence and good design" - that enhance adaptability
  • "steadily adding value"
  • Test-driven development - the business value is constantly and often checked and demonstrated
    •  TDD sustain refactoring and refactoring sustain adaptability
  • Clean Code and less Technical Debt
  • System Architecture that serve the business concerns
(Quotes, principles and practices from: Agile Manifesto, XP, Scrum, and  Software Craftsmanship Manifesto)

There are two different Agile promises
- "We are Agile and currently we can serve your business" - management practices from Agile can support a such promise - such many of the Scrum Practices
- "We are Agile and we can serve your business now and indefinitely" - that need all the engineering parts that suppose "steadily adding value" , technical excellence and management of the Technical Debt.

The product level concerns: inject the business and keep that business clean are mandatory for that second and stronger promise.

Tuesday, April 15, 2014

Technical Debt Patterns

(More details – article Know and Manage the Technical Debt, Software Development Journal)

Prevention_Versus_Correction 
  • We should focus continuously on quality by adopting “built-in” quality versus “inspected-in” quality. In fact, the “test&fix” approach will give a temporary quality and will hide the debt. Finally, it is pretty naive to address quality only by test & fix.
Levels_of_Design_Versus_Debt 
  • Because TD is related to software design, it is also related to the Levels_of_Design, where each level could introduce – more or less – its own part of technical debt. Here are some levels (others could also be taken into consideration):
  • Coding style
  • Clean code rules
  • Design decisions in context
  • Architecture decisions
No_trade_for_basic_levels 
  • “Bad code is always imprudent.” says Robert C. Martin 
 Methodology_Induced_Debt 
  • Use context-adapted iterative approach, that mean the right design strategy in the context.
  • Agile techniques: Clean Code (“prefactoring”), Refactoring, TDD (pay the debt early)
  • Risks-driven techniques: Architecture-driven approach.
 Avoid_Mega_Debts 
  • The cost of a such debt could be exponentially higher then of the normal debt. Examples:
    • Refactoring nightmare by Interfering_Debts (such unsearchable names + “duplicate” code); 
    • Envious_Monster – mega components that present “”feature envy” for many other components;
    • Big_Design_Elements 
 Register_the_debt 
  • In order to manage and pay the debt , you should know and register the debt
Manage_Mega_Debts_First 
  • Big, important and messy – that is an explosive problem.
Define_and_Use_Thresholds 
  • Beyond applying metrics, should be associated some risks thresholds to some significant metrics.
Search_Usual_Suspects 
  •  Feature envy, big size, no separation of concerns; searching for them could offer a quick assessment and a quick reaction
Use_Separation_Of_Concerns
  • That is the design principle with biggest impact on debt management.
Long_Term_Steadiness
  •  See Software Craftsmanship Manifesto
Honest_development
  • Clearly define the responsibility of managing the TD

Wednesday, January 22, 2014

Hyper-productivity - just a short run ?

The Scrum marketing claims Hyper-Productivity. Sometime is true, sometime it is not. That depends on who make that claim...Which is the best way to validate that? We can measure, for example, the team velocity for a period of few months. It is that a correct approach?
Maybe the most know and severe problem in software development is the accumulation of the undesired complexity - Technical Debt. The main consequence of a such debt is the deterioration - in time - of the overall productivity and quality. 

Short "hyper-productive" runs with a lot of accumulated debt it is not Agile and it is not Scrum. Remember the principle from Agile Manifesto that require "sustainable development": "The sponsors, developers, and users should be able to maintain a constant pace indefinitely.". Scrum suppose that you will assess your work progress using the criteria of "Done": no other work is necessary on that product part, and that include very few Technical Debt.

Anyway, this kind of  "shortness of breath" it is very common and we must be able to identify and address the root causes. One cause it is the lack of skills of the involved team of developers, but another is related to the management.

"So how can you incent a Scrum team to not make a mess?"

This is a very good question, proposed by Robert C. Martin, in the article "The Land that Scrum Forgot"  that could be found here (with a forward by Mike Cohn):


Spoiler (from the article): "If the team goes fast and stays clean, then there is a reward!"

Usually only the project viewpoint it is the of interest for the management, because is focused on short term results. Anyway, the overall business should remain steady, and we should be interested on the product internal state, the amount of the accumulated undesired complexity.

The Scrum proposed by Jeff Sutherland it is Hyper-Productive (!), because in the same package we will found the requirement for technical excellence and outstanding enginnering practices such as TDD. For a such performance you need to read more than Scrum Guide and you need more others Agile skills and knowledge.

Saturday, January 11, 2014

Agile fundamentals: Working software

This concept it is highly used when we talk about Agile. It is mentioned in Agile Manifesto, first as a main value and then as part of the agile principles. In the same time it is highly misunderstood, even by some claimed agile practitioners.

Waterfall versus Working Software


The main dilemma concerning the process approaches in software development is not "Agile versus Waterfall" - that is false and confusing - but rather Waterfall versus Working Software, that mean Waterfall versus Iterative Development. Why? Very simple answer: the process approach that has a main attribute the Working Software is Iterative Development. Ok... but what about Agile? Agile is one of the main variants of Iterative Development, and probably most used.
There are 4 main Agile values and associated principles. There are also few others values and principles related to software development. Anyway - Working Software/Iterative development is the first one, if not as value, but at least as attribute that define an entire category of non-Waterfall approaches .

"Traditional" PM main problem


A "traditional" PM for software domain is not the one that use PMBOK based PM style, but the one that one that use Waterfall as project life-cycle model.  (... PMBOK does not propose any life-cycle model because that is out of its scope). The first thing that should know a such project manager is: if Agile is not needed, that could be ok, but Iterative Development is not optional for a good project management in the software development case.
Working Software it is a must!

Agile related confusions


Good understanding of working software it is fundamental for a real Agile process. 

The Bad and the Ugly


An often misinterpretation of the Agile Manifesto is the following: we do not need documentation, we just craft some software. That is not agile, and it is very harmful.

The Good


The right interpretation of W.S. concept from the A.M. is when we are thinking to the working software resulted at the end of an iteration: analyzed, designed , implemented and tested & fixed software. Nothing is missing? The complete "formula" should be: continuous integrated (working) software.
Recap:  we should use iterations (smaller than one month, but better of two weeks of less) and working software should be the main result and measure of the progress at the end of the iteration.

The Great


Softwarecraftsmanship Manifesto states also that we need not only working software, but also "well-crafted" software. Something similar could be found also in the Agile Manifesto principles, where the used terms are "good design" and "technical excellence". Finally, that mean that for Agile we need "well-crafted" working software. Why? That will enable, enhance and offer steadiness to the agility. Also, that mean we will produce less Technical Debt, that is a condition for Agile (and agile methods as Scrum) and also for any good process.

Wednesday, January 8, 2014

"What is Technical Debt?"

THAT IS THE QUESTION... and you should know (!) the answer to this question in order TO BE AGILE. If not, now it is good moment to start finding more info on this subject.

Well... it is possible also to know the problem, but not with this formal name. 

Anyway, dealing with TD it is matter of TO BE OR NOT BE AGILE.  The full set of questions is:
  • What is TD?
  • How could be solved and/or managed?
  • Do you use as a criteria for work assessment to have a low(enough) level of TD?
Just a hint: Scrum has the concept of "Done". In fact you are not really Done, if there is too much TD left behind at the end of Sprint work. That mean TD it is a matter of  "To be or not to be" also for Scrum adoption.

More: TD it is an "Elephant in the Room" for Agile, but also for Software Development as domain of activity (no matter the used process approach).