Page 212 -
P. 212

6   modular programming




                                 Keeping things straight









                                         I know he said he knew a better
                                         way to do things, but this wasn‛t
                                         what I had in mind.

































                         The code that you write will make its way into many programs.
                         And, although sharing is good, you need to be careful. One programmer might take your
                         code and use it in an unexpected way, while another might change it without even letting
                         you know. You might want to use one function in all your programs and, over time, that
                         function’s code might change to suit your needs. Smart programmers take advantage of
                         modular programming techniques to keep their workload manageable. Let’s find out how
                         in the pages that follow...


                                                                                  this is a new chapter    177
   207   208   209   210   211   212   213   214   215   216   217