# Sunday, April 29, 2007

This post from Phil Haack points to Charles Petzold's concern that "prose is dead" in technical books. The concern was based on Jeff Atwood's comparison of two different WPF development books. Wow, how's that for name dropping? Three names in two sentences. I ought to point out that I have a great deal of respect for Charles, Jeff, and Phil and all three write blogs that are in my must-read list.

As shown in Jeff's comparison, one book (Petzold's) has large blocks of uninterrupted text and appears to be entirely monochrome, while the other book (by Adam Nathan) has smaller blocks of text and makes liberal use of color and visuals.

I agree with Phil's commentary about "visual learning," and his pointer to the excellent "Head First" books is spot-on, but I actually think there's an even more important thing to consider here. That's the subject matter... in this case, the topic of both books is the new Windows Presentation Foundation API that's a part of the .NET 3.0 release. I find Petzold's statements that "Powerpoint has won" and the "battle for the future of written communication is over" to be a bit unfair. It implies that readers are looking for visuals alone or that well-written communication is no longer important.

Anyone who has seen a WPF sample application knows that this is not the same ol' Win32 GUI toolset. In the hands of a talented designer, it's shiny. It's pretty. It glows. It makes you want to look at it... is it unreasonable to prefer a book that conveys the same feeling?

It's also worth noting that the bar for information presentation has been raised over the past few years. As computer users become more familiar with different types of data visualization, and as flashy UIs like Vista's Aero take hold, expectations for UI are higher. Even in a typical "line of business" application, it may not be enough any more to use the same old Windows UI toolkit. You could certainly argue that it's possible to build an efficient, intuitive, and fast application using the same Windows UI tools we've used for nearly 15 years. No question. But few applications compete only in their specific market or product area. Most are competing for attention with other applications on the user's machine. Or with a massive web designed, in many cases, by some very talented designers. If you want customers to enjoy using your application, as opposed to feeling like it's drudgery, spending some time (and money) on its appearance and visualization is critical.

Now replace "using your application" with "reading your book". 

I've not read either book yet (though I plan to do so shortly, thanks to the O'Reilly Safari Library subscription -- highly recommended), but I don't think it's unreasonable that Jeff (or anyone else) prefers the book that has more visuals. A book whose purpose is to introduce a "Presentation" framework probably ought to have the presentation of its content made a higher priority than would a book discussing some "under the hood" technology (say, the Windows Communication Foundation, or WCF). In a book that covers UI controls, gradients, and different layout options, I'd probably like to see... UI controls, gradients, and different layout options.

That's NOT to say that the communication of ideas and information aren't the highest priority. No amount of visual flash will makes up for poorly-written, poorly-edited, or poorly-communicated content (and that's the true evil of Powerpoint). And few are as well-regarded as Petzold when it comes to communicating difficult technical content in a way that's easy to understand and put into practice. An entire generation of Windows programmers, including myself, was "raised" on his Programming Windows titles. I'm certain that I'll find his book well-written and that it'll provide useful information on WPF.

But it's not hard to see why some would prefer a book that presents a presentation framework in a presentable way... is it?

posted on Sunday, April 29, 2007 10:47 PM Mountain Daylight Time  #    Comments [0]
# Monday, April 23, 2007

Last night, I mentioned that I was mostly happy with the Vista upgrade. One thing, however, that is standing out for me as a major annoyance is its insistence on treating ZIP files as folders in Window Explorer.

In the left pane where folders appear, ZIP files are treated as if they were subfolders of the folder in which they appear. I can see why some people might prefer this behavior -- you can, after all, just click on the ZIP file as if it were a folder and the right pane will display the files within the ZIP archive.

The problem for me is that I have some folders that contain a hundred or more ZIP files. When I navigate to those folders in Explorer, the folders pane on the left suddenly becomes very long and unwieldy. When there are just a few ZIP files in a folder (as in the screenshot above), then it's not a problem... but when the entire folder pane gets taken over by ZIP files, it sucks. Navigation becomes very inefficient.

Under XP, this could be taken care of by unregistering a DLL at the command line:

regsvr32 /u zipfldr.dll

Under Vista, you'll get barked at if you try this:

The module "zipfldr.dll" was loaded but the entry-point DllUnregisterServer was not found. Make sure that "zipfldr.dll" is a valid DLL or OCX file and then try again.

I've Googled around quite a bit and perused the Vista-related newsgroups, but have yet to come across an answer... though there appears to be no shortage of people asking the same question. I've got both WinRAR and WinZIP 11 on the machine (yes, both are licensed and paid for) and associating either of those with ZIP files doesn't make the view-as-folders thing go away. It just changes which app opens them when you double-click a ZIP and which icon is used to identify them (WinZIP in the above screenshot.

Note: It does seem that there are lots of people who have broken Vista's built-in handling of ZIP files and need to get those files re-associated with the Vista handler. This appears to be resolved by opening a command window as an administrator and running this command:

assoc .zip=CompressedFolder

Any advice on getting this resolved?

  Technorati: , ,

posted on Monday, April 23, 2007 10:24 PM Mountain Daylight Time  #    Comments [0]
# Sunday, April 22, 2007

I've been meaning to re-pave my home machine for a couple of months now. It had a ton of stuff installed, uninstalled, updated, and so on... plus, as I mentioned previously, I'd been toying with the idea of pushing it up to Vista Ultimate. Well, after getting those hardware problems taken care of, I went for it.

It's actually been a pretty smooth process, though it seems like a re-pave takes longer each time I do it. And it's not just getting all those apps installed... it's also all the little settings, utilities, checkboxes, and customizations. It really does take a while to get a new rebuild to feel "comfortable".

One thing I've done for the last few years that does make this process a LOT easier is to organize my hard drives into multiple partitions. I've typically done this with Partition Magic, though there are are other alternatives that seem to get high praise. I keep all the stuff that I don't want lost in a rebuild on that second partition (seen as a D: drive). Under WinXP, I'd move the "My Documents" location with TweakUI (Vista has this capability built-in), I make sure to put SQL Server's data location over there, and obviously any development projects. It makes it a lot easier knowing that C: can be wiped clean and rebuilt without losing the stuff I care about.

I just wish there was a way to also back up all those little settings and customizations that get made over time (e.g., my preferred layout/view for file Explorer, various registry hacks, and customized views in Outlook).

Anyway, I had this drive partitioned already from the initial XP setup... so moving to Vista was pretty easy. I'd actually like to make my C: partition a little larger (D: has lots of free space) and I was excited to learn that Vista has partition resizing/moving built-in. It's under the Computer Management MMC plugin through Control Panel->Admin Tools. It turns out, though, that Vista doesn't let you extend a bootable partition (e.g., my C: drive) -- only shrink it. I'm sure there's legacy some reason for this, but given that it's a basic capability in 3rd party tools like Partition Magic and others, it seems silly that Vista won't let me. To make matters worse, I hear stories of people using Partition Magic to create NTFS partitions and then Vista can't read them. Not cool... but space isn't that big an issue, so I'm looking at those other options.

All in all, the process went smoothly and nearly all of my hardware had drivers installed automatically. The one exception was the built-in SD card reader on this laptop. The cool thing, though, was that Vista saw the problem and notified me of a solution -- updated drivers were available through Dell's site. Everything else installed and has been working well and performance is great -- the machine definitely feels snappier than it did under WinXP.

As a reference for the scores above, the machine is a dual core Inspiron (T2500 processor at 2GHz) with 2GB of RAM, NVIDIA GeForce Go 7800 (using Microsoft's WDDM driver at 1920x1200), and a 7200rpm Seagate Momentus drive. The display performance, in particular, has been great and Aero looks gorgeous with the bright TrueLife (glossy) widescreen display.

Vista's got a ton of UI tweaks, so maneuvering around has taken a little getting used to... and I have to admit to turning off UAC. Maybe I'll turn it back on now that most everything is installed and settled, but how many "Yes, I'm sure" buttons does a guy need to click? I'm still trying to get used to the newer Explorer UI and I wish I could get the Sidebar and its gadgets to Auto-Hide (the way the Task bar can)... but I really dig the ability to quickly search the Start menu.

Overall, I still feel like I'm settling in... but all my apps and tools are installed and things seem well. Now I'm going to go watch some fancy window animations for a while.

posted on Sunday, April 22, 2007 11:50 PM Mountain Daylight Time  #    Comments [0]

So my home/personal machine decided to take a nose dive a few weeks ago and I'm just now getting to the point that it feels "whole" again.

It's a Dell Inspiron E1705 (same as the 9400) and I'd been running WinXP Pro on it since I bought it last summer. I'd been meaning to update it to Vista at some point, so I started making some backups and taking notes on various app/driver compatibilities. All seemed well, but during that process it began to spontaneously reboot. No warning, no nothing -- just a sudden, blank screen and then the Dell boot-up sequence.

The first time it happened, I figured it was a fluke-ish thing. Then it happened again a few days later and then twice in one day. Finally, it got to the point that booting into Safe Mode only worked intermittently and I began to get a BSOD that talked about hardware malfunctions. Not good.

So I call Dell and they decide that it's a CPU problem. According to the tech, it seemed that the CPU was overheating and after doing it once or twice it would just get flakier and less stable. The machine does run hot, but I'm always careful to run it with the vents and fan outlets unblocked.

Anyway, he says they'll ship one out and have a technician come over to replace it. I bought the machine with "Next Day, On-Site" service. Turns out that they mean "the next day after the part you need arrives in the hands of your local technician." Pretty lame, but I could live without the machine for a day or three.

Once the tech came out and installed the new CPU, I burned the machine in for quite a while to see how it would behave. All seemed well, so I went for it... popped in the Vista install disc and went to town.

Two weeks of heavy use since then and still no real problems. Do I trust it? Still not sure... but that warranty coverage is in place for a few more years so even the worst case scenario doesn't have to be all bad.

One nice upside is that the Dell support tech that I got (late on a Sunday night, no less) was great. He was based in Salt Lake City and didn't go through the usual "First, let's reboot" script once he realized that I'd spent some time troubleshooting. He even gave me direct contact info later "so if you need to call back, you don't get routed through India." Nice!

  Technorati: , , ,
posted on Sunday, April 22, 2007 5:41 PM Mountain Daylight Time  #    Comments [0]