Big O Notation with Sorting Algorithms
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
I have always enjoyed this quote because it powerfully communicates the importance of writing code well. Well-written code is both intelligible to other coders and computationally efficient. Programmers generally measure computational efficiency in two dimensions: space and time.
Space refers to memory, while time refers to the number of computational steps in a program. A good coder should consider both. However…