News for hackers. Stuff that matters.
Re:Why I'm not a big fan of Scrum by maxxxxx on Monday August 08, 2016 @07:35AM (#12246896)
In my view the only way to handle this is to make constant refactoring part of the work without telling management. If you ask for permission for refactoring you will almost always get a "No".
Re:Why I'm not a big fan of Scrum by s_kilk on Monday August 08, 2016 @08:23AM (#12247131)
This is how we ended up with the "Shadow Sprint" at a previous workplace. A whole bunch of utterly essential engineering work was left out of the sprint process, so many of us would just go ahead and do what needed to be done anyway while working on whatever tickets we'd picked up frome the "real" sprint.

Utterly dysfunctional of course, but if it's do-or-die, I'd prefer to 'do'.

Re:Why I'm not a big fan of Scrum by bmj on Monday August 08, 2016 @09:32AM (#12247547)
How did you handle regression testing of the refactored functionality? That's our biggest hurdle. QC is swamped with "regular" sprint work, so there's no way they manage any additional load during the sprint.
Re:Why I'm not a big fan of Scrum by s_kilk on Monday August 08, 2016 @09:39AM (#12247614)
We had pretty good (but not amazing) unit and integration tests in many of those systems, and a willingness to manually test the systems where we didn't have tests.

If we had to lean on a QA department to get this stuff done, I'm not convinced we would have been able to actually deliver that project.

Re:Why I'm not a big fan of Scrum by ktRolster on Monday August 08, 2016 @01:38PM (#12249476)
Only refactor things in sections of code that you're changing anyway. That way QA already needs to test those sections of code, and gets no extra work.
Re:Why I'm not a big fan of Scrum by matthewmacleod on Monday August 08, 2016 @08:40AM (#12247234)
We tend to bundle that work up and include it in tickets with the full acknowledgement of the rest of the team.

"Oh, since we're adding new email features, we'll need to clean up some of the old email code. That will add additional complexity to this task, so we will estimate it higher."

It works, allows us to still track the impact on velocity, keeps everyone informed, and makes technical debt clear and trackable.

Re:Why I'm not a big fan of Scrum by xwkd on Monday August 08, 2016 @12:00PM (#12248762)
I believe this is the correct approach. You're not hiding the complexity of the work, and you're also not compromising on quality. This leaves only the task of saying "no" when asked if you, "for now, could just..."
Re:Why I'm not a big fan of Scrum by maxxxxx on Monday August 08, 2016 @01:42PM (#12249509)
This is how it should work in my view. You just need managers that are disciplined and don't tell you to not clean up old code because of deadline pressure.
Re:Why I'm not a big fan of Scrum by abritinthebay on Thursday August 11, 2016 @03:16PM (#12270897)
This is exactly what is supposed to happen in a Scrum system. If someone is not doing this they're not doing Scrum - just something they called Scrum to pacify people
Re:Why I'm not a big fan of Scrum by humanrebar on Monday August 08, 2016 @07:49AM (#12246961)
This is mentioned in the article as possible only for small changes. When the refactoring involves more systemic problems, it becomes impossible to make the change in the course of making other client-facing changes.

I'll add that some subsystems are a mess but stable. It's difficult to make refactorings with other changes when there aren't other changes to make. I see this in particular with old but stable subsystems that will need to be ported to new environments someday, but it's never a good day to lay the groundwork for that inevitable change.

Re:Why I'm not a big fan of Scrum by lmm on Monday August 08, 2016 @08:17AM (#12247099)
> I see this in particular with old but stable subsystems that will need to be ported to new environments someday, but it's never a good day to lay the groundwork for that inevitable change.

I think it's correct to defer that work until you need it. You may end up never porting that subsystem, in which case refactoring the currently-stable implementation is wasted effort. As and when porting becomes an actual business requirement it can be prioritized appropriately.

Re:Why I'm not a big fan of Scrum by humanrebar on Monday August 08, 2016 @08:38AM (#12247220)
> You may end up never porting that subsystem, in which case refactoring the currently-stable implementation is wasted effort.

I understand this approach, and it works many times. But when the porting is delayed until the last possible minute, it's more likely that hacks are put in because the requirement turned into a hard deadline. Instead of defining a sensible OS abstraction layer, the developers might find and replace "Windows XP" with "Windows 7".

Re:Why I'm not a big fan of Scrum by lmm on Monday August 08, 2016 @08:53AM (#12247314)
> I understand this approach, and it works many times. But when the porting is delayed until the last possible minute, it's more likely that hacks are put in because the requirement turned into a hard deadline. Instead of defining a sensible OS abstraction layer, the developers might find and replace "Windows XP" with "Windows 7".

Which may well be the right choice for the business at that point.

More generally, it's not like doing it now makes it faster than doing it later: you have to put the same amount of total work in either way. In fact you have to put more work in if you do it now, because you will have to ensure that any subsequent changes don't break the porting. If you have other tasks that are a higher priority than porting, you should do them first, almost by definition. Of course if the port is your highest priority then that is what you should be working on (again almost by definition). Porting should be left as late as possible, but no later.

Re:Why I'm not a big fan of Scrum by TeMPOraL on Monday August 08, 2016 @09:41AM (#12247630)
> Which may well be the right choice for the business at that point.

I think it may be imporant to raise a few points for consideration here:

- what may be a good choice for the business short-term can also be a very bad choice for the business long-term

- many - personally, I believe most - businesses don't care about products they make or services they give, they care about the money they can make via those products/services; ergo, the quality doesn't matter beyond the point the customer already paid what they were expected to pay

I don't bring it up as criticism, but only to point out that there are two completely different worldviews here competing. One, shared by many developers, is that the product is what that matters. The other, shared by the "business types", is that the profit generated by product matters.

I also feel that part of one becoming a professional developer is a shift from thinking about quality of work to thinking about its money-making potential. Which I personally consider a poison to the mind, and it makes me hate working in companies. But those are just my personal feelings.

Re:Why I'm not a big fan of Scrum by humanrebar on Monday August 08, 2016 @09:10AM (#12247408)
You misunderstand. If more than a small minority of your code cares what OS it's running on (beyond obvious excepted), you have a large amount of technical debt. Cleaning that up, either by refactoring or replacing the offending code, is in the business's best interest because it keeps costs down and keeps more options available to the business.

The 'business people' are not qualified by themselves to say that the cost-benefit analysis of the refactoring is worth the effort. Because while they may have a good idea of the customer benefits, they generally have little insight into what the future costs of technical debt are. You see this obviously demonstrated by 'business people' who are shocked that there is work to do on five-year-old code that has been working fine for years. Any reasonably experienced developer, any many junior developers besides, can tell you that code rots if it's not maintained properly.

Re:Why I'm not a big fan of Scrum by lmm on Monday August 08, 2016 @09:39AM (#12247612)
> Cleaning that up, either by refactoring or replacing the offending code, is in the business's best interest because it keeps costs down and keeps more options available to the business.

IME that's very rarely the highest-value thing you can be doing for the business. It's not worth paying for flexibility that you're never going to use, and it's not like it's going to take longer to refactor later than it would to do it now.

> The 'business people' are not qualified by themselves to say that the cost-benefit analysis of the refactoring is worth the effort.

Yes they are. Cost-benefit analysis is their job. It's your job to give them an accurate picture of the costs and the benefits.

> Because while they may have a good idea of the customer benefits, they generally have little insight into what the future costs of technical debt are. You see this obviously demonstrated by 'business people' who are shocked that there is work to do on five-year-old code that has been working fine for years. Any reasonably experienced developer, any many junior developers besides, can tell you that code rots if it's not maintained properly.

Yes and no. If you don't need to make changes to a given system then it's fine for it to "rot". Presumably there is a business reason they want to make changes, in which case bringing the code up to a point where you can make those changes is part of the cost of that business-level deliverable.

Re:Why I'm not a big fan of Scrum by st3v3r on Monday August 08, 2016 @02:06PM (#12249694)
"Yes and no. If you don't need to make changes to a given system then it's fine for it to "rot". Presumably there is a business reason they want to make changes, in which case bringing the code up to a point where you can make those changes is part of the cost of that business-level deliverable."

Except at that point, there's likely a hard (usually arbitrary) deadline, meaning you don't have the time. So you end up hacking stuff up again, and the tech debt doesn't get addressed. Your best people end up getting frustrated that they're not being listened to, and that they constantly have to explain this stuff to the business people, and eventually they leave.

Re:Why I'm not a big fan of Scrum by Fargren on Monday August 08, 2016 @11:25AM (#12248483)
> it's not like it's going to take longer to refactor later than it would to do it now.

It is so, when you have to build on top of something you will have to refactor later. I think the miscomunnication here is happening because the person you are replying to is assuming that case, and you are assuming the case where the code to be refactored is isolated form the rest of the system.

Re:Why I'm not a big fan of Scrum by st3v3r on Monday August 08, 2016 @02:02PM (#12249663)
"More generally, it's not like doing it now makes it faster than doing it later"

No, but "faster" isn't necessarily the point. Doing it correctly leads to it being "faster" because you don't have to constantly go back and fix bugs because you used ugly hacks to get stuff done in the short timeframe you had because the company decided to wait until the last minute.

Re:Why I'm not a big fan of Scrum by fsloth on Monday August 08, 2016 @08:45AM (#12247260)
In a non-broken organization technical leads (or equivalent) have same level of authority to guide development as feature driven personnel and the necessity of features vs. quality can be triaged in bright daylight.

If the organization is not sane, that's another thing of course (and often the case, sadly).

Re:Why I'm not a big fan of Scrum by maxxxxx on Monday August 08, 2016 @09:36AM (#12247586)
True, but don't forget that non-broken organizations are very rare :-)
Re:Why I'm not a big fan of Scrum by clifanatic on Monday August 08, 2016 @10:45AM (#12248175)
Do you know of one? I've been looking. For 25 years.
Re:Why I'm not a big fan of Scrum by engi_nerd on Monday August 08, 2016 @12:15PM (#12248874)
All organizations are broken, but some are more broken than others.
Re:Why I'm not a big fan of Scrum by fsloth on Monday August 08, 2016 @03:04PM (#12250100)
There are several in the Helsinki area (that I'm aware of - that have been at some point at least - sane in this regard. Many broken of course as well).
Re:Why I'm not a big fan of Scrum by Zigurd on Monday August 08, 2016 @01:15PM (#12249306)
This is a typical way that agile and related approaches become a barrier between implementers and management.

The fault is almost all on the management side because, ipso facto, they're the ones making the decisions that drive this outcome.

In the real world, there are outcomes that are much worse than this. But this does have the effect of neutralizing the value of scrum: Management gets what implementers decide they get, and scrum is just the way middle management is told the story that they pass up the chain.

Re:Why I'm not a big fan of Scrum by gedy on Monday August 08, 2016 @09:19AM (#12247453)
TBH this is what I've always assumed it should be from day one with Scrum, after training with Ken Schwaber etc. The backlog is not a Todo list.

It's the only way that seemed sane without twisting user stories into weird refactoring or architecture stories and keeping team from writing garbage code waiting for these "tech stories" to clean it up.

Re:Why I'm not a big fan of Scrum by blub on Monday August 08, 2016 @07:55AM (#12246992)
Why is management getting involved?

The PO should try to balance this with feature impementation and the team + SM should make it clear when it's needed. This seems to work fine in an environment based on collaboration between PO,SM and dev team, but will probably fail in an adversarial one.

Re:Why I'm not a big fan of Scrum by maxxxxx on Monday August 08, 2016 @09:35AM (#12247570)
I have rarely seen a PO as the single contact to the "business". Most of the time there are multiple project managers, product mangers and line managers who have a say and put pressure on the dev team.
Re:Why I'm not a big fan of Scrum by JustSomeNobody on Monday August 08, 2016 @08:22AM (#12247127)
Because managers have to report to other managers and they don't want to report that the devs are working on something that already has been implemented and "works".
Re:Why I'm not a big fan of Scrum by cel1ne on Monday August 08, 2016 @08:16AM (#12247095)
Indeed. That's sometimes the case with other stuff like playability too. I've added simple animations which delighted users from time to time.

If I had asked beforehand to invest time for this, the response would be "let's postpone this (forever)".

Re:Why I'm not a big fan of Scrum by JustSomeNobody on Monday August 08, 2016 @08:19AM (#12247114)
Can't do that for deep refactoring. You'll need QA involved and the boss will never sign off on that because, well, he's a boss not a proper manager.