Agile developement

Status
Not open for further replies.
As a computer science student, I have learned the many advantages to agile development over waterfall. What I am having a hard time understanding, however, is when waterfall would be the better approach. We have spent so much time focusing on agile development, that it seems waterfall is an expensive, old, out-of-date development strategy. On the other hand, it seems like agile development is made for constantly changing projects, so there must be certain areas that it isn't useful for. Any clarity would be helpful :bigdumbgrin:
 

krimhorn

Ars Legatus Legionis
39,865
You'll rarely see either in use in the way they're described in school. Pure Agile style development approaches tend to require everybody in the development group being capable with any job that might be required. You won't see a pure developer, pure business person, etc. In order to have the flexibility that Agile requires means that your team has to be flexible as well.

Similarly Waterfall is so top-down that holding to a pure Waterfall approach falls somewhere between difficult and impossible. The users of your app want something fixed or changed and they'll go to the person who can give them what they want while ignoring (because they don't know or don't care about) your change management process.

Large businesses are where the most Waterfall-like development processes are in place. Historically and still today. In a medium->large company you're not going to be able to meet with the stakeholders on the highly regular basis that an Agile process requires because they have other jobs. So you find that gathering their business process information and application requirements tends to come first, even in a more Agile style process.

The companies that can hew closest to pure Agile are smaller ones or ones that can break their domain problems into small, tightly integrated descriptions. You tend to see tech startups following closer to pure Agile because they're all working on defining the comapany's products and goals. They also tend to, by nature, have a higher concentration of people capable of multiple aspects of software development.

My company is in the process of transitioning from a completely unfocused ad-hoc approach (before I got here) to a more structured, focused approach. Out of necessity we're following the first couple parts of Waterfall (gathering business process knoweledge and requirements for the requested applications up-front) and then during the initial design phase breaking those requirements into feature sets that we'll work on one at a time until each feature can be delivered. The nature of the applications that we get requested tends to mean that what we deliver won't be particularly useful until everything is delivered but it also means that we can be receiving user reactions, suggestions and complaints as we go.
 

MilleniX

Ars Tribunus Angusticlavius
8,138
Subscriptor++
It's important to note that the earliest description of what's now known as the "Waterfall Methodology" was as a strawman. Software has almost never been written that way, even in organizations that thought they were. The feedback and prototyping and requirement/specification/design revision steps were just hidden from view of the people 'running' the development process.

Businesses selling products that simply can't be changed once they're produced and sold have to develop them much more deliberately than pure software, because mistakes are much more expensive. Even in that setting, you'll still see prototypes, scale models, and test articles produced by processes that might be more expensive per-unit, but only a few units of each preliminary get made - e.g. parts worked in a machine shop rather than with tooled manufacturing. This can include products that embed software that for various reasons may be difficult or impossible to change once it's deployed.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
I recall doing some work on a project in my old company that was very much waterfall.

The addition of the Amex credit card to the list of supported cards (previously only Visa/EuroPay/Mastercard)

This effectively touched every single system in the company, sometimes in very big ways, in others subtle ones. All of them needed huge amounts of testing as having certain procedures fail for too long causes very serious financial penalties (in some situations you effectively become on the hook for all fraud that occurs[1], not to mention the hit in consumer calls/cancellation of accounts).

Also credit cards and other financial systems tend to be very workflow driven, things come in from various points, must be tied to the relevant accounts/users/mailings and worked on by automted/manual processes before being passed to possibly multiple other systems. Many of them being very old and legacy (or old and active like the COBOL mainframe that driove the core balance and transactional aspect of the system).

Could that havebeen done in an agile way? Possible, but I doubt doing so would have provided any reasonable estimate up front for when it would be ready to start mailing/accepting customers.

Simply put, that job really did require an up front multi month process of talking to a whole bunch of people to at least find out their rough estimates for the impact and making sure that things mentioned by one team were passed on to the others to ensure their expectations were inline, followed by a bunch of planning. Specing out the requisite environments for testing (in some cases booking them for roughly the right amount of time, you can't magic up new mainframes so easily), letting other major projects know that they were being delayed etc.
Not to mention all the non IT aspects, like call center training and scripts, that needed validation in advance because stating the wrong thing to customers will lead to fines/law suits, and training people on systems that haven't yet been changed is a bit pointless...

It was far from the most elegant system, but I happen to think that the project manager with overall project management responsibility for it (there were maybe 20 PM's doing work on it across multiple parts of the business but he was the top person) was superb, and really showed how having someone who can tie the communication lines together can make even seriously un-Agile methodologies work pretty well.

1. This was pre chip and pin. In those days IIRC you had about 500 ms to respond to the payment system network with yes or no or they implicitly took it as yes and billed you later - I'm sketchy there, I didn't work on that team.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
I would add, as a separate point top my last post, that the key win of Agile in general (rather than specific methodologies that claim to be it) is actually "continuous". If your sprint is 1 week or 3, you do stand up meetings every day or as you need, you pair program or send code reviews all of them should aim to get continuous feedback to each person in the system about how they are doing, and make that accessible to everyone that can benefit from it ASAP.

Continuous Integration means building/deploying/testing all the time, with as few commits as possible in between each one, so working out what went wrong is easier.
Continuous re-evaluation of priorities (if you're part way through a sprint and you find out that a task has become pointless right now you don't have to finish it, just document that it became pointless),
Continuous evaluation of your output (by Peers/Managers/Automated tools/QA/End Users).
Continuous estimation: You thought X1,X2,X3 would all take 3 days but X1 is taking 4, perhaps adjusting X2 and X3 estimates would be sensible (or evaluate why right now - so long as you do it soon, while the knowledge is fresh)

Doing this upfront (or indeed once) will tend to result in considerable investment in tooling/process changes to make such things work with the minimum amount of effort on all parties.

Once you've done it right once, then later projects that might still need a lot more up front analysis might be things where you could realistically design integration tests "in advance" and try to push more and more of it into an agile methodology where you have some points of integration with the parts not doing it that way where you check that what they are sending you is indeed what was agreed in the spec. Of course violations of that are going to cause a hit on both sides of the divide (but perhaps the agile parts can adapt faster if that's a pain for the waterfall side).

But if you're done everything waterfall (or some semi screwed up similar style before) then taking a massive cross team/department project and making that the one where you try to make things agile is a recipe for utter failure.

The same precepts/ideas that suggest Agile should be telling you to do the smallest possible project (with the lowest possible risk) on Agile first and move up from there.
 
Personally, I prefer Agile when the primary challenges on the project are technical in nature - ie, something we've never done before, or do not have expertise in.

When writing web service #437 that simply abstracts queries on an existing database or something else we've done a million times, or if the primary challenges on a project are political, I'll take waterfall any day. Let other people get the arguing out of the way up front and just hand me the specs of what you want :D
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Let other people get the arguing out of the way up front and just hand me the specs of what you want

That is a valid point, but I would mention that I (and probably you too) have had varying degrees of quality in the specs you have gotten, and how well they were communicated to someone else[1].

IMO a critical part of Waterfall is having someone, whoever that maybe, doing really good requirements design, plus a great PM (and best when it's the same person - although there are obvious scaling limits to that).

In Agile you would want to hire/adapt someone to get good at doing that sort of thing as they go (this is a bit easier because when you're a good coder you will spot ambiguity, at the very least when you try to write that bit of code, and start talking to people. If you realise this is a problem with a deep rabbit hole you can at least try to adapt earlier. With water fall some form of more expensive reset is often necessary[3] unless the PM can tweak things.

This is normally the root of many waterall failures, the most important thing is not The Plan, it is The Result. If you realise that taking on a week of extra development and some informal chats and internal only rewrites is possible you can see about adapting the plan. If you start doing bodge work to just keep to The Plan rather than see if the plan can be adapted if everyone agrees[4] then things head south fast.

1. This can be a problem with Agile too of course, but generally you start talking to the other people faster[2]
2. That's the point, if your Agile methodology is preventing that it's failing
3. Or more likely people try to bodge it to avoid changing The Plan[4]
4. If you can't get reasonable agreement then this indicates rather more entrenched problems in your company that no amount of fancy methodologies will solve (though they can be a reasonable excuse to cull some of that inertia)
 

AndrewZ

Ars Legatus Legionis
11,860
Waterfall is the methodology of choice when the requirements are well known and well understood. Like for instance projects that are mostly database work. Banks and insurance companies are a good example of this. Any large bank has a team of hundreds of developers who are pulling, moving, reporting on data. The amount of variance in estimating these kinds of development projects is fairly low. A first estimate is often +/- 100%. After design it's down to +/- 20%.

When you know you have to pull such and such fields from such and such datamart, you really have to complete the requirements before going on to design. The amount of rework would negate any benefit of starting a development iteration.
 
Status
Not open for further replies.