Posts
293
Comments
27
Trackbacks
206
March 2004 Entries
Which tool do I use when writing a book

There are a couple of Amazon reviews of Beginning ASP.NET 1.1 querying the use of Web Matrix as the tool in the book. I thought I'd use that as an excuse to explain some of the choices we have to make when writing books

The issue of the development tool was a tough one for us, that perhaps in hindsight we didn't get quite right. I quite freely accept that the cover doesn't explain the tool usage - we're talking with Wrox to see if this can be rectified when the book is reprinted. The reason we picked Web matrix was simply price; it's freely available. We took the view that people wouldn't want to buy, or might not be able to afford, any edition of Visual Studio. For a tool as powerful as VS.NET $100 is great value, but it's still $100. There are many people to whom that's not a justifiable expense. Web Matrix is an excellent tool. Visual Studio also use a different programming model (code behind) by default - in fact I think its support for code-inline is actually quite poor, something which can cause more confusion.

So, what should we have done? Perhaps at the beginning of the book we should have explained the tools, the differences between them and shown how building ASP.NET pages worked in them. We could then have kept the rest of the book fairly tool agnostic. Screenshots could perhaps have been marked to indicate the tool in use, maybe showing the different tools if one provided a feature that is worth highlighting. This would have to be done very carefully, as multiple screenshots showing different tools for essentially the same task breaks up what's being shown. If you've only got one tool then extra screenshots are annoying (hence the idea of doing all that at the beginning).

We're going to look into this as a project for when we do a beginning book targetted at ASP.NET 2.0.

We've had similar complaints over the years regarding the use of langauge. That isn't an issue with this book as it's VB specific, but things like Professional ASP.NET however need to cover both languages. The general view is that C# programmers can read VB code more easily than VB programmers can read C#. It's a fairly sweeping statement, and obviously isn't 100% accurate, but what can we do? We can't put samples in both langauges as the book would be twice the size (and cost - there are also physical limitations on book binding), and the book would just feel really fragmented. So we mostly used VB and sometimes C#. For the downloadable samples there are two complete code trees - VB and C# (or will be when I get time to finish them).

Views on these topics welcome. What do you feel about the tool usage? Should there be more VS.NET usage in books?

posted @ Tuesday, March 30, 2004 6:28 PM | Feedback (0)
I'm losing my memory
I despair of software sometimes. I'm currently updating a chapter and just wanted to switch to outline view, whereupon I'm met with an error message from Word saying "There is not enough memory or disk space to display the outline". Funny, very funny. I have three disks, with 4Gb, 6.3Gb and 10Gb free respectively and 2Gb of memory, of which only 512Mb is in use. How much memory does Word need for a 28 page document?
posted @ Monday, March 29, 2004 5:34 PM | Feedback (-32)
TechEd Here We Come

Well, it's official. Alex and I will be at TechEd USA. SAMS have invited us over to help promote the new Insiders book. I'm quite excited - I've never been to a TechEd in the USA before, and am hoping to actually get to see some sessions. At PDC I spent most of my time in meetings. We're staying the Westin Horton Plaza, where you'll no doubt find us in the bar.

posted @ Monday, March 29, 2004 5:27 PM | Feedback (1)
ASP.NET Masterclass
My ASP.NET Masterclass wnt well yesterday. Code and slides are available here.
posted @ Friday, March 26, 2004 10:13 PM | Feedback (2)
Microsoft and the EU

Julia links to some satire regarding Microsoft and the EU. I for one, as an EU citizen (a reluctant one at that - I'm English) think this is a bad move for the consumer. There's plenty of talk about home consumers don't want these features supplied as default with the OS, but no one asked me. I want these features. If I want another media player I'll download one; I happen to like WMP. Plenty of my friends don't and they've downloaded other players. I respect others views and their likes and dislikes. The EU is going to make it harder for me to get the features I want, either by extra work downloading or by paying for extra "add-ons".

I don't see why it needs to be removed anyway; why not just allow OEMs to install other players, giving consumers a choice. All it's going to mean is more problems for everyone; support, as you haven't got certain features; developers as the API will be different depending upon the country.

I'm wondering when this madness will stop. How long is it going to be before VCR manufacturers start suing Microsoft for Media Center Edition? When Longhorn comes around I want it to have rich multi-media features - I don't want to have to pay extra for them. I expect it in the OS, as befits the times. Jeez, this isn't 1980 anymore.

posted @ Friday, March 26, 2004 5:26 PM | Feedback (-43)
No Total Recall

A story of poor customer service. The car has been booked in for a week, and this morning I drive down to the garage. It's a 40 minute drive. There is a local Ford dealer, but it's still under warranty so I took it to the original dealer. I hand the letter from Ford over, with the keys, and sit down with the laptop. A 20 minute wait ensues, when someone wanders over - "Sorry, we haven't got the part". Great. An 11am appointment and you didn't think to ring me. I love wasting my time. And it's not as if it's hard to get hold of - the car is rebooked and they said the part "will be here from tomorrow". Sigh.

posted @ Monday, March 15, 2004 7:58 PM | Feedback (1)
Cross Posting

So far I've refrained from having blogs on any of the main .NET sites for a couple of reasons. Most of the time what I'm working on I can't actually talk about - NDAs and all that. Also I already have a blog so didn't want the admin nightmare of double posting, or remembering where I'd posted something. But tonight I finally got off my backside and did something about it and wrote a tiny front-end for .Text that cross posts to multiple blogs. I'ts not very complex - just the FreeTextBox component and few extra bits, sitting on top of a web service client to the .Text web service. So now with a single post (and this is the first) I can post to multiple blogs with just a simple button click.

I've built in support for categories and blog selection, so I can decide which posts go where. All posts (many of which are personal) will go to my main blog (which is also reused as my Al and Dave diary, but only work related posts will go other blogs, such as the one on ASPAdvice.

posted @ Monday, March 15, 2004 4:43 PM | Feedback (-72)
Snow in March
Got home at about 7:00pm last night from a meeting and muttered to myself "cold enough to snow", not thinking it really would. Moderately surprised therefore to find almost 3 inches of snow this morning. Still the daffodills look nice. Dan decided to be intrepid, wrapped himself up, and cleaned his car.
posted @ Friday, March 12, 2004 2:14 PM | Feedback (-129)
Almost Total Recall

Back in September I got myself a new car. Well, 18 months old, but still with that new feeling. Lots of gadgets, which is nice. Anyway, this morning in the post I receive a letter from Ford with the words "This is not a circular" large and bold on the front. I open in trepidation, to face "Product recall". Uh oh. An image of exploding engines or tyres that mysteriously fall off quickly flashes through my mind. Luckily it's less worrying, and goes something like this:

... whereby the handbrake, if not applied as directed in the owner literature, may not hold the vehicle stationary when parked.

As Dan says, how is can you not put the handbrake on correctly. Press button, lift, release button. Seems easy enough to me. I'm now curious as to what the "owner literature" says. I now have to spend heaven knows how much time sitting around in the garage while they fit "an improved lever ratio". I'm wondering what ration of levers to handles of got, and what I'm going to get.

Oh, and I'm now warm for the first time in four days. New oil tank fitted yesterday, and filled with oil today. Also a new electronic doohicky to tell me how full it is.

posted @ Tuesday, March 09, 2004 8:43 PM | Feedback (3)
ADSL is coming

Well, probably. I remember around 4 years ago when BT first announced ADSL and I was the first on our exchange to sign up, after the promises of free installation. We spent several years without a trigger point, BT essentially saying it wasn't worth upgrading the exchange, but in November we were given a trigger of 250. It's a rural community, so it was always going to be worrisome as to whether we'd even get that many registrations. The exchange serves 4 or 5 villages, so we coordinated our campaings, and at 14:50 today we hit the trigger point.

The only trouble now is that there are roughly 300 exchanges already waiting to have an upgrade date set, so even though we've hit the trigger it could still be many months, not only before we get the upgrade, but just to get the date for the upgrade. Sigh.

Still, not that it really affects me since I have a very expensive piece of wet string between my house and BT providing a leased line service. If only I hadn't locked myself in for several years to save money.

posted @ Friday, March 05, 2004 9:03 PM | Feedback (-13)
Trials: Living in the countryside

In this small little village that I live in we have general lack of facilities; shops, buses, and most relevant of all, natural gas. So all our heating is from oil. The tanker arrived yesterday to fill up my tank, which is alarmingly low, only for the driver to tell me that he can't fill it because it's rusting underneath. "It may last 5 years, who knows" he says in a somewhat offhand manner, "but if it leaks I get blamed.". Gee, thanks for the support. So now I have to get the tank replaced quickly because I've got very little oil left. He won't even put a little in just to keep me going "minimum is 500 litres", and it's only a 1000 litre tank. I love customer service - it's taken them 5 days to get to me. If they'd come when I ordered it I'd have been able to organise a new tank before running out.

So, it looks like it's going to get cold here. And quite possibly smelly without any hot water.

posted @ Thursday, March 04, 2004 2:45 PM | Feedback (5)
Trials: Being a programmer
I got some great coding done on Sunday. Went really well. Then spent three days trying to get something else to work, only to figure out yesterday that it's not actually possible. Ugh. The ControlDesigners in VS 1.1 officially suck now. Still, I've learnt a lot about them, especially what does and what doesn't work. The good thing is that they are greatly improved in Whidbey.
posted @ Thursday, March 04, 2004 2:36 PM | Feedback (1)
Microsoft Tools and Hobbysists

Rory is writing about hobbyists, and how Microsoft shouldn't cater to them. The comments show some interesting, and rather opinionated, responses. I think they all seriously underestimate the number, and importance, of the hobbyist. There are several points:

  • Anything you do in your spare time is technically a hobby. If you're a professional developer and code in the evenings that's a hobby. I know there's a big difference between bobbyists and professionals doing their day job in the evenings for fun, but bear with me.
  • Do you use the same tools for your hobby coding? Did you buy a copy of VS.NET Professional so that you could program in the evening? It's an expensive tool, and whether or not you're a professional developer, it's probably too expensive to buy just for some light (or heavy depending upon your viewpoint) in the evenings.
  • There's a big difference between hobbyists and beginners. There are plenty of people who are experienced developers by coming to the platform ffor the first time. Sure there's pain, but that's part of learning. Why shouldn't Microsoft make that pain slightly less. All the drag 'n' drop, easy data binding stuff really seems to get people annoyed, but if you don't like it don't use it. This is aimed at beginners - the hobbyists don't use VS, they use things like Web Matrix. Actually, it's not just aimed at beginners - it's aimed at people who want to get things done quickly - application prototyping is really easy when you've got a tool that allows this sort of development.
  • Catering to existing VB programmers is sound commercially. VB 6 books are still seelling well, so that tends to indicate there is a string market. And incidently the top two selling books that Wrox ever produced were Beginner books - the market for beginners is very big.
  • Don't assume that because Microsoft has made VS easier that it's being dumbed down. You have to look underneath the skin - there's a heck of a lot more to Whidbey that just a few fancy features in the tool.

    Rant over

posted @ Thursday, March 04, 2004 2:30 PM | Feedback (0)
ASP.NET Server Controls

OK, I finally gave in and bought Developing ASP.NET Server Controls and Components. It wasn't a 'give in' because I didn't want to buy on, on the contrary I've been meaning to buy it for a while, but more a case of realising two things.

  1. I really don't know enough about this subject. I've written some basic server controls, and some designers, but have come to a brick wall on the designer front.
  2. The documentation is woefully inadequate in this area. Not just inadequate, but inadequate in a bad way. There are so many areas that just don't explain what something is used for, why it needs to be used, and how to use it. A complete lack of good examples.
  3. This latter point has me wondering why I just don't ask the ASP.NET team to take me on so I can actually improve their documentation. A job with a salary seems an exciting prospect instead of the vagaries of the book market.

posted @ Wednesday, March 03, 2004 2:34 PM | Feedback (3)