Not every example can be a useful snippet, but I've tried to include as many pieces of real-world code as possible. The first two chapters generally present material in order of increasing complexity. Otherwise, the book jumps around a lot. The way the examples in this book are formatted isn't particularly mysterious, but I should mention a few things. Pay attention to the code below.
Square bullets indicate boxes that demonstrate good practices or dos.
Inverted triangles indicate boxes that demonstrate poor practices or don'ts. Circular bullets indicate boxes containing material of a more general nature. In some cases, I suggest running an example program. If I don't specify a name, the program is called tryme. Although I think this has turned out to be a pretty good book, I'm sure there are ways it could be made better.