One thing I have learned over the years: It is easy to write "this is crap code" over a lot of production code I have seen. But making it better, writing consistently great code in the usual environment is much harder.
Don't let the macho attitude of HN infect you too much - a lot of people here (and elsewhere) are great in criticizing others.