The Lesson of HyperTerminal

In response to My Giant Calculator, Joost commented:

This is a companion discussion topic for the original blog entry at:

Is Hyperterm a shining example here? One of the first things I do on a new PC is look for a better terminal emulator… and a port monitor, for those times where nothing seems to be happening and you’re not sure if HT is the problem again.

On NT, it tended to bork up the serial connection so badly only a reboot would set things right. No fun when you’re debugging an embedded app and serial is currently your only way in.

The interface is horrid: click on the little phone resting on its cradle to connect? Number one, the phone’s an outdated metaphor; number two, the metaphor is wrong! A phone “on-hook” in the real world means disconnected, not connected. The toolbar button for “Disconnect” has a similar problem: the receiver’s off the cradle, meaning connected. Yes, there’s a little arrow pointing down, but at 1280x1024, you can barely see it.

We’re still greeted at startup with a dialog asking to choose a name and icon for this connection… who cares. If everything works, then I’ll save the configuration.

HT has improved slightly since the NT days. On XP, that 1993ish spinning globe splash screen is gone; good riddance. And it’s a little less phone-oriented now: I no longer have to type in an area code for my test board.

For Notepad, I was happy to finally see Ctrl-S hooked up to File|Save.

(As an interesting comparison, OS X’s bundled-in TextEdit is quite beefed up compared to NotePad, but refuses to save as plain text unless you explicitly set the doc type to plain text in the menu. If you don’t notice that, no plain text for you.)

Is Hyperterm a shining example here?

Compared to Notepad? I think so. Notepad barely qualifies as an application!

One idea would be to have the MSDN group take them over as tutorial development projects. With each new OS, the MSDN group updates the project to use the recommended programming techniques for the current platform and development tools.

You keep them current with the platform, use them as a showcase for the dev tools and demonstrate best practices to the development community.

Note, that I’m not saying to open source them - Microsoft needs to maintain control and consistency for the basic but ubiquitous parts of the OS - but it would put them in the hands of a group that is motivated in enhancing them - where this is obviously not the case right now.

Why don’t they just ship the calulator that’s in the Windows XP Powertoys as standard?

That calculator does everything I need, with a much better interface.

Why Microsoft will not do that is easy:

  • Programs fulfilling the purposes already exist and don’t produce additional costs
  • The programs are doing what they should
  • Microsoft risk to get sued if they are “trying to take over the calculator-software-world” when shipping a better calculator.

Notepad is mostly used for showing up - as you said - readme-files and for editing config-files. None of the both doesn’t need much functionality.

The only thing that pisses me of is Notepad showing lines separated by \n only as one line, so the first thing I do with a new Windows-installation is copying the link to Wordpad into the Send-to-directory.

Regards, Lothar

But calc and notepad have been updated.

That’s an easy one to answer, because if Microsoft makes any bundled software that’s worth anything they will be sued into the ground by every person, state, country that has a David/Golith complex while touting the robustness and stability of Apple even though one of the only reasons things just “work” with Apple is the simple fact the everything is bundled and proprietary.

But calc and notepad have been updated

Minimally … from the Chen article (which I believe refers to Windows XP):

Notepad gained some additional menu and status bar options
[with Calc]: Massive technical improvements. No visual improvement.

Raymond has a point. So they added additional precision to Calc, and a handful of tiny improvements to Notepad. Unless your changes cascade into the UI in some way, what have you really done?

Can’t be much…

Here’s another example of the built-in applet deficiencies:

I remember using Defragmentation Software on Win98 and having consolidated free space (in one big large chunk). But I, too, have made the observation, that with WinXP this is not possible anymore. Since I have a lot of Cygwin and Java related stuff installed, which uses many, many directories and small files, it seems I can never consolidate the 4 GB free space of my 15 GB partition. There are always the “folders” all over the free space fragmenting it into small pieces.

It has nothing to do with delivering a better product and everything to do with the sue-MS if they do anything to make someone out there lose money mentality.

To tell the truth, Notepad and Calc would make horrible MSDN tutorials. Most programmers don’t even know why floating point numbers are totally unsuitable for money calculations, yet you see it done everywhere…

Notepad is notepad, it’s not suppose to be anythng more than a text editor. Have you heard of wordpad? It’s notepad’s bigger brother. Notepad is meant to edit raw text, html, code, stuff like that, not to add different text sizes and paragraph information to garble up the text into anything else.

Notepad is what it is. A no frills text editor which, unlike Wordpad, etc adds no text formatting characters This is an advantage when looking at configuration files etc which tolerate no changes from the original form.
If you want to do fancy text, use Word.

HyperTerminal isn’t perfect either.

An old bug in XP allowed HyperTerminal to go into an infinite loop if the cursor blink was turned off. It was due to a mistake in math in a timer dispatch loop. A value of -1 would make the loop think that it constantly needed to process the routine to flash the cursor.

Since HyperTerminal managed the display of the cursor, this meant it was drawing it faster than it could be perceived. But, it did it really well and fast!

The really unfortunate thing about Notepad is that-- at the risk of stating the obvious-- it sucks.
Oh lol. Do you also think that your average alarm clock sucks because it does not show temperature, pressure and martian standard time (daylight savings included)?

The worst thing one could do with notepad is to add toolbars and such. I’ll personally curse anybody who does this. If you need toolbars, just go use wordpad, word or any other third-party software. Different programs are for different things.

GNU Emacs anyone? It can be used to do everything, but, cooking. Well, at least it has editor :smiley:

It may be out of context.But I want to ask the author if we can have code for hyperterminal or similar interfaces?I am asking since he has experience in writing serial drivers.Thnx

Switching to almost any Linux desktop distribution will give you better software applications out of the box.

One of the most surprising and pleasant experiences of buying my Mac has been the INSANE amount of built-in applications and tools. Out of the box, it can open almost any file, debug almost any error, and (with XCode) has a massive library of example code for the only IDE I’ve ever actually enjoyed using. Once I’ve installed iWork, I’ve literally bought only 2 or 3 productivity apps, most of which I don’t use very much. The vast majority of my purchases have been minor tweaks, games, and specialty apps.
On Windows? Almost exactly the opposite. As with any modern OS, there are free alternatives to almost everything, but few of them are worth mention on Windows, and you have to wade through a literal SEA to find them. And Visual Studio? Good Lord that’s expensive, and I’ve encountered numerous bugs and inconsistencies while using it.

As to Chen’s article, especially regarding Calc:
Forgive me for seeming bitter, but that should have been the case TEN YEARS AGO. Why do you think people write degrading articles about it? Because it’s a decade behind, and even further behind your cheap-o kitchen calculator.
They’ve had their own libraries capable of doing accurate decimal calculations, but they haven’t used them. They’ve been in a flood of ever-improving frameworks and code libraries from other sources, but they never took the opportunity to learn from any of them until recently.
What’s wrong with this picture? I see the same lack of care all over XP and Vista, and it’s shameful. Either the Quality Control staff should be fired on the spot, or the project leaders should, for putting out such an incomplete product after SEVEN YEARS.

For another good example of stuff that goes un-updated for far too long, in Windows XP, open up Fonts in the Control Panel, and in the File menu, click Install New Font. That’s like Windows 3.1 stuff right there.