The real outrage here is that the blog post linked above uses the "shocker" pun no less than four times, including the title. I mean, surely there have to be some other electricity-based puns you could use? Maybe something with "charged"? I dunno.
But seriously though, the judge is an asshole. It sounds like the defendant was also an asshole, but as it turns out that's not a good reason to shock someone.