News for hackers. Stuff that matters.
Re:Ask HN: As a CTO, what is your most frustrating problem w... by Bahamut on Tuesday July 24, 2018 @10:14AM (#17601177)
I’ve never seen technical debt referred to such at any workplace - all the time I’ve seen the term used to refer to poor or outdated design decisions that compromise the ability to deliver on business objectives in serious ways.

Complaining about technical debt complaints is an easy way to potentially bias oneself against recognizing real issues before it is too late and everything is on fire all the time. Be wary of any such blanket assumptions in engineering.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by repolfx on Tuesday July 24, 2018 @10:47AM (#17601491)
Lucky you :) I think there's a reason that post is currently voted to the top.

I'm lead engineer on my startup's project, not the CTO but reporting directly to him. Team of about 30.

There are of course many legitimate things that can be described as tech debt, files that got too large and convoluted over many patches by many people, that sort of thing. But I find I have to watch out for the concept of "tech debt" because a few engineers will abuse it if given the chance.

For instance they will insist that code that was just written fresh by a colleague is "tech debt" because they would personally have written it differently, when there are no meaningful differences between the two approaches.

They can claim that a design they don't understand the reasons for immediately (regardless of whether it's documented) is tech debt.

They can claim any feature they don't personally want to do or which is perceived as hard work will create tech debt. And so on.

I wrote the initial code and I'm close enough to the codebase still to be able to fairly thoroughly examine claims of tech debt. I'd say most such claims are actually not a big deal and do not justify any non-trivial investments of time to resolve.

Moreover the sort of engineers who pay down more than their fair share of legitimate tech debt are invariably the ones who complain about it the least.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by fhood on Tuesday July 24, 2018 @11:22AM (#17601822)
Sure, but are you differentiating between run of the mill bitching, and actual serious concerns? Because if I whine about x internal library in stand up, that is probably not important. But if I come to you in person and tell you that x internal library is introducing more bugs than saving time, I probably really mean/am concerned by that.
Re:Ask HN: As a CTO, what is your most frustrating problem w... by Fire-Dragon-DoL on Friday August 03, 2018 @02:18PM (#17682192)
Freshly written code can easily be technical debt. An example of this could be "put a junior in a comolex piece of code and let him add a feature". That feature will work and probably is technical debt, because of bad design choices.

I've been on the other side of this. I was developing the frontend part to a series of http endpoints and my colleague was working on the http endpoints. He was creating some terrible code but I had no power at the time. When he was done, the code was functional, had various bug and a new feature was needed. I spent a week studying the code and managed to add a feature, which however was buggy due to how the code was written originally. I fixed all the bugs, and ended up totalling 4 weeks of work. This colleague was let go after this due to a series of circumstances, so I became the owner of the code. Then a new feature needed to be added but to do that i'd need to change various things in such code. Two weeks in, I still wasn't done. At some point I asked to be able to rewrite the code. I did, it took 2 weeks and was able to add the feature easily. I'm no genius but code that cripples you down from the get-go is tech debt. Tech debt is failure in software design, which ends up in unmaintainable code. I'd listen to anyone pointing at tech debt in my code, it means my code sucks, I made a big professional mistake and I need to correct it.

There is also voluntarily added tech debt, that's the one added by taking shortcuts. As long as you don't build new features on top of it, you are good.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by mcv on Tuesday July 24, 2018 @11:40AM (#17602001)

  > For instance they will insist that code that was just written fresh by a colleague is "tech debt" because they would personally have written it differently, when there are no meaningful differences between the two approaches.

  > They can claim that a design they don't understand the reasons for immediately (regardless of whether it's documented) is tech debt.

  > They can claim any feature they don't personally want to do or which is perceived as hard work will create tech debt. And so on.
Yeah, those things are not technical debt. But that doesn't mean that technical debt is a real issue. Technical debt isn't about whether you like or understand a particular approach, it's about whether the codebase as a whole is still maintainable, whether the bugs make sense and are fixable, whether new features can be added without stabilising the whole code base.

It's never the new feature that's the problem. If the new feature can't be added in a good way, it's the old codebase that has unhandled technical debt.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by jibal on Wednesday July 25, 2018 @01:47AM (#17607128)
> Technical debt isn't about whether you like or understand a particular approach, it's about whether the codebase as a whole is still maintainable, whether the bugs make sense and are fixable, whether new features can be added without stabilising the whole code base.

It's not about that either ... it's about things that were put off, generally for valid reasons at the time.

> It's never the new feature that's the problem.

What do you mean by "problem"? Many new features are inherently problematic.

> If the new feature can't be added in a good way, it's the old codebase that has unhandled technical debt.

That would only apply to waterfall development with infinite foresight. In the real world, wise people employ the YAGNI principle.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by 0xdeadbeefbabe on Tuesday July 24, 2018 @11:53AM (#17602169)
Ugh. Instead of redefining common usage you could just use a different word or words.

Edit: Is saying "bad design" or "ineffective design" going to lead to some fearful confrontation?

Re:Ask HN: As a CTO, what is your most frustrating problem w... by jibal on Wednesday July 25, 2018 @01:40AM (#17607110)
What common usage was redefined?

Where would you substitute "bad design" or "ineffective design" into the comment?

Perhaps this will help: http://wiki.c2.com/?TechnicalDebt

Re:Ask HN: As a CTO, what is your most frustrating problem w... by 0xdeadbeefbabe on Wednesday July 25, 2018 @11:28AM (#17610015)
Common usage is "I'd rather rewrite than understand the problem", as well as "I disagree with decisions that were made."

> Perhaps this will help: http://wiki.c2.com/?TechnicalDebt

Seriously, it won't. That's the point. People overload these words. It's a cute ideal definition though.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by jibal on Thursday July 26, 2018 @02:07AM (#17615371)
You are so full of dead beef. You wrote "Instead of redefining common usage you could just use a different word or words", but he used the word as correctly defined. It's a pity that you aren't helped by knowing what the word means, but that's your problem, and the consequence is that sensible people write you off as a silly troll.

Over and out.

P.S. Yeah, go ahead and downvote me, troll.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by 0xdeadbeefbabe on Thursday August 02, 2018 @11:49AM (#17672374)
Hey it's nothing personal. I'd apologize for trollishness, but I really believe what I'm saying.

Edit: I apologize for beating a dead horse.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by geezerjay on Wednesday July 25, 2018 @01:28AM (#17607077)
OP's usage and explanation of the term are spot on, and you miss the whole point if you conflate technical debt with bad design. One of the causes of technical debt is a change in requirements, and changing the initial requirements doesn't mean that the design was bad.
Re:Ask HN: As a CTO, what is your most frustrating problem w... by 0xdeadbeefbabe on Wednesday July 25, 2018 @11:46AM (#17610148)
Common usage misses the whole point as well.
Re:Ask HN: As a CTO, what is your most frustrating problem w... by geezerjay on Wednesday July 25, 2018 @01:49PM (#17611246)
Just because you personally misundertand a concept it doesn't mean everyone else is wrong.
Re:Ask HN: As a CTO, what is your most frustrating problem w... by 0xdeadbeefbabe on Thursday August 02, 2018 @11:47AM (#17672352)
> I think a lot of the time when a developer shouts “technical debt” what they are really shouting is “code someone else wrote that I’d rather rewrite than understand”.

Is it obvious to you that it's not just me?

Re:Ask HN: As a CTO, what is your most frustrating problem w... by jibal on Wednesday July 25, 2018 @01:57AM (#17607151)
> Moreover the sort of engineers who pay down more than their fair share of legitimate tech debt are invariably the ones who complain about it the least.

Oh really? I recently contracted with an industrial firm where most of the programming staff copy and paste at the drop of the hat and have no idea what DRY is, and think that technical debt and refactoring are some fancy university CS theory that "practical" programmers like them have no use for. I explained to the manager at some length the development and maintenance costs of the massive technical debt of their 30 year old code base, while at the same time I tried to reduce it a bit with every submit.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by repolfx on Thursday July 26, 2018 @11:44AM (#17618352)
Good for you :)

I think your situation sounds a bit different, where the manager either isn't very technical or isn't technical enough. Otherwise they'd be able to see the problem for themselves.

What I'm talking about are employees who have managers who understand the value of refactoring. What I find is that the people who get stuck in and most unambiguously improve hairy bits of the code (with full support of management) are usually not the ones who complain loudly and publicly about tech debt.

Speaking as a manager for a sec here, what I'd watch out for in your case is to not be seen too much as a complainer. Rather than say "this codebase is shit why does nobody care" look at it as, "hey guys! why not come to my interesting 10 minute lightning talk on my favourite refactoring technique" and maybe don't phrase it as about tech debt if they aren't responsive to that kind of analogy.

Managers in particular probably know their codebase is shit even if they aren't very technical, but labelling things as "tech debt" is always tricky because it's entirely possible that the debt was created by colleagues or those very same managers themselves, and whilst financial debt is well defined and measurable, tech debt is just an analogy. They may not even agree that any given bit of code is a problem.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by jibal on Friday July 27, 2018 @04:48AM (#17624497)
> I think your situation sounds a bit different

Even if so, that's not relevant; you said that people like me "invariably" don't exist.

> where the manager either isn't very technical or isn't technical enough. Otherwise they'd be able to see the problem for themselves.

No, that's entirely wrong. As I clearly stated, it's the programming staff who can't see the problem. They are the people who never complain about technical debt while also never reducing it, contrary to your statement. That's the point, and your "good for you" is point-missingly dismissive.

> Speaking as a manager for a sec here

Just don't; I've been developing software since 1965 and I don't need your lectures (which are based on a complete lack of knowledge and erroneous assumptions about the software manager at that firm and my relationship and interactions with him), I simply pointed out that your sweeping generalization about who reduces technical debt and who points it out is erroneous. That's all. Period. The end. I won't respond further.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by thiagooffm on Tuesday July 24, 2018 @10:57AM (#17601582)
It might be upvoted because people find it catchy. But if you have ever wrote code in your life, you know that person who wrote about it got no idea whatsoever about software development.

I'll upvote it as well, as it is possibly the thing with the least amount of intelligence that I've read so far in my life.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by waterlink on Tuesday July 24, 2018 @10:27AM (#17601299)
> Complaining about technical debt complaints is an easy way to potentially bias oneself against recognizing real issues

Would you agree that we should think about specific issues that are slowing us down, and fix them one by one, starting from the worst ones?

(worst in sense of biggest slowdown/pain levels)

Re:Ask HN: As a CTO, what is your most frustrating problem w... by Bahamut on Tuesday July 24, 2018 @10:56AM (#17601565)
Sure, but my point was one should consider complaints as signal that the situation should be monitored/investigated so that the general outlines of an actionable plan can be crafted if there are potential areas of risk, or in the most serious situation, an actual plan.

Blanket painting of a class of complaints doesn't help them or you accomplish business objectives better long term.

Re:Ask HN: As a CTO, what is your most frustrating problem w... by ghiculescu on Tuesday July 24, 2018 @11:26AM (#17601862)
We agree more than you think.

Most complaints about tech debt are not worth actioning, but that doesn't mean you shouldn't listen to all of them and try to filter the signal from the noise.