House hacking

Today I changed an electrical outlet for a clothes dryer. The obvious difference between hacking electrical outlets vs. code is that electricity can kill you or burn down the house. While working on the outlet I was less tempted to wonder what would happen if I wired it differently.