-I'll leave it at that for now. Entire books have been written on how to code efficiently. Resources are available on the well as well: search for things like “optimization”, “coding standards” or “coding guidelines” should give you more than enough. Also look up [Design Pattern](https://en.wikipedia.org/wiki/Software_design_pattern) and [Anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern). Also fun are books and sites that show how *not* to code. Sometimes these are even more useful. [Worse than Failure](http://worsethanfailure.com/Default.aspx) is one of these (in particular the codeSOD category); The programming section of [Computer stupidities](http://www.rinkworks.com/stupid/cs_programming.shtml) is also nice. If you want to see why the use of global variables is generally discouraged, do a search for ‘alpha’ in the latter page.
0 commit comments