erreon Hacker News • Recommends
On “A regular expression matcher By Rob Pike and Brian Kernighan (2007)”
349K subscribers • 62 videos on Hallway
Intermediate. Assumes working knowledge.
45K views19 years ago2 recommendations
Computer scienceSoftware designAlgorithmsRefactoring and legacy codeSimplicity and complexity
Jon Bentley presents three implementations of the Quicksort algorithm, demonstrating how systematic code transformations can make programs simpler and more powerful.
Google Tech Talks August 9, 2007 ABSTRACT This talk describes three of the most beautiful pieces of code that I have ever written: three different implementations of Hoare's classic Quicksort algorithm. The first implementation is a bare-bones function in about a dozen lines of C. The second implementation starts by instrumenting the first program to measure its run time; a dozen systematic code transformations proceed to make it more and more powerful yet more and more simple, until it finally disappears in a puff of mathematical smoke. It therefore becomes the most beautiful program I never wrote. The third program is an industrial-strength C library Qsort function that I built with Doug...What people say. Recommended as an inspiring talk on code elegance, refactoring, and the beauty of deleting code to add function.
erreon Hacker News • Recommends
On “A regular expression matcher By Rob Pike and Brian Kernighan (2007)”
tonym128on Hacker News • Recommends
On “Ask HN: Where do I find good code to read?”
u/hackingdreamsin r/compsci • Mentions
On “Why is quicksort better than other sorting algorithms in practice?”
ehsanulon Hacker News • Mentions
On “-2000 Lines Of Code”