I'm a lot more annoyed by programs requiring entire desktop environments such as Gnome or, even worse, KDE to do things which would be perfectly doable without that dependency.
Those 50 lines probably won't become most people's favorite WM, but could be among the best places to look how to start writing one.