Page 112 -
P. 112

3 functions




                                             Let’s get organized









                           @starbuzzceo Waiting
                           patiently for milk...

































                       As programs grow, the code often becomes more complex.
                       And complex code can be hard to read, and even harder to maintain. One way of
                       managing this complexity is to create functions. Functions are snippets of code that
                       you use as needed from within your program. They allow you to separate out common
                       actions, and this means that they make your code easier to read and easier to maintain.
                       In this chapter, you’ll discover how a little function knowledge can make your coding life
                       a whole lot easier.



                                                                                                        77
   107   108   109   110   111   112   113   114   115   116   117