Of course, all of these things are guidelines, not absolute rules. For example, for variables I use all the time, I generally use names which are quick and easy to type. It was a variable I used often enough that I always knew what PSD meant, and it saved me a lot of typing time. As always, use common sense. If something works very well for you, don't abandon it.
Elegant code is a concept that is hard to explain.
Both do the exactly the same thing. Yet, the second piece will generally be much better. Or suppose you want to draw more rectangles and numbers somewhere else in the code. The breaking of commonly used tasks off into their own procedures is one of the hallmarks of writing elegant code. It makes your code shorter, simpler, and easier to maintain.