Recently two interesting books have been published:
1. Andy Oram & Greg Wilson, "Beautiful Code",
OReilly, ISBN-13 978-0596510046
2. Kent Beck, "Implementation Patterns",
Addison-Wesley, ISBN-13: 978-0321413093
Let's have a look at the first one. The second one will be looked at in the next review posting here.
Let's have some random examples:
- Brain Kernighan shows us a regular expression and it's power using C code stuffed with lots of pointers.
- Karl Fogel shows the delta editor that is the basis of subversion. This includes C Code with lots of comments.
- Jon Bentley is the first who uses 'higher level' languages, compares some quicksorts and even shows a little mathematical background.
- Alberto Savola introduces JUnit and shows how beautiful tests can cover a binary search algorithm.
- Image processing code by Charles Petzold.
- Bryan Cantrill discusses threads in connection with beautiful code.
- Jeffrey Dean and Janjay Gemawath show you evolving code leading to the map-reduce solution.
- Andreas Zeller write about beautiful debugging. He doesn't show too much code, but some insights could rarely be found elsewhere.
- Yukihiro Matsumoto (the brilliant author of ruby) only shows 13 lines of code but is getting into a short philosophical discussion, how a programming language should look like that 'offers' the ability to write even more beautiful code.
There are a lot more topics like:
So to summarize, there might be two readers for this great book:
So what type of reader are you?