Friday, May 03, 2013

Review: Redshirts

I'm  a big fan of John Scalzi's sense of humor, especially in Old Man's War. However, when I heard about Redshirts, I was less than 100% excited. While it is ridiculous that Red-shirts dropped dead all the time on away team missions, I didn't think that the joke itself could sustain an entire novel. As a result, I waited until I could check it out from the library before reading.

Unfortunately, I was right. The central premise is funny. You've got a crew that's scared to go on away missions, and you've got characters that get shot and wounded only to recover all the time on missions. You've got technical gobbledy gook with ridiculous technical solutions, how despite how advanced the ship is, nobody sends e-mail and messages are always delivered in person. It's pretty funny, but it lasted about half the book and then the rest of the novel becomes a farce, barely worth reading.

I eventually limped along to the end, but only out of a sense of masochism. I wouldn't recommend anybody put themselves through the entire novel. Read until the sense of fun is over and then abort the mission.

Not recommended.

Monday, April 15, 2013

Re-read: Zen and the Art of Motorcycle Mainteneance

I first read Zen and the Art of Motorcycle Maintenance in high school, and reading it then was an amazing discovery. I remember not being able to stop reading it, going on until well past midnight, barely able to stop when it was time to sleep, and finishing it the next day. When I saw that the Kindle edition was down to $2.99, I didn't hesitate and bought it and read it again.

Books are different beasts when you read them a second time. The first time I loved the description of the scientific method and it's application to debugging computer programs (in addition to the problems you find when you need to repair a motorcycle):
When you’ve hit a really tough one, tried everything, racked your brain and nothing works, and you know that this time Nature has really decided to be difficult, you say, “Okay, Nature, that’s the end of the nice guy,” and you crank up the formal scientific method. For this you keep a lab notebook. Everything gets written down, formally, so that you know at all times where you are, where you’ve been, where you’re going and where you want to get. In scientific work and electronics technology this is necessary because otherwise the problems get so complex you get lost in them and confused and forget what you know and what you don’t know and have to give up. (Loc 1603)
This time around, I found another part of the story, the story about a father and son, re-united after a horrifying personal disaster, and the realization that it as his son that brought him out of the psychiatric ward:
We’re related to each other in ways we never fully understand, maybe hardly understand at all. He was always the real reason for coming out of the hospital. To have let him grow up alone would have been really wrong. In the dream too he was the one who was always trying to open the door. I haven’t been carrying him at all. He’s been carrying me! (Loc 6249)
What's great about the book is that all this is interspersed with a motorcycle trip from Minnesota to California. It's full of little tips about cycle touring that indicate that Pirsig did do quite a bit of motorcycle touring, though he does spend way too much time on a freeway in California instead of riding down the coast. (And much like most tourists, he makes the mistake of visiting the California coast during the summer, when it's mostly fogged in) There are also little interesting observations about people on the road:
While we wait for chocolate malteds I notice a high-schooler sitting at the counter exchanging looks with the girl next to him. She’s gorgeous, and I’m not the only other one who notices it. The girl behind the counter waiting on them is also watching with an anger she thinks no one else sees. Some kind of triangle. We keep passing unseen through little moments of other people’s lives. (Loc 4385)
Ultimately, the book's a philosophical novel, with lots of explanation of the authors' ideas about the nature of Quality, the split between the arts and the sciences, and his attempts to unify the two by keeping Quality undefined as, "You know it when you see it." For a rhetoric class at the places Pirsig has taught, I think this approach might work. For those of us working in technology, however, I'm not sure that non-definition is useful. There's a certain sense that those who care passionately enough about their work enough to have strong opinions and defend them are better engineers than those for whom engineering is "just work." On the other hand, you could argue that in many ways, the constant arguments over the quality of say, the choice of programming language is well over-blown, and people would mostly be better of getting work done than engaging in the low-Quality flame wars that you find on the internet.

Regardless of how you feel, however, the novel is thought-provoking, interesting, and never dull, despite being mostly about ideas, rather than being about characters or plot. It's a great book and well worth reading and re-reading. Highly recommended.

Sunday, April 14, 2013

Review: Big Skinny World Bifold Wallet

I answer a lot of questions on Quora, but the one time I asked a question, I never got a satisfactory answer. I travel enough internationally that I find domestic wallets to be useless, since they can't handle cash that's too wide or tall, which many international currencies are. I was using a wallet I picked up in Switzerland a few years ago. That wallet was nice, especially since it had multiple pockets for cash and coins, letting you sort say, Euros and dollars, or Euros and CHF. However, it's leather, doesn't have sufficient pockets for the large number of cards I carry, and is slowly being worn out.

I found a coupon for a Big Skinny World Bifold, and ordered one. It's made out of Nylon rather than leather , so it's much lighter than my old wallet, which is nice. It's also wide enough and tall enough for non-US currency. It has an outside zipper for coins and keys, and sufficient card slots for 16 cards as well as two inner pockets for business cards and other sundries. It ended up being quite a bit slimmer than my old Swiss wallet.

Recommended.

Review: Your Child's Growing Mind

Mike Samuel recommended Your Child's Growing Mind to me, and while it was a good read, it's written in a verbose fashion, full of useless anecdotes that don't reflect research findings, with the interesting research findings almost deliberately obfuscated.

For instance, in the section on enriched environment, she notes that lab rat studies showed that a cage with lots of toys, etc would build a rat with a bigger brain, a free roaming rat that played outside the cage would have a bigger brain than even the enriched rat's brain. This demonstrates that free play and spending time outside with freedom to explore is far more important than how many toys you can buy your child, but strangely this passage received no emphasis.

The book is strangely light on early childhood development, but once it get to elementary school, starts providing tips on reading, writing, and math. Each section is full of tips on how to teach your kids the relevant skills, including sections on what play activities are great for letting the entire family participate. The tips are split by age group, and there's good explanation on what works. There's a big emphasis on trouble-shooting learning problems with adequate prescription.

Like all such books written by Americans, it has zero information about bilingual or multi-lingual households, and there's apparently been no academic research on how best to optimal the environment for multi-language learning in such households. I wonder if European books are better in this regard.

I would recommend referring to this book over the years (especially if your child has a learning disability), but you should still read John Medina's Brain Rules for Baby first.

Saturday, March 23, 2013

Review: Wool

I picked up Wool because I'd read about the success of the author, Hugh Howey, in going completely independent, first selling the book as a serial on the Kindle store, culminating in selling the paperback rights to a traditional publisher while keeping the electronic rights to himself. The omnibus is frequently on sale at a good price, indicating that Howey understands how to market and price fiction in the digital/electronic era, unlike any of the dead-tree publishers he's competing against.

The book is an addictive read. The traditions of serial writing are clear, and Howey is a master of them: keep the cliffhangers coming quickly and in rapid succession, and never leave the reader in a state where he can get a breath in to get distracted by other pressing matters. The characters are wooden and there's next to no character development, but the world of an underground Silo following some sort of catastrophe (what exactly happened is never revealed, but we do learn that it's man-made) is the main focus, and the reveal happens at a pace that's compelling and fun to read.

SPOILERS FOLLOW

What the book isn't, however, is great science fiction. There are too many plot-holes and things that don't make sense. For instance, the great villain is the head of IT, and we read about the mysterious PACT and that power for servers make up for the biggest power draw on the generators. This makes no sense, since as far as I can tell, there's nothing for those servers to actually do. If all you need is for the servers to store data, they can do their job just as easily powered down as up, and there's no reason for them to draw power. Furthermore, Howey clearly has no idea of the kind of machinery and equipment needed to run modern equipment. Even the manufacture of a single hard drive or flash chip requires factories and a sequence of production steps far larger than the Silos described. Most science fiction novels have characters as wooden as what you'll find in Wool, but most science fiction novels have much better science.

If you can ignore these huge gaping plot-holes (big enough to drive a Google data-center through), however, the book is a fun read. It's the perfect airplane novel, and I can therefore recommend it as such. I expect to buy Howey's other books before my next long flight.

Thursday, March 21, 2013

PSA: Do take the undergraduate compilers class

We just closed our hiring cycle for summer interns at Quark. During this period, we vetted tons of transcripts and resumes from top tier universities including CMU, Berkeley, and Stanford. Our hiring standards are demanding, and I personally did a lot of interviewing. Congratulations to Kevin and Kevin.

If you're a Cal student, I have very specific knowledge of the classes offered. Once upon a time, CS 162 (Operating Systems) and CS 164 (Compilers) were considered core classes in the CS curriculum. They were required of all CS graduates. In this day of "applications first" approach to CS, CS 162 is still required but CS 164 is now optional.

From the perspective of a hiring manager, however, taking CS164 early in your undergraduate career signals several very positive things:

  1. You're not intimidated by challenging classes that require lots of coding. The ability to do well in CS 164 depends very much on your ability to utilize tools, write a lot of code, and test and debug at a meta-level that none of the other classes require.
  2. You're not satisfied with understanding computers at the topmost abstraction layers. You want to dig beneath the abstraction layer of a programming language and understand how they work, down to the point of producing assembly for the machine to execute. The reason CS162 and CS164 were required in the past was that digging beneath those abstraction layers was highly prized for anyone doing any kind of work. (CS152 is very nice as well, since you now get down to the logic layer --- knowing how to do anything at the transistor level isn't necessary, but it's also useful)
  3. CS164 requires full use of almost all data structures you were taught in your data structures class. You'll build parse trees. You'll use symbol tables. You'll need to walk trees and do type-checking. CS164 integrates all the knowledge you got from data structures. Getting this in early in your career will only benefit you.
  4. People who take CS164 will not balk at writing a parser, or even designing a whole new programming language or DSL in order to better solve a problem. This approach of meta-programming (or Meta-Object Protocols) is very useful and the skills necessary to implement it in a non-LISP environment are only available for people who know how to write compilers and other language translators.
I know it's fashionable now to deride the traditional computer science education with its emphasis on hardcore topics. But when I interview students with the traditional computer science education versus students without, the difference is clear: the former are much better problem solves, and write better code. Ultimately, they'll make better hires and will get more and better job offers.

So for those at Cal: take CS162 and 164 as early as you can. For those elsewhere, please don't neglect your systems classes. They'll make you stronger engineers.

Wednesday, March 20, 2013

Review: The Signal and The Noise

I've been a big fan of 538 and Nate Silver since the 2008 elections. The Signal and the Noise is his book about predictions, the state of the art, how they work, how they don't work, and the intersection of those concepts along with his interests. Nate Silver's a very smart guy, which means that his interests are broad and fascinating.

What comes through the book is Silver's humility --- he claims that he was extremely successful because political predictions as set by TV pundits and Fox News sets a particularly low bar that's easy to beat if you just do a pretty good job. Note that Silver's models, however, beat the so-called prediction markets like InTrade, for instance, which means that not only did Silver beat the TV pundits, but he also beat fairly size-able markets with real money sitting on the line.

What's fascinating about the book is we see how Silver sees the world through the prediction lens. He even treats Chess as a prediction problem, and his write-up of the Kasparov vs. Deep Blue matches gave me insight into the matches that I didn't know prior to reading his book.

Silver also covers epidemic modeling, weather forecasting (including hurricane forecasts), earthquakes, stock markets, economic bubbles, sports, poker, and global climate change. His explanation of Bayesian reasoning, its' history, and application in the modern world is as clear and enlightening as any I've seen, and his considered understanding of our prediction failures is profound and insightful. Fundamentally, weather forecasting has been the most successful of the disciplines examined in the book, and Silver explains why.

The biggest weakness of the book is one that a perceptive reader will see as a theme over and over again. Fundamentally market incentives skew predictions. For instance, the political pundits have incentives to make big predictions and tell stories that are wrong, because they're more entertaining to the masses than Silver's nuanced analysis. Economists, mutual fund managers, and all have incentives to be wrong conventionally than to be right unconventionally. It is because of these distortionary effects that many of our predictions fail, rather than because we do not have the tools to do the job correctly, or because Bayesian reasoning isn't widely utilized.

Having said that, the book is fascinating, interesting, and enlightening. It's the best book I've read all year, and hence comes highly recommended.

Sunday, March 17, 2013

Review: Teach Your Children Well

After reviewing a book about the under-privileged kids amongst us, I had to go read a book about the very other end of the spectrum --- the over-privileged, over-scheduled, ultra-achieving kids in the San Francisco area. Teach Your Children Well covers mostly the ails of the upper-middle class and their children.

These include overly packed schedules, worrying about bullying and cyber-bullying, whether they're the best piano player and able to get into Carnegie Hall, etc., etc.

Madeline Levine advocates taking a holistic approach to the child, noting that it's far better for children to grow up to be good people rather than necessarily great mathematicians, engineers, doctors, or artists. She clearly lives in San Francisco, where most parents worry much more about their children's math classes than their ability to draw or play sports.

While Levine clearly has a good heart, I'm not sure her book can be very effective. It's one thing for her and her patients to abandon the rat race or paper chase, but unless/until society values ethics more than a big paycheck, the bankers on wall street will still command more respect than the people who did not cheat. That's what's driving society, and it has nothing to do with parents being pushy.

What's more, as I've noted over and over again on this blog, the world just simply does not need more English major journalists. Such journalists and writers actually do more harm to the topics they cover than if they did not exist, and I'm not sure a society should value such work. So to that extent I agree far more with the parents who think that their daughters should actually work hard at Math rather than say, "But I'm so much better at fashion."

I wanted to recommend this book. I certainly have no intention of pushing my son into things he doesn't like for the sake of being able to brag about piano recitals or other some such nonsense. But the entire book reeks of privilege and Levine lives in a society full of trust fund babies and people who not only have therapists but also have multiple therapists for their children. Such children will live in privilege regardless of how little Math they do and how little Science they know. But children of immigrants will have no such luxuries, and if you come from such a background you might find Levine's stories and anecdotes more than a little detached from reality. Hence: not recommended.