subroutine benefits
easier to read
- there are fewer long blocks of code to understand
more efficient
- blocks of code can be used once and re-written many times
more reliable
- each subroutine can be individually tested to make sure it works
parametres
arguments
local variable
global variable
passing By Reference
passing By Value
global benefits over local
global drawbacks over local
benefits of using reusable components