Microsoft Like Moria, Not Mordor

balrog

Contrary to public opinion, Microsoft is not Mordor.

Microsoft is like Moria.

Being a developer and faced with the task of developing some particularly interesting feature for, say, the Internet Information Server (IIS), is much like Gandalf and the companions looking at crossing the mountains through the treacherous kingdom of Moria. Once a kingdom of dwarves, treasures and royal hallways, the rumors that now spread from these caverns are dark and brooding. And entering the domains of Moria will always be an adventure, whichever way you look upon it.

You may get through, of course, if you’re quiet, don’t do anything surprising, and stick to the API’s. Keep it simple, and don’t touch anything you shouldn’t touch. It will be a long, dark passage, but you may eventually get through to the other side.

On the other hand, you may get lost, stray into tunnels that you shouldn’t have gone into; and disturb the deep darkness below. Too many have been lost in these caverns and you are now about to be the next victim. You pass through chambers with ominous writing inside (“here lies Balin, king of Moria”) and stumbling, falling, irretrievably lost proceeding further and further into the darkness…

You can abort. Cut your losses, and get out. You never should have come here. We’ll make for the gap of Rohan instead! Quickly, now!

But some part of you pushes on… There must be an exit ahead… Who knows, behind the next corner you may feel a gust of fresh wind, and a dim light far ahead, the opening to the outside and you’ll be through. But instead, you cross a barrier and suddenly you’re face to face with the Balrog, the most terrifying of all enemies. You’re at the brink of insanity and plunging forward. There is no escape.


Trying to script the IIS is an excellent example. The API is dark and mysterious, and faint murmurs of a dark evil reach you as you stand by the door. And a short way into the inside, you reach a decision point: Should you use the XML metabase? WMI? ADSI? All of these have possibilities, and yet, dangerous drawbacks.

You spent some time trying to figure out what wmic is and how it works. Turning out to be an utterly incomprehensible object, you shy away from it. Next up, you work with CIM Explorer to explore the WMI and MicrosoftIISv2 namespace. It is equally incomprehensible, and every attempt you make to understand it and get ahold of its promises are futile. Like a slithery Gollum, it writhes out of your grip and disappears into the caves. “My preciousssss!” you hear a scream in the distance.

Next up: ADsUtil. A wonderful little VBScript gratitiously provided by Microsoft. By it quickly breaks in your hands – it returns strange and complicated errors when applying it to the IPSecurity object. But, even though ADsUtil crumbles to dust (for magical reasons, you assume), the ADSI approach seems worthwhile. The air in this tunnel seems fresher. You stumble on.

A while later, while pouring over .NET, DirectoryEntry, and hitting your head repeatedly on sharp, nasty stalagmites stalactites hanging from the ceiling, you force yourself into twisting little dark tunnels, which now consist of strange, magical invocations of objects, GetTypes, unexplored COM objects, and you have the vicious feeling that nobody has been here before you in a very long time.

And right there, just when you hit entry.CommitChanges() and think that you’re home safe, an exception is suddenly thrown out of the blue. A wall collapses in front of you. And there it is… the Balrog, full of flame and fire and smoke and radiating with a pure evil from aeons past.

I should have made for the Gap of Rohan. Now, it’s over.

*sigh*

2 Comments

  1. Posted June 3, 2009 at 10:56 | Permalink

    I don’t speak Lordoftheringish but I am grateful that God made people like you – the developers – who go through much trouble so that people like me – the users – don’t need to think at all. Instead after using my computer and its Microsoft components that all did as I pleased, I can focus on how to remove the now dry berry stains from my daughter’s new t-shirt. OK, if I soak it for a day in a mild white vinegar, they should go away. White vinegar removes new berry stains if you rinse the clothes in it and then wash them as usual and old stains after soaking. However, other fruit stains or Microsoft cannot be tamed with vinegar. Your sister has that heartblog, maybe there is a blog for stain removal too?

  2. Posted June 3, 2009 at 20:06 | Permalink

    I just have to ruin you alittle, namely that stalagmites grow from ground up. Those that hang from the ceiling, are stalactites :P.

Post a Comment

Your email is never shared. Required fields are marked *

*
*