Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Chapter 5. File Optimization > Optimizing Code - Pg. 88

88 Chapter 5 FILE OPTIMIZATION of the words is misspelled. Just like making edits to text in an image, this one could get very tedious as well. Optimizing Code Optimizing your code can be just as important as optimizing your images in terms of both file size and processor usage. As with most steps in your projects, it is always best to keep code optimization in mind from the very start before you have written a single line. However, we all know that there are times when we just need to make it work as quickly as we can, no matter what it takes. The trick to those hurried times is to remember that we need to set time aside so that we can later go back and optimize, or "clean up," our code. In the rest of this section, I'll be passing on a few suggestions that have either been passed on to me or that I have found in my own projects over time. Don't Repeat Yourself I often find that I remind myself not to reinvent the wheel while