This is simple code, indeed.
However, imagine that you finished this particular piece and released it to the world. Then, you forget about it. Three years later you get an email asking for support on this code. Thankfully, you still have it up on GitHub (or something). So, you go back to the...