Busy Days are Best. And teaching is sometimes strange.
I don't know about you, dear reader, but I like busy days. Today I've given a couple of lectures and written a whole bunch of stuff for the C sharp course. The lectures were fun, although trying to make bound and constrained properties interesting to the third years and static members interesting to the first years was quite hard work. I was talking to someone who was worried that presenting the same material year on year was boring. As if. Every year I end up finding a new and different way to put the stuff over. This time the subject matter for the constrained properties took a bizzare turn when we ended up considering who would have to be informed if my age changed. And whether age is ever allowed to change by more than one year. And then I got into a fluster with the first year when thinking of ways to remember what members of a class should be made static:
"The word interest has an s and a t in it, and so it should be static, 'cos static as an s and a t in it. But instance has an s and a t in it too, and also an i and an n, so that doesn't work. So think of the interest on a bank statement that you can rub on your sleeve and then stick on the ceiling with static. No, that doesn't work either because the bank statement has a balance on it too....."
The bottom line, if anyone is still reading this, is that members of a class which are held for the entire class, like for example the interest rate charged on all the bank accounts in my bank, should be made static. But things which are held for each account, like the balance of an account, should be made instance members. I wonder what I'll do next year.....