The C# Yellow Book, Cheese Edition
Welcome to the Wonderful World of Rob Miles™. This is a world of bad jokes, puns, and programming. In this book I’m going to give you a smattering of the C# programming language. If you have programmed before I’d be grateful if you’d still read the text. It is worth it just for the jokes and you may actually learn something.
If you have not programmed before, do not worry. Programming is not rocket science it is, well, programming. The bad news about learning to program is that you get hit with a lot of ideas and concepts at around the same time when you start, and this can be confusing. The keys to learning programming are:
Practice do a lot of programming and force yourself to think about things from a problem solving point of view
Study look at programs written by other people. You can learn a lot from studying code which other folk have created. Figuring out how somebody else did the job is a great starting point for your solution. And remember that in many cases there is no best solution, just ones which are better in a particular context, i.e. the fastest, the smallest, the easiest to use etc.
Persistence writing programs is hard work. And you have to work hard at it. The principle reason why most folks don’t make it as programmers is that they give up. Not because they are stupid. However, don’t get too persistent. If you haven’t solved a programming problem in 30 minutes you should call time out and seek help. Or at least walk away from the problem and come back to it. Staying up all night trying to sort out a problem is not a good plan. It just makes you all irritable in the morning. We will cover what to do when it all goes wrong later in section 5.9.