You are on page 1of 1

Advantages and Disadvantages of Decomposition

I find that using decomposition


Teams have to work together
You have to really understand the problem means that my programs often end
really effectively when they are
you're trying to solve to be able to up being shorter on the whole.
working on their own sections of
decompose it properly. Otherwise you'll
a program. Otherwise the parts
end up writing code you don't need.
won't fit together properly.
The sections of a program are
sometimes called subroutines
I can break the problem I have to solve
or functions
into smaller chunks and deal with them
one at a time. This makes it much easier
If I write a function I can test it really well
to deal with a complex problem.
to make sure it always gives me the right
result. It's much simpler to test small
Decomposition is when I break up a
sections of code than a long program
program into small sections.

Different people can code the sections If subroutines or functions have


of decomposed program at the same been documented well it makes
time. This makes writing a complex Once I have a useful function written I maintaining program in the future
program quicker as the jobs can be can probably reuse it in lots of different much easier as they are already in
divided up more easily projects. This saves me loads of work smaller chunks.

You might also like