O'Reilly logo

Microsoft Forefront UAG 2010 Administrator's Handbook by Ran Dolev, Erez Ben-Ari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

No one likes to repeat himself

Just like in life, programmers don't like to repeat themselves when writing code, and we can cut down on that using the inc files that we described earlier, but also functions and subroutines. These are groups of commands that are given a name, and can be called from somewhere else within the program—like a tool that you can get from the toolbox when needed. Whenever there is something has to be repeated many times, programmers put it inside a function or a subroutine, and then just call it whenever needed. While normal code is parsed line-by-line, a function may be placed anywhere in the code (though most programmers like to put them either at the very top, or the very bottom of a file, or in a separate file altogether). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required