Thought for the Dazed

I've had to give up that Distance Learning course as I was having trouble seeing the teacher.

Flickr
www.flickr.com
RobMiles' items Go to RobMiles' photostream
Twitter
C# Yellow Book

Search entire site
Monday
Oct162006

Review : Applications = Code + Markup by Charles Petzold

I was kind of hoping that they wouldn't have it in stock since if they did I would make myself poorer. But there it was on the shelf. Browns in Hull had a copy of "Applications = Code + Markup" by Charles Petzold.  If you have any kind of history in Windows programming you will have come across Charles before. He wrote pretty much the definitive guide to programming Windows 3.1 way back in 1992 (I have a copy) and he has been writing new books about Windows programming ever since.

And now he has come up to date with the release of his book which tells you how to create programs which use the Windows Presentation Foundation (WPF) which is the way that you create user interfaces for Vista. I've been following the development of the book via his blog (which, although not as good as mine of course, is still worth a read).

I had kind of told myself that I would buy a copy if I happened to come across one, and on Saturday I found that Browns Bookstore in Hull had one in stock. And so I bought it. For the same price I could have got Lego Star Wars II for the XBOX 360, although I think I'll probably have more fun with the book to be honest (but I am a sad programmer).

I've been ploughing through it, but I'm nowhere near the end of its 1,000 or so pages. Charles Petzold writes very well, and I find the material very interesting. Some people might find the level of detail given a bit pernickety and distracting, but I really like it. And the other thing I really like is the approach taken.

I've been trying to make sense of XAML, (the markup language which lets you describe how your forms will appear to the user) and not having much fun or luck. As a programmer I want to get hold of the objects and control them programmatically, not by means of lots and lots of text. And although XAML lets me set up animations of bits and bobs (and you can have a lot of useless fun with this) as a person writing a program intended to do something I don't find the ability useful. Add to that the fact that the MSDN documentation is pretty appalling, actually telling you less than the IntelliSense in Visual Studio, and you have a recipe for frustration.

What the Petzold book does is put all the XAML stuff in the second half, and spends the first half telling programmers how to use the new user interface classes at a very high, and useful, level of detail. I've not reached the markup pages yet and I don't care. I'm too busy finding out how easy it is to lay out user interfaces which automatically design themselves when they load.

One of the very few things that I missed from Java when I switched to C# some time ago was the "GridBagLayout" manager. This was a swine to master, but when you got your head around it you could write displays which pretty much laid themselves out for whatever orientation and size of display you were using. In fact I missed it so much that when I moved to C# the first thing I did was write a layout manager.

With WPF something very similar to GridBagLayout is now available. And the way you use it is way better too. The book makes this clear and uses loads of examples to help you along the way. There are no screenshots though, which I initially found rather surprising. However, the good news is that this means you are encouraged to "code along" with the book, pulling up the examples and modifying them along with the text. This is a very good way to learn, and leaving out pictures means that the book can contain more text, which adds to the value.

In short, I think that this book will become as indispensable to the programmer as the earlier ones have, and if you want to learn how to do this stuff you should bag a copy. Amazon have it on a healthy discount which I wish I'd seen before I bought mine from a shop.

Sunday
Oct152006

From Hero to Zero

I'm getting cross with my Guitar Hero game now. Although playing the game is great fun it does seem to have the knack of losing all my saved data. For the second time it has forgotten everything and lost all my hard earned progress. I'm pretty sure the game is at fault, in that the save file is there on the memory card (and I can copy it around and stuff) but the game just refuses to recognise it. Most annoying.

I think I'm going to put my PS2 version up for sale and then get the XBOX 360 version when it comes out.

Saturday
Oct142006

Hull Fair

We went to Hull Fair tonight. We tried to go last year but it was pretty much full. So this time we set out early. We took the camera along, but minimal funds - just to be on the safe side.

269499443
The Freak Out ride. Scary, and one of the smaller ones

269499600
I just love the classy artwork on this one.

269499713
More "Hook a Pooh" than "Hook a Duck"

269499896
What you win if you aren't careful

269500073
I think this is my favourite fair picture

269500293
The one ride I actually went on. Note the attractive price and the fact that it does not seem capable of leaving the ground.

269500537
Or not

269500672
Look carefully. I'm third from the left. Yeah. Right.

We managed to escape only nine pounds down on the trip. But a cuddly monkey, four donuts, some nougat and some peanut brittle up. And it was a great night.

Saturday
Oct142006

Shopping Thoughts

Went up town today (big surprise). I find that strange thoughts come to me as I wander round the shops.

We bought some shampoo for the guinea pigs. They have long hair (don't ask) and we have to keep it shiny clean. I was wondering if it had been tested on animals.

Then I went past the Early Learning Centre, where you can now buy a "Castle of Doom" for your tiny tots to play with. Only seventy quid. What kind message does this send to our newest citizens?

Scene : Christmas Morn

(FX : Sound of frantic unwrapping)

Child : "Oh daddy, it is just what I've always wanted. A dank place of total despair where all who enter can suffer torture and and a lingering death."
Father:  "Well, son, I just hope you'll play nicely with it."

Friday
Oct132006

Foggy Morning

A bit foggy this morning. But sunny. Fortunately I had the camera with me....

268392626
A view across the sports field

268392644
A walk through the woods....

268392659
The back of our large lecture theatre

268392688
Just some trees

268392672
The back of our building

I love autumn.