Live data from Hacker News

How to Leverage Technical Debt

medium.com

11–20 of 32 posts

Re: How to Leverage Technical Debt

#11

The biggest thing I think people need to know about technical debt is that it must be used to create growth. Consider the situation where you go to the bank and ask for a loan. You tell the loan manager that you will spend the money on pizza parties. Unless you are in the pizza business, you are unlikely to secure the loan. Loan managers want to know how you are going to use the money you gain to generate growth and…

This is a great way of putting it! It's true that many middle managers and business/sales people do not respect this line of reasoning, but that is their mistake rather than a genuine or well thought out business decision -- which is why it bites them in the end. I would take this further and say that it's often a matter of professional disrespect to pay the architect's skepticism such little heed as to override the architect's vote to constrain feature creep. Self-discipline is hard!

One of the most challenging aspects of this in real development jobs is that shrewd managers and/or business and sales workers are very good at deflecting blame and creating political situations in which they are able to pretend to have supported the "right" choice no matter what the outcome.

So, very often, when features get hacked into the system against the architect's advice and it predictably causes untenable debt growth and parts of the system fall over, what is the first thing you hear? That it is the engineers' fault for not building the system correctly.

It's very rare that an architect can successfully communicate the problem of excessive feature growth and convey after a system failure that it was not really the engineers' fault, rather the fault of everyone forcing their poorly conceived features to take priority.

In a healthy development environment, everyone should be hearing "no" very, very often when asking to add features, especially when they come to you as if it is a big emergency that some market phenomenon mandates that the feature must be added right now.

If you find yourself in an environment where your employer does not empower you, as a developer, to say "no" in that situation definitively, then rather than trying to fight any blame wars about whose fault a system failure was, just get your resume ready and leave. There's no need to put up with that sort of poor engineering culture, and plus, wouldn't you rather put your name on something of quality instead?

Re: How to Leverage Technical Debt

#12

The biggest thing I think people need to know about technical debt is that it must be used to create growth. Consider the situation where you go to the bank and ask for a loan. You tell the loan manager that you will spend the money on pizza parties. Unless you are in the pizza business, you are unlikely to secure the loan. Loan managers want to know how you are going to use the money you gain to generate growth and…

Interesting to place the technical debt creditor/borrower relationship that way round: often it seems that it is seen as being the engineering team who are the debtors, and the debt is owed to some sort of abstract entity - possibly the codebase itself. The developers wind up going to the business and begging for the time to pay down some of the debt, like a college kid going begging to dad to help pay down the credit card after they ran up too much of a bill.

I much prefer this characterization, where the engineering team are the lender, and they can call the business in to confront them with the unpaid bills that are coming due and demand a structured plan for how they're going to clear down some of their debt.

Re: How to Leverage Technical Debt

#13
I enjoyed the article, although I disagreed on some minor points, some of the broad strokes seem solid to me. Very thought provoking.

I think it's interesting to contrast the thrust of the article with Ward Cunningham's original definition of technical debt: https://www.youtube.com/watch?v=pqeJFYwnkjE

Wards definition is much more about the differences between the current implementation of the software and your understanding of the problem, particularly as your understanding changes over time.

He explicitly says that "tehcnical debt" is NOT an excuse to write known-to-be-poor code, which is why I disagree with the //TOBECLEANED approach.

This change in perspective shifts the point of view quite a bit. In some ways this problem defines a startup, your biggest problem is that you don't understand your problem. It's somewhat likely that you won't even have the same problem you'll successfully solve later. The first points are salient here, focus your engineering efforts on the things you don't understand yet, and the minimum support it needs to be viable. Shorten your feedback loop as you navigate the things you do not yet understand.

In this light, a startup is actively SEEKING technical debt, because it represents gaining understanding about a problem, and exploring that space quickly. This doesn't mean you have to "cut corners" and do things you know to be flawed, but it suggests focusing on small 'forays' into the unknown, gaining understanding quickly, and being willing to throw away your exploration for a new one if it isn't working. Then once you find a problem you start to understand and seems like a viable direction, you have a body of 'technical debt' that is the work you need to do to bring the software to your new growing understanding.

It seems like being willing to throw away the exploration if the direction isn't working out is a key advantage of a startup, along with the quick iteration times and lean support for explorations. This is why I dislike the suggestions of writing known-bad code. You're slowing your exploration down, but you aren't gaining understanding of the problem. It's junk debt, not technical debt. You can carefully minimize the supporting infrastructure your exploration requires, and avoid writing extra code, but you can't just slap it together.

It's not enough to flail around building as fast as you can, you have to deliberately learn and explore problems and understanding as you go, and evaluate which ones to put more exploration into and which to abandon. To me, this is the core work of a startup that differentiates it from established companies who are executing on a reasonably well understood problem. The (sometimes gradual) transition happens when you stop exploring, and start focusing on clearing the technical debt from your current exploration.

Thanks for sharing the article, I enjoyed engaging with these ideas!

Re: How to Leverage Technical Debt

#14
post #10

The biggest thing I think people need to know about technical debt is that it must be used to create growth. Consider the situation where you go to the bank and ask for a loan. You tell the loan manager that you will spend the money on pizza parties. Unless you are in the pizza business, you are unlikely to secure the loan. Loan managers want to know how you are going to use the money you gain to generate growth and…

Sure, except when your architect has some sort of contention, whether it's time, patience, or ego. Last time I had a decent idea to pitch, I pitched it to the architect twice - first time, it got completely thrown down. Second time, practically same pitch, except it was approved. I genuinely feel like a month was lost because of that. There's something to be said for "just doing it", and so so many times have archite…

It is both fortunate and unfortunate that there is a conflict of interest between entrepreneur and architect. As an entrepreneur, your job is to make money. The product is actually secondary. Risk is totally acceptable because you can start 20 companies and as long as 1 of them makes a huge payback, you are in the black.

Architects, on the other hand make products. I once was interviewed by a firm that asked me a pointed question about what I did to stop a failed project from failing. My answer was that I gave the best information I could, but that I left it up to the business to decide whether to fail or not. I still think that's the right answer, but it lost me the job.

As architects/programmers, we do not succeed by making money. We succeed by writing software. Several times in my career I have been hired to write shells of programs -- demos that will secure funding, knowing that the underlying software was essentially a lie. It just needed to be impressive and potentially disruptive. Probably the company who would shell out for it would cancel it the first chance they got anyway. Is it the type of software I would like to work on? No (though it did pay well ;-) ).

In any case, that tension is bound to exist. As long as there is good communication and honesty, the tension can provide good results. One of the first questions I ask in a job interview at a start up is, "Do you intend to make a product?" The second question is, "Do you intend to make the product successful?" The questions about technical debt are only really relevant if the answers to those questions is "yes".

Re: How to Leverage Technical Debt

#15

The biggest thing I think people need to know about technical debt is that it must be used to create growth. Consider the situation where you go to the bank and ask for a loan. You tell the loan manager that you will spend the money on pizza parties. Unless you are in the pizza business, you are unlikely to secure the loan. Loan managers want to know how you are going to use the money you gain to generate growth and…

What happens when the architect doesn't have the luxury of pushing back? As in, the business will make the architect's boss bend over if the architect says no?

Re: How to Leverage Technical Debt

#16

The biggest thing I think people need to know about technical debt is that it must be used to create growth. Consider the situation where you go to the bank and ask for a loan. You tell the loan manager that you will spend the money on pizza parties. Unless you are in the pizza business, you are unlikely to secure the loan. Loan managers want to know how you are going to use the money you gain to generate growth and…

I don't disagree with the gist of your comment but time to market is generally massively undervalued (and particularly by technical folk). It's more often than not a great reason for taking on tech debt (not to mention that early releases also constrain scope to smaller chunks).

Re: How to Leverage Technical Debt

#17
I don't see technical debt as a problem, I see the lack of refactoring as part of a software teams culture as a problem.

Technical debt will be incurred, if you like it or not. Even if you spend a long time on architecture and abstractions, developing software is a process and the "fantastic" architecture you created a year ago is now hopelessly outdated. This happens because over time your insight into the problem domain increases which will give you a better understanding on how to approach the problem which will lead to better decisions on all sorts of things regarding the software you're writing.

Having refactoring as part of a software development team culture can help you manage technical debt. If you assume that the code itself isn't precious but the experience of the developers writing the code is, then you can move forward. You can have refactor sessions at regular intervals, e.g. every Friday afternoon or a whole Friday every fortnight, whatever works for you and your team.

In a refactor session the whole team can work together to make the software better; many eyes make all bugs shallow [1]. It also give an opportunity to create better synergy and banter between team members.

[1] https://en.wikipedia.org/wiki/Linus%27s_Law

Re: How to Leverage Technical Debt

#18
post #17

I don't see technical debt as a problem, I see the lack of refactoring as part of a software teams culture as a problem. Technical debt will be incurred, if you like it or not. Even if you spend a long time on architecture and abstractions, developing software is a process and the "fantastic" architecture you created a year ago is now hopelessly outdated. This happens because over time your insight into the problem d…

> Technical debt will be incurred, if you like it or not.

Right on. I've seen discussions about feature toggles which suggested not using them because they led to an explosion of code paths. But that won't happen if you delete the toggle (and the toggled-off code) once the a/b test ends or the feature is rolled out or whatever. It takes discipline and a culture that encourages that by being willing to review / deploy those changes, though.

Re: How to Leverage Technical Debt

#19
post #7

The biggest thing I think people need to know about technical debt is that it must be used to create growth. Consider the situation where you go to the bank and ask for a loan. You tell the loan manager that you will spend the money on pizza parties. Unless you are in the pizza business, you are unlikely to secure the loan. Loan managers want to know how you are going to use the money you gain to generate growth and…

It's great to able to articulate that, but in the real world this sort of thinking does not actually hold much weight. Launching a month early is a good thing.

not necessary. if you launch early a crappy feature with a ton of problems it is actually very harmful. time to market is just one dimension of a trade offs you need to balance if you want to succeed

Re: How to Leverage Technical Debt

#20

The biggest thing I think people need to know about technical debt is that it must be used to create growth. Consider the situation where you go to the bank and ask for a loan. You tell the loan manager that you will spend the money on pizza parties. Unless you are in the pizza business, you are unlikely to secure the loan. Loan managers want to know how you are going to use the money you gain to generate growth and…

What happens when the architect doesn't have the luxury of pushing back? As in, the business will make the architect's boss bend over if the architect says no?

Ed Yourdan summed it up very well in one of his books. I don't actually remember which one, so I will try to summarize it, but the quote is worth looking up. If you think that the project you are going to work on will fail; if you think that the work you are doing is crap; vote with your feet. Your time is precious to you. You only have so many years in industry to work on interesting projects. Don't waste them.

But there are times when the situation is not perfect, but you still don't want to leave. These can be good times as well. If the project has little or no chance of success, why not experiment with some unconventional techniques? It could be your last chance to do something like that. Working in a group which is failure tolerant can be liberating as well.

Finally, make sure that you fully understand the business decisions before you go overboard. In the very first start up I worked in, the management pushed estimates that were wildly inaccurate. We'd say that it would take 4 months and they would promise 1 month to the customer. We failed every single time. When we finally got to a product launch, many years late, I asked the CEO if he wouldn't have rather known at the beginning how long it would take. He smiled and replied, "No, of course not. I would never have gotten funding if I told people that it would take this long."

There are things that we, as programmers, know very well. There are things that we do very well. This is also true of business people. Sometimes we, as programmers, can't understand what they are doing because we aren't business people. Sometimes in our hubris, we think we know better than them.

Knowing who to trust in these kinds of situations takes time and experience.

Post reply on HN