Archive for August, 2011

Nobody Cares About a Few Million Nanoseconds

Note: This article originally appeared on my programming book’s blog.
A Clever Programming Trick…
If you need to swap the values of two variables, this usually requires a third temporary variable (that is, if you’re not using a language like Python that supports the a, b = b, a syntax.) It looks something like this:
temp = a;
a […]

free blog themes