In a Nutshell

Technological progress has merely provided us with more efficient means for going backwards.

Aldous Huxley

High-performance code is not as important as some people think. Although you sometimes do have to roll your sleeves up and tinker with code, optimization is a task you should actively avoid. To do this, make sure that you know the software’s performance requirements before you start working on it. At each level of design, ensure that you provide this quality of service. Then optimization will be unnecessary.

When you do optimize, be very methodical and measured in your approach. Have a clear goal, and prove that each step is getting you closer to it. Be guided by solid data, not your hunches. As you write code, ensure that your ...

Get Code Craft now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.