2017-02-23

Growing Better Information Systems

I haven't had much time, in a very long time, to write much here. I generally find myself too tired to be bothered, because for all intents I spend my days baffled by the view of Information Technology (IT) that plagues the world of business. The narrow view that IT is a thing, an object, and simple is one that I have difficulty understanding for two reasons: the obvious ongoing, cyclic problems in IT strongly indicate a systemic failure that suggests the current business view is flawed, so one would imagine bean-counters would question the view itself; and in a world where computer systems are so ubiquitous, one would think by now there was a better basic understanding of proper application. Perhaps I shouldn't be so shocked how skewed the perception of IT is, but I remain eternally baffled by it nonetheless.

The reason I began my latest tour of duty with an effort to substitute the words Information Systems (IS) for Information Technology was to linguistically offset the embedded mistaken view of IT, to replace the archaic view that gear substituted somehow for better integrated design. I failed, of course, for the same reasons all professionals in this field do -- I counted on communication to offset perceived experience. I stress the experience is perceived, because people integrate their experiences with IT in an unreal way. If something appears to work, they accept it and become ensnared by it to a degree where it will always be the "best" way. If something fails it will always be because of bad IT. Seldom, if ever, does anyone think of boundaries -- and never does anyone ask a fundamental question about the proper application of the proper systems under the proper processes. Almost no one makes the integral connection between people, process and machines in a realistic way.

But growing better IS is an absolute necessity if managed change creates a foundation for excellence. You cannot stagnate, and never can you lose sight of the way things should look 2 to 5 years down the path. To do so, to bury oneself in the minutia of now, is to lose the advantages presented by a continuous improvement model. And yet even the best companies -- even technology firms -- seem completely detached from this idea of cyclic improvement. Even companies where the reality of the past is choking productivity visibly fall into the bizarre pattern whereby the growing pains of applying better IS is blamed for the exposures that bad IT created. And while I understand the reasons for that -- exposure hurts -- it flies in the face of the whole purpose of systems.

Recently Bill Gates has talked about taxing robots, which is one of the two occurrences that triggered this missive. Not because robots are good or bad, or because Bill Gates said the word tax; but because in principle his observation actually reflects the real and broad impact of IS in the world. he was observing that this taxation option was a reasonable response to the integrated effect automation is having on the broader society. He was observing that IS is part or the world, and needs to be managed for continuous improvement of not just the solutions...but of the society in which the IS resides. His observation is not only true, but highlights the ultimate engaged view -- a view about how IS actually affects the world.

The other occurrence was more mundane, and I won't go into details here because it isn't appropriate. But it came about when I was faced with recognizing that even smart people who deserve a lot of respect have no real understanding of IS as a weapon for improvement. They still view the business application of IT -- gear -- as the fundamental role of IS in business. And they still frequently subscribe to the fatal view that involving IT at a business level makes sense. The idea that IT must identify platform benefits is sound, but the idea that IT should or can enforce the use of platform sets is simply odd. Weirdly, it is not even a role that IS should play; because if you let IS force use patterns, you lose the functional benefit of non-technical expertise. Having IT or IS dictate use is tantamount to having a farmer who grows a potato command those who bake it exactly how to do that. Yes, it will be baked, but the expertise of the cooks is essentially discounted in favor of someone who grows the ingredients.

The point of this ramble is simply this: growing better IS is about designing systems to capture and echo expertise that is not about IT, but about empowerment. Yes, some mechanics are set in stone by such designs, but the application of tools is the creative part that can seldom be enforced by the designer. To start with the view that IS or IT should be a definitive provider of the last word on use of anything is a flawed view of what technology and systems are meant to do. Process definition is a business function, not a mechanical one. Process is defined by business knowledge. It can be modeled by IT (and far better by IS), but it cannot be set by technologists. And communication is a key in any case, which when missing, creates dissatisfaction and a destructive stagnation.

2014-08-04

ODP.NET OracleDecimal Conversion Fun

This is one of those self-supportive posts I love to discover.

I have used ODP.NET and Oracle for ages (the latter for more than 20 years), and generally I don't run into anything too odd, but in a very recent project I encountered something that threw me. In fact, it took a few kicks at the can to even be sure it was what I thought.

Since the project was in VB.NET, I'll show a similar line:

Dim intVar as Integer = CInt(OracleCmd.Parameters("ParamName").Value)

The Oracle command parameter in this case was a NUMBER type being returned from a stored procedure, which in ODP.NET returns an OracleDBType.OracleDecimal.

As soon as this line was encountered (and a Long conversion did the same) the code would fault with a conversion type error. Now, at first glance it threw me because I wasn't thinking as clearly as I probably should have been. And I asked myself, "How the hell can a cast from a decimal to an integer fault?" Worse was that I was misled by the actual value, which was the number 1; and my ignorance of the obvious was reinforced by a slew of documentation that noted the OracleDecimal type was equivalent to the .NET Framework's System.Decimal type.

In reality, of course, OracleDecimal is a boxed value. It may contain a decimal, but it is stored in a way that prevents an explicit cast. (I understand you can CDec it, or do a decimal cast from the ORacleDecimal, though I didn't test this.) That means that you can't expect the line shown above to work. That said, you can expect this to work reliably:

Dim intVar as Integer = CInt(OracleCmd.Parameters("ParamName").Value.ToString())

This works because the ToString() append returns a new string to memory that is a representation of the string equivalent of the primary stored number in the OracleDecimal box. It doesn't technically un-box the object, but it serves the same essential purpose and by casting a new string the CInt (Or CLng) then acts on the string returned. So, in the case of my quirky situation, ToString() returned "1" and that was then equivalent to writing CInt("1") to return a 1.

As inelegant as that all is (I'm sure there is a more pleasant way of working this magic) it works, and when you are supporting legacy code (in this case a conversion from the old MS Oracle data services provider to ODP.NET) it represents a workable solution. It is much faster than fiddling about trying to un-box the actual value, or whatnot, and you can search and replace the damn thing fairly efficiently.

The conclusion is that I was reminded of how boxed and unboxed objects behave, and how badly misleading documentation can be (even when it is correct). What hasn't been explained to me by this, of course, is why Oracle chose to not handle the conversion internal in the provider and return a System.Decimal. It strikes me as likely this would have been a much less jarring when having to manage legacy code conversions to the new ODP.NET model. But, hey, I guess I can admit it reminded me of the fabulous complexity of simple things!

Quality of Design

This weekend I had an opportunity to look at an Access 2003 platform database/application, and it reminded me that quality of design can exceed platform capabilities. As any developer who has ever dealt with Access, especially ancient versions, knows, the product is a kludge upon a kludge. It tends to encourage bad design at the outset because of its lack of data/presentation layer separation, and it's crimes against productivity (in terms of user interface choices) are myriad. But the application I looked at was atypical of Access-based design in two distinct ways: it was designed with a mostly correct data model, making it migration-friendly even after all these years; and it was developed with a degree of restraint that avoided at least many of the traps of Access applications. That isn't to say it was the perfect product model, because Access just doesn't manage to engender perfection, but it was one of those pleasant review experiences where it so easy to see how to move it ahead without damaging its quality of design, it's functionality, or sacrificing future opportunities to the gods of necessity.

The takeaway from this is simple: platform can be overcome by good design to a great extent.

2014-03-14

A Little DB2 SQL Adventure

I don't usually blog about this sort of technical stuff, though I deal with it daily. That probably explains right there why I avoid it as if it is tainted by the plague. But this particular problem was interesting enough that I thought it might be worth conveying it.

The challenge for my associate came in the form of a bit of SQL that needed to pull apart a string (unknown until runtime) before it was inserted into a data store. A stored procedure wasn't possible, and the parsing requirement was unavoidable. It also had to be done with inline SQL.

It was known that this particular string could have several forms:
  1. A string containing alphanumeric elements separated by a dash;
  2. A string containing alphanumeric elements without a dash; and
  3. A zero-length string containing nothing (that could not be converted to a NULL on the incoming side for reasons not relevant here, but such that COALESCE was suddenly not a functional solution).
The SQL causing them grief had two variations in the INSERT, but to isolate the data elements I'll stay with simple SELECT statements from the system dummy table. And we'll call the input containing the string {Landmark} for the sake of abstraction.

The first SELECT would look thus:

SELECT SUBSTR('{Landmark}',1,LOCATE('-','{Landmark}')-1) AS DATA_ELEMENT FROM SYSIBM.SYSDUMMY1;
In essence the data element expected for return would see a dash in the Landmark string and return everything left of that dash. (For those wondering why not use LEFT in this context, it ultimately creates the same basic problem in as much as it will fail to return correctly if the Landmark value has no dash. So, it would have been a different approach with the same sticking point.)

The second SELECT would look thus:

SELECT SUBSTR('{Landmark}',1,LOCATE('-','{Landmark}')) FROM SYSIBM.SYSDUMMY1;
A simpler view of the same issue, which is easily illustrated by plugging in a few actual values that landmark might pass in.

The First Form

To focus now we can strip the SELECT and FROM SYSIBM.SYSDUMMY1 parts of the exemplar. It leaves us with the inline SQL reading:

SUBSTR('{Landmark}',1,LOCATE('-','{Landmark}')-1)

And the SQL works perfectly if the data coming in contains a dash and is not zero-length. In other words, '12345-12345-666' parses perfectly:

SUBSTR('12345-12345-666',1,LOCATE('-','12345-12345-666' )-1)

...returns a LOCATE value of 6, and when you subtract 1 it works out to return the substring starting at the first character and returning the first 5 characters.

The problem is that if the incoming string contains no dashes the LOCATE returns 0, and when you subtract the 1 from 0 the SUBSTR function rightfully chokes on the parameter. For example:

SUBSTR('1234512345666',1,LOCATE('-','1234512345666' )-1)

...is really:

SUBSTR('1234512345666',1,-1)

And SUBSTR doesn't quite know hat to do with that.

An even more complex problem arises when the string coming in is zero-length, because the resultant SUBSTR not only faults on -1 for is third parameter, it chokes on the first one having no length.

Using a stored procedure here would be glorious because it could check the length and do all that work in an orderly way, but my associate was stumped by how to get it to work inline and handle the three possibilities of proper dashes, no dashes and a zero-length condition.

What does work though is the inline use of a dual CASE that can handle the three possibilities (yes, it is not the only possibility, but it turned out to be the easiest to convey, even if it is ugly as sin). The statement then would have looked thus:

SELECT (
CASE WHEN LENGTH('{Landmark}')=0 THEN ''
ELSE SUBSTR('{Landmark}',1,LOCATE('-','{Landmark}')
- (CASE WHEN LOCATE('-','{Landmark}') > 0 THEN 1 ELSE 0 END))
END
) AS DATA_ELEMENT
FROM SYSIBM.SYSDUMMY1;

It parses by checking Landmark length and returning a zero-length safely if it is thus; and otherwise it runs the SUBSTR with an inner CASE block that tests the LOCATE return value and returns 1 if it is >0 and 0 otherwise. (This return is subtracted from the LOCATE value, so returning 1 subtracts 1, else we subtract 0.) With an example in place:

SELECT (
CASE WHEN LENGTH('ABC-DEF-GHI')=0 THEN ''
ELSE SUBSTR('ABC-DEF-GHI',1,LOCATE('-','ABC-DEF-GHI')
- (CASE WHEN LOCATE('-','ABC-DEF-GHI') > 0 THEN 1 ELSE 0 END))
END
) AS DATA_ELEMENT
FROM SYSIBM.SYSDUMMY1;

The benefit is that this protects you from the three possible data conditions.

The Second Form

For the stripped form of the second:

SUBSTR('{Landmark}',1,LOCATE('-','{Landmark}'))
...we can modify it with a simpler inline CASE conditional. We end up with:

SUBSTR((CASE WHEN LENGTH('{Landmark}')= 0 THEN ' ' ELSE '{Landmark}' END),1,LOCATE('-','{Landmark}'))

Or in the actual SELECT form:

SELECT SUBSTR((CASE WHEN LENGTH('{Landmark}')= 0 THEN ' ' ELSE '{Landmark}' END),1,LOCATE('-','{Landmark}')) FROM SYSIBM.SYSDUMMY1;

This works because SUBSTR accepts a 0 as its third parameter, and all we need to do is ensure that Landmark (first parameter) is never a zero-length string. The specific CASE part is:

CASE WHEN LENGTH('{Landmark}')= 0 THEN ' '
ELSE '{Landmark}'
END

In other words, return a single space if the LENGTH of the actual field data is zero.

Final Thoughts

No one would ever claim that SQL was pretty to look at, but it illustrates how powerful SQL actually can be, and how it is possible to make the SQL layer of a solution (even without aid of a stored procedure) impose some order on incoming data elements.







2014-03-10

Getting Paid

This is one of those posts of frustration, so take it for what it is worth.

I have been doing development work since the very early eighties, and a trend has been becoming more notable in those many, many years. Part of it is probably that the industry has devalued itself with the pretence that software is an entertainment-focused industry. You flop Facebook into place, for example, and it becomes the superficial representation of the industry. That it is a poorly designed consumers-as-products farce is irrelevant. Businesses see it, become distracted by it, and suddenly everything must connect, or be like it, or, worse, become some extension of it. This changes expectations in a way that makes it harder to sell the idea of functional software as a business helper, or at the very least changes how people value what is built to support their operational requirements.

The actual trend though is purely financial. A vast number of businesses seem to consider good, focused development of software as a nickel-and-dime extra. Getting a fair contract price for required software development is tough, and even when possible getting paid is sometimes nearly impossible. It means that custom (and consequently effective) solutions are fast becoming less common. It isn't lack of need , or even lack of recognized need, but that businesses just don't feel like paying for a proper solution when they can get something "close enough" without paying. And I'm not talking about open-source here, either, but the far more problematic application of poorly-fit tools to clearly defined problems. 

A recent client (who shall remain nameless, but is an enormous distributor of entertainment wares) proves the nature of the end-result of devaluing the idea of proper-fit software solutions. They essentially managed a multimillion dollar warehouse system via CSV files, and spreadsheets. Now, I have nothing against either, but the idea that this is a suitable platform for big enterprise management and operations is nonsensical. It creates latency, reporting issues, and data quality concerns when you have to manage across such transport forms. Of course, now the problem is that to change is costly, and scary, so more putty gets lodged into more cracks -- and there is no apparent cohesive approach to solving the real problem, which is the lack of responsive integrative systems on the operational front. 

But again the real issue isn't the poor thinking so much as that even with it there is an apparent sense that there's no need to actually that the provision of software services with any respect. The same client base who will carp about solutions being late (not a problem I've made any of them face) are not so conscientious as to make their payments to their service providers on time. It is as if there is some new level of self-centred entering the world of business, and it seems irrelevant whether the provider is good or indifferent. It seems like there is a new rule that reads, "pay as late as possible, and well past due if possible; screw whether we need this service again." And it is that last part that confuses me.

My clients have universally praised me for my focus, my solutions, and my concerns about their businesses. And yet, of late, I spend an inordinate amount of time chasing them for payments. That providing quality service costs something seems, to many, a foreign concept. Maybe they believe I have a money tree, and it will support the family so well that I will always be present when needed?

I know I'm not the only person in this industry who is experiencing this trend toward indifference about quality of service, quality of solution, and general quality. I talk to many each week who say the same thing, which is that many of their clients are well behind the curve in paying for what they received. And while some lag is always forgiven, it reaches a point where all of them have said the words, "I can't continue in an industry where the quality is irrelevant, and the pay is unreliable." For the world this represents a serious problem, because while the young dogs may provide the next new iPhone app, it is the seasoned developers who provide the applications no one sees, but everyone uses. This squeezing of that talent pool is a critical mass issue the industry will eventually face in a bad way.

Now, I will return to fishing for cash, since my money tree has not bloomed this year...yet.

2013-12-10

Life Lessons

As I sit here with my coffee this morning I contemplate life lessons learned over the last 6 months. Primarily, I'm thinking about trust; but I'm also thinking about the method whereby we self-induce our experiences.

Trust is the principle focus of my thoughts today, though, specifically how perception can alter our awareness of relationships. If you take any two people who have a trust deficit you need to consider the views of both to reach an appreciation of truth. After all, nothing is black or white in this world. The sole exception of this is when trust is broken by intent, of course, since this represents a decision by one participant to use deception as a means to some end. Once that happens, they have abandoned their view as truthful. Any truth they had is washed away because they are choosing to abandon their integrity, and integrity of viewpoint is a key factor in associating it with truth. 

In the Star Wars films there is a line, in The Empire Strikes Back, where Obi-wan Kenobi remarks that his lies are true from a certain point of view. He is commenting upon his view that Anakin Skywalker was killed by Darth Vader. His view is that Anakin's acceptance of the title alone was an expression of choice, and therefore essentially an abandonment of the righteous path, and a form of spiritual death. Unlike Master Yoda, whose convictions about matters are, in Episodes 1 to 3, founded on dogma, Obi-wan is actually striding along a far more subtle path, and his weariness is a recognition of the price of holding a stringent view. When one harkens back to the fight at the end of Episode 3, the issue is further clarified, because there is another critical formative line. Obi-wan says at one point, just before Anakin's choice to finally attack, that he has the high ground. He is not only speaking tactically there, but from a spiritual perspective he is commenting upon the fact, without dismissing Anakin's views categorically, that there is a purity in his path that his brother lacks. This purity is why Obi-wan manages to sustain his view that purity of truth is less important than purity of intent.

In real life, obviously, there is never such a linear proof of the idea of truth being mutable. The "he-said-she-said" syndrome comes about precisely because of this, and it deeply affects all future communications between parties who suffer moments of mistrust. That said, the last 6 months of my life have pivoted around the ideas of trust, trust misplaced, and viewpoints.

About 13 years ago I became attached to a development project that involved 2 parties, neither of who, behaved entirely respectably. When they came to a falling out point, I had to make a choice whose products my effort was producing. I had to decide who owned the idea. Following logic, I decided that IP had to accrue to the people who seeded the idea, even if their original seed was pale by comparison to end results. This decision cost me financially at the time, leaving me holding a massive related debt, and drove me to sustain the development effort when, in lieu of being able to pay necessary rates, I was offered shares. To shorten the path, in retrospect I mistook my options then. I ought to have walked away, taken the loss, and attenuated my pain, because from the point I chose the other path I was essentially doomed to end that journey as a castaway. Again in retrospect, all the signs of manipulation were present, but despite my own con-man tendencies, I decided trust was fundamental to the process, and even when I mistrusted actions I didn't mistrust intent. That was probably the worst single decision I ever made, because I suspect I was used from the outset and thrown away when the risks of exposure of that use outweighed the value. That said, I would wager the principals of the company would hold I was the problem child, though it doesn't explain that they eliminated my share position by way of bankruptcy, before they did some deal with a company that had been courting them for months. In the end actions speak volumes, and the fact they are using the product I built under the guise of a new company is complimentary, I suppose.

The point I'm aiming at, though, is not a sour grapes moment. It is an observation about basic trust contracts, and how they are valueless if either party betrays the terms. Revisionist viewpoints cannot overcome intent, because the intent to gain is inherently selfish. There is no truth in business, because trust is sacrificial. It is the mechanical way of business. Contacts are, as they say, rather cheap. 

Truth cannot exist without trust, because only trust imparts a foundation for truthful exchanges. And trust that is one sided is a suicidal behaviour. I know in my case it has destroyed me financially, and is probably going to land my family on the streets, not because I can't work onward so much as because I'm still faced with having committed fully to a cause for 13 years, and I left with nothing to show for it. I have the pleasure to watch my efforts enrich others, without even a Merry Christmas. And yet I feel less bitter than weary, because the real violation happened so long ago it is not in the forefront of my mind. I caused my current distress by misplacing my trust early, and was repaid in full and then some by folks whose trust was never really founded. 

The life lesson I take from this is not that one should never trust. To the contrary, one has to. The lesson is more that we need to be conscious of the warning bells. My stress led to a mild heart attack (a pair of them 2 weeks apart), and my life is worth more than any creation my work generates. And to dwell upon this sort of thing is less important than to rise up and move on. No matter what happens in life, one can cling to Obi-wan's statement, with the caveat that to sustain truth you need to have a foundation of trust. Faith, I suppose, is an adequate word. Faith in self, if not in some higher power.

Ultimately the choices we make dish us, and we make those same choices today, even in moments of bleak struggle. To allow past mistakes to force one to repeat mistakes is counterproductive. And, really, as I can attest you can only run from your bad choices so long. I expect that is true for everyone. 

2013-11-27

What Comes From The Mind...

Over the last week or so I've been thinking a lot about what comes from the mind, about trust, and about the human condition. My conclusions are both amusing and disturbing to me, but oddly not so much surprising.

As much as folks pay lip service to the value of ideas, honest assessment of the value of ideas is not really a human approach. If an idea excites it is held up as vital, and if it bores it is degraded as being tired; but if you historically analyze ideas you often find the most mundane ones are the ones that have the most lasting impact on the world. What comes from the mind then is valued lightly, and that is probably why so many people will co-opt ideas without ever honouring their source. We all do it, to some extent, and it is where commonplace idea-theft, like we see with plagiarism, arises. The fact is this idea is probably one that has been expressed before, so the only reason I can even partially claim it is that I don't know it has been expressed. And that brings me to the perception factor....

A large part of what we view as our reality is founded in selfish perception. It is how we survive, ultimately, because if we fail to internalize like that I suspect we would be driven mad. Can you imagine, for example, that on a Sunday afternoon you have an amazing idea and before you transcribe it you spend all day searching the Internet to assure it is unique? People would never get a damned thing done! More to the point, it destroys the basic principle of development of ideas into expressions of new ideas. Every idea that exists now is, in truth, a homage to whomever walked a similar path before.

When you express something from your mind you are bound by a fundamental expectation of social trust. You have to trust, for example, that if your idea is truly unique then those who hear it will at least have the sense of honour to try to reference your contributions. This attribution is a basic tenant of social intercourse. It is how we judge our interactions, after all. And dishonesty in this sort of basic interaction, a violation of the fundamental expectation of social trust, is a truer form of dishonesty than most, because it cripples the openness of communication.

Modern businesses based upon Intellectual Property (IP) are often founded on disputed ideas, and while it is occasionally because people genuinely don't know they stood upon the shoulders of giants, it is more often apparent that the theft of ideas is the source of those business aspirations. And this happens because even when ideas have inherent value, people convince themselves that the ideas are not as practically valuable as their implementation. And while this was true in the past of such things as hammers (how you use it creates value beyond the actual physical hammer), it is clearly not the case with software, works of art, or other virtual expressions of ideas.

I think there is something in the human condition, in the structure of our minds, that makes violating social trust easier when you can convince yourself an idea is without value inherently. And yet, the irony is that few people violate social trust when they have no measure of gain. What that says about people is probably not kind, but also not universal. There are, after all, altruists who are honest, just as there are people who claim such a title without acting in accordance of the claims.

I wish that we had the courage as a species to become what Gene Roddenberry imagined for his Star Trek universe, a species who values all contributions, however small, and respects that all living things have claim to some talent. If we could value ideas, and those who express them, and those who expressed what came before, then I believe we would be a stronger species. Maybe in daylight I will even believe it possible that we are.

2013-10-05

Windows 8: The Good, The Bad, The Truly Ugly...

It's been a while that I've been using Windows 8, and thanks to Classic Shell I don't often have to look at the funky, chunky, ugly new start menu. Overall, in the last year (give or take a bit), I have formed some impressions about the O/S I feel like plunking down.

First, to defenders of the new look and feel...you're wrong. It isn't that the new UI elements are all bad, but they were not designed with desktop computing in mind. They were designed for some specific form factors (tablets; maybe phones, though I doubt some of those choices), and all else was damned. I don't know whether Windows 8.1 will rectify these issues, but the problems with the new UI are ingrained in whatever principle of design was applied. When you dumb down interfaces, you ensure the reduction of utility of devices over time. Sure, grandma can see the big button, and my big thumb can hit it reliably on a phone, but it is a choice that eschews improvement of the user over meeting the lowest common denominator. And while that might seem to some to equate with "making it easier" the long-term impact is the opposite. And I have an example to prove this point: the Settings charm and the Control Panel. Yes, Control Panel is daunting, but it has power -- and the whole point of accessing the 'control' elements of a system is to control it. Half-control is not the purpose. Yet the PC Settings charm is under-powered to a degree that, if you really need control, you have to go back to the Control Panel anyhow. So, all this new UI element did was fracture the points of access to the underlying control interfaces. Some is available in one location, most is available in the other. Now whether that is eventually rectified isn't the point. The point is that a proper UI redesign would not have caused further access fracturing. It's foolishness to suggest otherwise. And that fracturing means that when a user needs to really access the guts of the PC settings, they still need to step to the Control Panel, making the uncertain user even less capable over time. It makes no sense unless the purpose of the new UI is to actually create this sort of confusion, and reduce user knowledge requirements permanently. And that would be fine if we were talking about limited-value devices, like purpose-focused tablets, but given the incredible reliance of business processes on IT, reducing the utility of the devices is reducing the efficiency of those processes. A new UI for the sake of itself is not proper design.

Second, at an O/S feature level...Windows 8 is an incremental improvement. Network file copying is, for example, much more friendly from a feedback perspective. BUT...the new UI does get in the way of those improvements at times, and, frankly, I have never managed to really get networking on a Windows 8 box in a mixed network client environment to behave. The fact almost all of the quirks are UI-related is telling, and sadly obscures some really interesting tweaks beneath all the presentation junk. And this somewhat renders the feature-improvements moot. What is the point of a better O/S if the better parts are defeated by the surface? (No pun intended.)

Third, and this is a concern I didn't expect to be expressing about an O/S that is essentially a fractional version above Windows 7: there is something inherently unstable in this O/S. I bought a laptop made for Windows 8, touch-screen and all (a waste, that), and in the last year I have noted strange problems that seem integrally bound to updates. Every time there is an update, for example, one or more aspects of the network rigging seems to be altered arbitrarily. (The latest was the addition of a Homegroup icon on the desktop, which seems to be impossible to remove.) Five times, after an "update Tuesday", a network that has functioned prior to the update just fell apart in terms of shares and file sharing. In two cases the configuration actually was altered by the updates, and in three others I have never discovered the cause of the problems. This is just one of the more obvious issues, and not even as aggravating as a few. (The most singularly odd and annoying aspect is that the file system is non-responsive to certain events. Moving a folder or deleting a file ought to remove it from the UI, without requiring the user to hit F5 to refresh -- but when they do hit F5...it ought to refresh instantly. Granted, this oddity has existed for years on certain systems, but that it still remains on Windows 8 is just unforgivable laziness.)

So after about a year of using Windows 8, on the cusp of a new 8.1 rendition, what is the sum positive impact of Windows 8? Nothing, I suspect. It isn't that it lacks for improvements, but that none of them are significant in context of its oddities, its incomplete design, or its farcical lack of address to standing problems from previous versions of Windows. MS needs to either focus on the fundamentals soon, or the problems that they have failed to address for years will ultimately undermine their market share...because as other options improve incrementally, stagnation will doom them.

2013-09-23

The Underemployed Programmer

I really ought to give up the field and become a maintenance engineer! This thought keeps rolling in my head, as once again I find myself playing the role of the underemployed programmer. Yes, there are jobs to do, but it appears that I passed my best before mark, and so I am once more underemployed. I work, I occasionally get paid, and I struggle to apply what 26+ years of experience has taught me, because no one seems to really care what 26+ years can teach a person!

Enough whining. Onto a serious thought or two about experience, coding, and work.

There is some truth to the idea that you don't have to have a lot of experience to work in the programming field. It is about being creative, more than being technical, and the best minds are a combination of those things that tends to lean toward creative. But, what is often lost in this view, correct to some extent though it is, is the fundamental truth about coding. Experience doesn't make a better coder, but it does make a better coder better. Just as a mediocre coder will improve with experience, so too does the talented one...and that is worth something. The field is about lifelong learning, and people in it tend to age well. What you lose in raw energy you more than make up for in stamina and awareness.

Experience is how a project that could cost 30 grand ends up costing 15, or how 10 months of work gets done in 5. And experience is what turns work into productive opportunity. Yes, younger coders tend to pile on hours, but seasoned coders are the ones who pile on value return.

None of that is a shot at the inexperienced coder, either. They are the experienced coders of the future.

What is sad though is that the work out there is largely coming in two categories these days: grunt labour and fantasy fishing, as I like to call them. Grunt labour is where the heavy lifting gets done, and it isn't sexy. It's the kind of products I spent a lifetime delivering. Fantasy fishing is where the pretty iPhone app of the week comes from, where the quality of the code is less important than its positioning. Fantasy fishing is the kind of work that is sexy, and is fun. Sadly, very little falls in the middle, and there is almost no real innovation in business process tooling.

It's a shame that so many businesses today are so focused on legacy maintenance that they forget the future, and sad that investments go to the fantasy fishing realm before they ever even look at the grunt marketplace. And it's a shame so many programmers with so much experience are so chronically underemployed, when the experience and knowledge they possess could lead to the kind of lasting productive innovation the economy so desperately needs.

2013-09-17

Amazon's Kindle Self-Publishing

Well, I just finished my first self-publishing exercise with Amazon's Kindle Self-Publishing platform, and...gods, they need to invest in their process!

Given the cut they take, you would think a few dollars spent making the process less clumsy would be worthwhile, but maybe not. Still, as a very technically capable person, I have to wonder how such a clumsy processing model ever got approved by such a large company. This is a company with worldwide presence and billions (and sad monopolistic tendencies), and their publishing process looks a lot like what you would expect from an outfit with a cash reserve of seventeen dollars and a pizza fetish. Granted, the Smashwords process is not perfect either, but by comparison the Amazon process is just painful. The layout is awkward, the process stop-points are unclear, and at least on every browser I tried you actually can't see the text regions you need to type into until they are selected -- and sometimes even not then -- meaning even when you know you need to type in them, finding them is wickedly difficult.

What really irked me though wasn't even so much the mechanics of the process (please, Amazon, drop the mobi format and just get with the standard epub one!), but the in-your-face way they express their monopolistic flair.

Perhaps the most egregious example is that unless you are willing to halve your potential royalty, you can't opt out of the lending program. Now, I have no issue myself with folks lending my books, because I know that no amount of hand-wringing will stop the eager pirates of the world; and I have no illusions that I will ever make enough money writing to have it cut into my bottom line. (I also think I write well enough that those who enjoy the work will probably pay if they can, because they might want more.) But by Amazon enforcing lending, or poverty, they effectively take either half the meagre income of the authors, or they basically give away a free copy with every copy sold. Yes, I know their arguments and that the limited lending period is 14 days, but seriously, folks...who needs 14 days to read a book that is worth reading? And if you arrange a second copy issued for every one sold, you effectively halved the royalty anyhow. So why offer 70% when you have no intention of paying it? But more to the point, opt-in would be ethical...opt-out never is. Only monopolists practice reverse incentive schemes.

Of course, I might eat these words if someone buys the book in record numbers, but I doubt that and I suspect it will be a while before I dip into the Kindle world again, because on top of all else the process is not friendly. Even the most basic parts of it require more technical effort that most real authors I have known can muster. It then becomes an exclusive process, whereby the published are the technically adept rather than the purely creative. That is not a trend to foster, because its exclusivity harms broader culture. And though the central rot setting into our age is probably irreversible, it still is not helpful to have corporations enhancing the decline by creating pockets of exclusivity where none need exist.

What finally irked me was also their "quality standards." I probably met them easily, because I write stories and formatting is basic, and I do understand their desire to have high quality presentation...but what hypocrisy! Their own interface to let author's upload is so horribly clumsy that you wonder if it was written by grade school interns! If you want to impose "quality standards" and not look idiotic, you need to impose them on yourself first. Seriously, Amazon, review the look, feel and functionality of the platform. Then your quality standards might not smack of parochial ignorance.

2013-03-15

Considering Windows 8

Since Windows 8 came out I've been using the release version on a brand new Acer laptop. The laptop itself is a reasonable one, more than up to the job of day-to-day use, with a touch-screen specifically intended to make for easier use of Windows 8. Beyond that, nothing about the machine is Windows 8 specific in any way, but I can also say that nothing about it is too anemic to run the O/S well. In short, I would have no complaints about recommending a similar or identical configuration to anyone using the new O/S. And rather than list those specs here, I'll qualify that what I'm really saying is that the following commentary isn't affected by any hardware-specific quirks that prevent the O/S from doing what it intents or desires.

Would I recommend Windows 8?

In short, no, even though it does have some useful O/S-level extensions that are improvements. The file copy visualization alone is handy, as are some of the fine tweaks to the file explorer and other applets that come as a standard part of MS O/S setups. But taken together there is not one compelling reason to recommend Windows 8, and there is one overriding reason not to recommend the O/S as an upgrade. (Having said that, it comes on new machines, and frankly there isn't much reason to avoid it either in those situations.)

The overriding reason to avoid Windows 8 is its "new" menu system (formerly called Metro). It is simply not a valid UI for a desktop machine, regardless of whether you have a touch screen available. (That is why I noted its presence above; it really isn't a compelling extra.) Besides it looking like a unicorn has vomited on the monitor (the colour schemes are awful), it is chunky and inefficient on a desktop. Ultimately, it looks like a candy-box cover, I suppose, and maybe it does work on tablets, but it simply isn't effective in a workplace machine environment. Is it a great production drain? No. But does it add anything at all? No. And yet it is the main reason to avoid the O/S for two reasons that are fundamentally unavoidable conclusions if you use the O/S for any period of time to do actual work.

The first reason is that as UI conventions go, on a laptop (or desktop) monitor the chunky and flat nature of the interface means a significant amount of scrolling. Yes, you can trim the iconography, choose small instead of large panels, and so on...but ultimately a menu is used to launch tools, and the absence of multilevel grouping is problematic. In the old Start Menu (or Orb, or whatever the damn thing was called) you could create sub-folders to hold ancillary programs, so that the main menu exposed your primary applications and you could drill down for the few occasions you needed a meatier interface. In this new model you have one left-to-right grouping pattern, or otherwise have to use the search UI to find what you want, or have to put up with an inordinate slew of visually boring iconography. Try installing MS Office 2012 on a Windows 8 box and you instantly see the problem, where every installed tool suddenly has the same level-precedence as the primary applications. And, really, the Microsoft Clip Organizer is not sensibly left on the main menu beside Word. It just doesn't make sense. But the menu system is flat, so there is no drill-down -- you either have it visible or hidden. And while for the expert user hidden is an obvious choice, inexpert users are not going to find that feature, and if they do they are not going to remember to search to find their applications once they are accidentally demoted from the main scrolling menu system. It's simply a bad design taken to ridiculous prominence, and renders a working machine clumsy. Yes, it probably does work with a web-only style box, but frankly forcing the desktop user to suffer it is an unnecessary step.

Probably the larger reason for this being somewhat a show-stopper though is about extended user experience. On a machine intended to work, the Windows Store is a poor experience in terms of depth of real utility. Sure, there are games and the like, but actual utility applications (things you do real, lasting work with) are few, and those that do exist almost always end up with the same launch experience: click the icon, and be punted to the old desktop minus the "start" button element of the UI. And that begs a question that displays the degree of almost arrogant foolishness of the UI designers who let this happen -- why give prominence to a UI convention like that new menu when the end result of clicking most icons in it is to pitch you to a familiar working desktop? It makes no sense whatsoever to layer on a shell that is functionally impaired to that degree. (The same could have been said for all experiences inside Windows, before Windows 95, but the difference is this clumsiness is not a paradigm-shift requirement.) So many better methods to engage the flat-model UI could have been chosen, while recognizing the transitional necessity of the desktop. For example, in the simplest model, reduce the start button to a flat panel button with the windows logo, which when clicked expanded the menu system. Keep the bar, folder and menu model in the left as a side-bar style, and expand the right pane region to show the flat iconography. Based the decision on where to display the icons entirely upon some new code detection scheme. That would have allowed the desktop world to coexist, reduced the transitional stuttering, and maintained the preeminence of the new menu model by giving it a visual showcase without interfering with functionality.

The problem with Windows 8 is small and large because of a fundamentally mistaken assumption about the need for change, and the nature of change. Yes, a new UI convention for menu management might be wise (ribbons are actually not a great trial once you get used to them, for example), but there is no need to break with the past when the transition is going to take time. People would accept that old programs remain in their menu model, and new ones absorb a new model. But by forcing away the menu model (Classic Shell can return it), MS created an experience where users doing real work on a machine will become aware that their required applications do not play well in that new menu; they are constantly shunted to a visually crippled desktop, and my guess is they will quickly gravitate away from new-shell friendly applications when they begin to find this experience jarring. That could have been avoided with almost no effort, but instead the path of "we know best" was chosen, only to rapidly prove otherwise when every useful application punts the user to the old desktop UI.

Would I recommend Windows 8?

No, because in itself it gives very little of immediate value to a user who is on Windows 7, or even Windows Vista. Upgrades are unnecessary.

But nor would I say flee from it, because if your new machine comes with it, with a few clicks (see Classic Shell) you can recover your old interface, and never actually have to see the "new" look again. That isn't much of a recommendation of a UI or Windows 8, of course, and that is a sad fact indeed.

2009-12-04

Thoughts About eBooks

I have been spending the last few weeks wrestling with changes to a free eBook I posted to Smashwords, since I think any reader who enjoyed the book enough to offer some proofing feedback deserves to be taken seriously. I’ve written previously that some of the suggestions were more obvious than others, and noted even the simplest ones end up absorbing a lot of time. As a writer, you tend to have a structure to your writing and process that is inevitably time-consuming, because if you actually write you tend to care enough to bother, and caring is a groin-kick of an experience. Still, many of the suggestions were spot-on, and this experience is an indirect trigger for the topic of this post…the effects of freeness. (I only just discovered “freeness” is considered a real word!)

A writer who publishes traditionally has a technical support system, and while never what one would call a well-paid profession (the Stephen Kings of the world are exceptions to the rule), the support model provides some compensation for the enormous expenditure of time it takes to construct even a bad book, short story, or article. The cost of producing a title in the traditional model is so high that publishers have no incentive to take a risks. So, we have shelves lined with genre pieces, most of them utter crap, to pay for the few gems – many of those gems selling almost nothing compared to the fast-reads that genre pieces supply. But regardless of quality (recently, I discovered 107 obvious typographical spelling errors in a 348 page book by a well-known and decent author!), those support systems offer some offset for the time, and make it possible to earn a reasonable living writing once you can crack the entrance to that world.

Freeness changes all the rules, and my experience with the eBook I’m tweaking is an example of it. While I make decent money doing my real job, it also requires time – and I have a 3-year-old who requires even more time – and I have a wife who gets shorted time regularly. (I have given up having much time for myself, as in the near-term it seems a pointlessly depressing pursuit.) The same time-consumption exists to write a book, as always, and the more you give a shit the more time that amounts to; but because your publication is unlikely to generate cash, it creates a pure cost scenario that, frankly, makes writing almost impossible unless you can afford to spend the time without any hope of recovery. In itself that isn’t a bad thing, because most writers are obsessive narcissists, and we love nothing more than to express ourselves. What it means though is the lack of traditional systems can turn the working process into something far more time-critical.

Freeness also means the following:

  • You will never perfect the manuscript for grammar, because no writer can revisit the same text often enough to either explain their cleverness or excise the side-effects. It’s a depressing reality, because while most of us would gladly pay a professional to proof a book, the cost is too high to excuse when you will make nothing from the work. If there was even a way to guarantee enough return on the investment to bring the net cost to zero, it would be a standard approach – but it amounts to layering pure financial cost onto pure time cost, and taking a loss that is impossible for most writers to bear for long.
  • You will have to publish much more slowly to avoid a glut of complaints. People make no allowances for freeness, expecting some quality level that meets their personal standards (often exceeding them, in fact), without really honestly asking how this is to be achieved when the producer is handing the entertainment away for free. We all do it, and that is human nature, but from a publication perspective it is difficult when you are the writer, because you are conscious of the quality deficit and often torn between publishing as-is, or maybe never having the time to revisit the manuscript at all. Do you let the piece go to be enjoyed somewhat, or seek some level of perfection and never release? (And once pinned, do you do what I decided to do and invest further time, or flip the readers a bird and chuckle? We all want to do the former, but the cost of it is extraordinary.)

The real crux of this, of course, is that freeness is an expectation on the Internet. It is an issue of economics. When faced by the choice to pay to read the last 50% of a book you like versus reading a free one you also like, we all know the choice that will be made. (Statics I have support the contention, and numbers also support that even a decent selling eBook earns nothing near enough to pay for professional support like proofing.)

The public at large just will not pay for unknown authors, for the most part, because they perceive the value proposition differently. Buy a hardcover and you get a physical product to wrap the intellectual one; it is not the case when you read an eBook. You get nothing physical, and the so the economic view is different. People simply never think about the enormous investment in time a writer made to shape the book, and this is doubly true if the book is enjoyable and you lose yourself in it.

Will eBooks be successful in the long-term? Yes, they will. Will there be stars of the eBook world? Certainly. But will they ascend in quality or descend over time? The latter, I expect, since the compensation model is different; and that represents a cultural challenge.

eBooks are likely to destroy the publishing industry as we know it today, not because of content issues, but purely because reading is a personal experience. There will come a tipping point where the majority of casual readers reject paying for material, and exclusively consume free works. Since there will never be an end to free works, it will reshape the concept of a book (probably lowering quality over time, since most writers will be working gratis).

Will I stop publishing? No. Will I decelerate the process? Yes, because I care about the quality enough to realise I have no option but to do it. I don’t have the spare time to continue to write new works, act as an editor, etc. So, I will end up with far fewer publications, possibly of slightly better quality, and certainly with a much more hardened attitude toward the process. Maybe some day, I will also be proved wrong, and sales of eBooks will reach a level where decent writers can afford to engage a support system to improve the broader cultural landscape. I won’t hold my breath though, as I doubt anyone can hold it quite that many decades.

2009-08-09

Visual Studio 2003 Under Windows 7

The last post contained a mention of how useful XP Mode in the Virtual Machine (VM) environment is. A bit more tweaking has led me to abetter than virtual solution for using Visual Studio .NET 2003 (VS 2003) on Windows 7 (64-bit Ultimate). It is more efficient by far if you are developing web applications, as the VM is done away with in favour of a few tweaks.

The steps to get VS 2003 running on Windows 7 to do ASP.NET 1.1 web development are:

  1. Install Internet Information Server (IIS) 7;
  2. Install .NET 1.1 on Windows 7 (see How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008);
  3. Install the FrontPage Server Extensions on IIS 7 (see Installing the FrontPage Server Extensions on IIS 7.0);
  4. Install VS 2003 (see How to use Visual Studio 2003 in Windows Vista, which works for Windows 7, and you don’t need to mess with the UAC); and
  5. When running the a project, remember to “start without Debugging” and then hook the worker process (also described in the link for step 4).

While not ideal, if you need to support a legacy application it works.

A few notes:

  • If you mark the shortcut to the VS 2003 development environment to run as administrator (compatibility mode under properties, which you get to by right-clicking) you can avoid much grief.
  • If you set the worker process identity that runs ASP 1.1 applications (process shown in link for step 4) to your user account, or some such, you can greatly ease the process, assuming that account is administrative and can access the project folders for the application.
  • Remember to attach to the worker process rather than the browser when attaching to item to be debugged.

I give a dutiful nod to the entries and articles linked above.

2009-08-08

Windows 7 RTM: Transitional Thinking

Technorati Tags: ,,

 

On August the 6th, 2009, Windows 7 RTM, the gold release for the new Microsoft (MS) Operating System (OS), was released to MSDN and TechNet subscribers. Having a good experience with the Release Candidate (RC), I decided it was time to bite the 64-bit bullet and transition not only from Windows XP as my primary OS, but from the 32-bit builds to the 64-bit Ultimate Edition of Windows 7. I downloaded the bits on the 6th, and on the 7th I took care of my wee princess, who was sick and needed me a lot more than the computer. After she went to bed around 7 PM, I dug in and began the transition from the old to the new. This blog post logs my experiences, and tosses in a record of some technicalities that may provide value to other hopeless folks who just need to take this plunge.

The Installation

A few points of observation:

  • There is no direct upgrade path from Windows XP regardless of where one heads, so none of this transitional work was as simple as slamming in a disc and sitting back; yet, despite the need to do a clean install, this was one of the most straightforward installers I have ever seen.
  • I installed to a secondary partition (I always have a couple OS sets going, just to amuse myself and experiment.), meaning I had zero-risk of loss of productivity. Even though the install is straightforward, I recommend anyone braving this transition do the same. Clear another partition and let the beast dual-boot until you get used to the new OS.
  • Phase 1 of the install (copying the guts an such) went smoothly and took ages (as expected), making for about 60% of the total install time. The only quirk noted was that on rebooting the boot loader list showed two entries for Windows 7. I had the RC on the partition before and while I chose to format the partition during the installation, mostly to check to see how the boot loader list handled the process. More about that shortly.
  • Phase 2 of the setup was the post-restart configuration, and much to my surprise the speakers on the box clicked (proof the driver was working, which was not the case with the RC); and the video resolution was set perfectly, along with the OS even identifying the make of monitor I have attached. In every way, this hardware detection process was flawless, and the best I have ever seen from a Windows install experience.
  • Phase 3 started with a pleasant surprise, though small, when the boot list erased the old Windows 7 entry and cleaned itself up (it wasn’t always that smooth in the old Windows days). The speakers clicked a few more times (was it the wrong driver?), and the network was detected and configured correctly as to its hardware components. The questions asked of me were few, and the end result was the only complaint I have is that the Software Key should be asked for and stored in the pre-detection phase – I’m sure an algorithm exists to approve it that early in the process, and not doing so is annoying.
  • Post-install the sound worked perfectly, the network was immediately functional, auto-updates went off without a hitch, and the new trouble-shooter immediately informed me my old flatbed scanner had no valid driver. It asked if I wanted it to make a suggestion, I let it, and it provided a direct link that got me within two clicks of a driver that worked on the first try.

Those technicalities aside, the general impression I have is that they did this correctly. I had a 64-bit system, a flawless install experience, and all the minor annoyances of the RC install were gone. That every system component had a valid 64-bit driver was a surprise to me, and that they worked perfectly made me classify this experience as an ideal OS install. I have been installing OS bits for 27 years now, and this was the least painful one of all time. Kudos to MS on the process and execution of an impressive technical install.

Kudos given, I do have to add a few quirky asides:

  • It would have been handy had MS provided some kind of upgrade path for Windows XP (the file settings gadget I didn’t try, but it is far too technical an idea for common folks). Most of the people who might like to upgrade to this OS simply have no path to it, and businesses are going to choke on the rollout costs of having to reconfigure boxes. Not having an easy upgrade path for XP is a head-scratcher.
  • As for the Vista upgrade path, one exists, but I wonder why anyone would bother. The bits are not that different internally, and the reality is the last Vista SP solved most of its remaining issues. The Graphical User Interface (GUI) here is a bit improved, but not enough to imagine Vista users will champ at the bit to get this build.
  • This leads me to my focused thought on upgrades: they are either too complex for normal people (from XP), or largely irrelevant to folks with newer systems (Vista). So, why even bother? Why not just force a clean install, but write a pre-installer utility to snapshot the old OS first, then merge out the main configuration elements?
  • Another thought that is valid here is why this OS has a 32-bit version. I wouldn’t recommend it to anyone running older hardware (not worth the effort, as they will have XP and no easy path up), and given that almost all new machines are 64-bit capable, why bother with the other? I’m sure businesses will suggest they need it, but the reality is this system, like Vista, needs newer hardware to shine, and XP is still fine for an old banger of a box doing word processing. I’m going to go out on a limb here and say that the next client-side OS from MS will be pure 64-bit. They are transitioning Office 2010 to that world, and I can’t see them holding off much longer and maintaining the old builds much longer.

Overall, the installation of Windows 7 is a joy to behold, and the end result is a fairly clean disc, unlike many past versions of MS software.

Post-Installation Quirks & Impressions

I’ll preface this section about two enormous balls-on-ice quirks by observing that neither have to do with MS, and I’m not sure they could have resolved them easily if at all. Anyhow, there were two “issues” that arose after the post-install shutdown and restart. (I always do one hard shutdown after a successful install to get a feel for the raw OS load times from cold start.)

  • Shutdown didn’t work correctly. The OS shut down, but the fan on the machine kept whirring – a no power-down condition. I had to do a hard restart, and after a speedy reboot (the OS is rather quick compared to Vista) I dug around till I discovered that the issue was with the “VIA 1394 OHCI Compliant Host Controller.” It’s irrelevant exactly what it is (its a fire wire connection controller), but the cause of the shutdown failure turned out to be simple: the controller was monitoring for wake-up calls (to pull out of hibernation, etc., during an incoming data packet condition). For anyone who ever struggled with the issue, the device manager in control panel will get you to the controller entry (as named earlier) and if you right-click, select Properties, and go to the power management tab you can quash the issue by checking the box beside the words “Allow computer to shutdown…etc.” This resolved the shutdown issue immediately. (I imagine the BIOS could have killed this, but device manager is wiser most times when it works.)

After the shutdown and power-down was resolved, I ran the performance index utility and discovered the second oddity. My box was reporting a mere 3 GB of RAM (it had 4, and will have 8 Monday morning). This led me to dig, and discover the second quirk (again, no fault on MS).

  • Modern hardware is almost always 64-bit capable, with a host of powerful tricks built in. One such trick is memory mapping, which is an asinine way to allow 32-bit Windows to maximise the channels and get 3 GB instead of 2 GB off most common workstation motherboards. (The other 1 GB is usually punted to the video card, so it isn’t wasted. Technically Windows 32-bit editions should be able to address all 4 GB, but that isn’t possible in the morass that is physical address management on modern workstation boards – and, that explanation isn’t technically precise, but it gets the point across, so we’ll keep it simple.) Now, a 64-bit register set should have the ability to get 16 Terabytes or so, at least theoretically, but most workstation boards aren’t designed to come anywhere near that. The reality is that the cost of building a wide-address board is too prohibitive for most desktops (server boards often have much wider RAM options). In my case the maximum practical RAM is 8 GB (more than enough for me to do anything I could dream of doing). The technical lecture aside, though the memory mapping function in the BIOS on most boards like this can be called a pain in the proverbial arse, since when it is enabled to allow the 64-bit OS maximum breathing room, the 32-bit Windows versions will be dropped from 3 GB of usable memory to 2 GB. In itself that isn’t bad, per se, but it is a technical limitation that has no foundation in necessity – there isn’t a real defensible reason not to expose the whole RAM configuration to the OS and let it do whatever the hell it pleases, ignoring it as necessary. Having that setting is just an irritation for folks who will make the 64-bit transition.

After enabling memory mapping the OS saw its 4 GB spread, and was happier; and I can only imagine it will be much happier when I maximise its breathing space. I run several Virtual Machine (VM) sets and this extra RAM allows me to run them simultaneously without degrading host performance at all.

Now, for the impressions:

  • Windows 7 is faster than its predecessor;
  • Windows 7 is cleaner than its predecessor; and
  • 64-bit Windows is a much better experience than 32-bit Windows, or at least feels more responsive on my hardware.

Overall, this is the best OS MS has released in 10 years, at least, and this is a statement from someone who would swear by a well-managed Windows Server ever since it was called by that appellation. That said, thee are some distinct negatives to note:

  • Some people will hate the new bottom taskbar interface, with its jump lists and such. You get used to it, but overall it is a pain to deal with initially. What is particularly jarring is that the visual differentiation between active programs and shortcuts is too subtle. You tend to initially spend a lot of time trying to figure out if you already launched the damn programs. That last a good few days, but once the light bulb goes off the transition comes fast. Still, MS should have considered a tutorial in the OS about the taskbar, given its massive overhaul.
  • I hate Windows Explorer (since Vista, really). The problem with it isn’t its look and feel (it’s chunky and hard to navigate around), but the absence of a “rooted view.” In XP I used to install a registry hack that would root a folder, making it possible to click a folder (Setup, perhaps) and “Explore from here.” The folder list then treated the folder as the root of the tree, and you could focus. The new navigation pane on the left always shows all folders, and the massive number of them makes dragging and organising files almost impossible. Maybe the feature is still hidden deep in the OS, but I’ll be damned if I can find it, and losing it is a productivity nightmare when you deal with large caches of files (like code libraries).
  • The last annoyance is how the new OS treats “hidden files.” Back in the XP era I could do something sneaking in my Programs folder (off the start button, which is now an orb). If you didn’t like the way an installer flung crap around in there, you could simply mark the folders and icons as hidden. Even if your OS was set to show you hidden files, the menu didn’t. In essence, you could rearrange to your hearts content without some installer buggering up because it thought a shortcut was missing (going into repair hell). This feature is gone, and in a sloppy world is sorely missed.

By the way, my performance index on this box (the hard drives are not the fastest on the face of the earth) rose to 6 just by turning on memory mapping. That’s meaningless in real terms, but it was nice to see the indexing system they used was thoughtful enough to revise based upon getting the extra GB of RAM to play with.

Applications…and Hell…and More Applications From Hell

I’m not a religious man, but I would like to think my curses on the people who build application installs at least make them go prematurely bald. because the OS was a fresh install, I had to reinstall my working set of applications, since I intend to stay with Windows 7 as my primary functional OS now. The list was long, and specific to my work in many ways, and…I quickly saw a clean OS turn into a hellish mash of crap (though it still runs better than XP ever did). This section is just gripes, with some observations:

  • AVG Anti-Virus: excellent utility, blistering decent pace, and a good installer. It put one folder in the menu, and asked at that, and even asked if I wanted to have a desktop icon (I said no). This was a good install…but it raised a point for me that I’ll jot here: Why do these installers not all ask these questions, and why, even still, are we still in the era where it is nearly impossible to avoid menus just being flung into the main one? Even AVG ended up as a menu in the main programs group, and frankly I prefer it to be in Accessories/System Tools/AVG where it belongs. (Why, you may wonder? Well, think of it this way. Like many such applications it sits in the notification tray and is fully accessible from there, so I never seek it in the menu unless something is horribly amiss. By sticking it in the programs folder direct, it ends up bloating that menu unnecessarily. It’s my machine; make it my choice.) Still, I’m not knocking AVG here, just observing even a good install can wreck a neat menu.
  • Windows Live (the messenger, blog writer I’m using now, photo gallery, etc.): A neat getting started menu off the main menu suggests these applications, and I installed the trio of ones that are deadly handy. Minimal fuss, a pleasant install, and good functionality for the fact they are free. No complaints on this one, though, again, Messenger will flutter into the damn taskbar now rather than the notification bar, and it’s annoying. Also, let me put the folder where I want it…easily.
  • Firefox (latest release): Backed up my configuration using an add-on in the XP partition, installed in the new one, installed that add-on (FEBE, for those who care), and let it restore everything. Perfect installer, perfect configuration approach, and it would be given the gold star but for its instance of jamming itself in a folder off the root. But, I renamed it Browsers and tossed the IE 8 shortcuts in there, then added Firefox to my taskbar. As easy as kiss my hand, I was back online properly – MS needs to take a lesson from Firefox as to configuration. Mind, IE 8 is a good, possibly great, browser; but Firefox is slicker.
  • Google Chat: Another decent install, though in this day and age…seriously, an uninstall icon? The OS has a gadget to uninstall junk. Quit with the extraneous icons! As well, let me put Google Chat in my Communications folder. I like it there for a reason, because again this applet sits in the notification tray. I can use it from there, without my main menu being sloppier.
  • Paint.NET (latest release): Easiest install of all time, adds one shortcut in the root menu, and bows away gracefully. This is a free graphics editor that is highly recommended. It doesn’t even get a grunt of displeasure.

I’ll leave the other utilities aside for now, and say that they all need better installers. Let me be in charge.

At this point, anyone who is still reading just knows I’m getting to something….

Let me preface this next section by saying I’m a developer, full time, and my clients are Windows users, so I am. I have no hate on for open source products, or Linux, or anything of the sort; I’m just bound to the environment my clients want, since they pay the bills. Consequently, since it feeds me, I am a “MS guy” in the sense that I use their tools, eat my own dog food so to speak (write my own utilities), and am bound by existing projects to some oddball configuration needs. You know this can’t go anywhere pleasant….

  • SQL Server Compact Edition: There’s a 64-bit version of this, and I tried to install it; it promptly informed me it required me to install the 32-bit version first. Now, I need this thing for work (on handheld components), so I did as it asked, but…what the hell is wrong with whomever built the 64-bit installer? If there’s a dependency, so be it, but bind the installer with all its dependencies. Then do a check, and if its there, skip to the butt end of the process. This kind of asinine oversight is the same as when I dial a phone lately. I dial ten numbers, and it says, “the number you’re calling is long distance and requires you to dial a one before it.” Okay, fair enough, but since you know this, machine, just do it! Same with failing to dial all ten, and going for the old 7-digit dial. It tells me this local number needs me to dial 403. If you know this, just do it! And if you know your installer will bitch and force the user to install another package first, just bind it and do it for them. It’s annoying.

And here we roam into the most bizarre adventure I had. To log onto MSDN and download the package I needed (no big deal), I launched IE since the download manager off MSDN needs that browser to work well. And I found out MSDN tanks with a 64-bit browser (the download manager is 32-bits). I had to manually launch the 32-bit IE (64-bit Windows has it, too). No big deal, still, but any website that needs a specific bit-width browser is being ridiculous. The install went fine once I got the bits downloaded.

  • SQL Server 2008 Enterprise Edition: There’s a 64-bit version of this engine, and I went for it. (Most client side tools are 32-bit, making for a sloppy directory structure.) A long install. but flawless except for the four thousand menu items it felt necessary. And here I come to my next gripe about menu folders. I know I just installed “Microsoft SQL Server 2008.” There is no need to jam Microsoft ahead of the SQL Server bit, or even jam 2008 after, really. And if you must, then you go with a folder structure like Microsoft/SQL Server/2008/etc. Make my menu smaller; and stop making every shortcut contain your corporate name! It’s annoying, and hard to read, and unnecessary. At least, if you must go there, give me a choice to eliminate the damn excess – and then respect my changes when I update the installs. If I rename “Microsoft SQL Server Studio” to “SQL Studio,” when I install the next Service Pack, is it really necessary to jam in a duplicate shortcut with the long name? I know the argument here is simple, and technical, but at this juncture an OS should know the shortcut by a Globally Unique Identifier (GUID). My choices should be respected, and that GUID can handle the installer duties adroitly. Excepting that annoyance, the Service Pack went on neatly, and the Books Online update did the same. 64-bit SQL Server is faster, and better than the 32-bit version. Kudos to the team.

So far, so good, right? Yeah, well, the devil’s own satanic herd of sodomites was lurking unbeknownst to me, the innocent MS guy.

  • Outlook 2003: I own several versions of Office, and never saw the need to upgrade Outlook past the 2003 version. So, I install it every time I rebuild. And…I bitch about how awkward the install is. Then I bitch because the settings files never quite return to life, and I have to rebuild them. The folders are fine, but all considered this is one of those stupid installers. It throws junk in fifty-seven different directories (literally; I watched it), installs bits you explicitly say not to, and then creates at least six folders that are empty. They remain empty, and make the Windows Explorer navigation panel harder to use. And, of course, the application always wants to smack in data files where it wishes them, making it feel like the entire data structure model was designed by a retarded chimpanzee. A sloppy installer; not a pleasure; a sign of things yet to come.
  • Office 2007 (Word, PowerPoint, Excel, and OneNote; I don’t need the rest): If the Office 2003 installer is a vicious baboon, the Office 2007 one is an asteroid the size of Earth hurtling directly down to smash into the groins of all living things…at light speed. Aside from the over one hundred folders it flings around, it also pulls a billion pounds of updates (larger than the entire install set at this point by about 20%). And then it commits murder on the menu, by insisting everything is in “Microsoft Office 2007,” and “Microsoft Word 2007,” or “Microsoft Excel 2007.” It tops it off by putting “Microsoft Office Tools” inside the first folder, and dropping in a few more “Microsoft” prefixed shortcuts in there. I arbitrarily shorten these later to “Office,” containing “Word,” “Excel;,” etc. and even make the sub-folder into the neatly named “Tools.” I know this is a small gripe, but the OS has to start enforcing rational thinking if the vendors won’t do it themselves. On my very wide display the names of these shortcuts get attenuated and end up with a trailing ellipsis. Why go to that bother when the solution is to be rational with the shortest names possible? (And since the hidden file trick no longer works, future serve packs will rename my choices.) The products are good; why isn’t the process? And to whomever decided the settings wizard was to be dropped for the 2007 edition, a pox on your house! It took two-and-a-half hours to get Office restored as I like it. (yes, I know the OS File Settings wizard might have worked, but I was testing a theory of mine.)

And there is indeed more pain on the horizon. If you’re still reading, you know you’re bored.

  • Visual Studio 2008: I need this tool, so I install it (and its blasted service packs). It’s another product that loves long names, and long folder names. Really, would it be so hard to have a folder like Microsoft\Visual Studio\2008\etc.? Or better yet let me name my shortcuts…like…oh…VS 2008, in the Development folder? This install was painful, but went smoothly overall; and kudos to those involved.
  • Visio Enterprise Architects Edition (2007, but the regular 2007 lacks the drivers necessary to do what I do): I use this for database modelling discussions. It’s handy; but its tied to VS 2005, and since I refuse to install that for this, I end up having to hack in a fix. MS…you gave me the product, let me use it without hacking at it! It’s stupid and unnecessary, and this brings me to my next universal gripe: the OS needs to evolve to solve this kind of horseshit tying. Something to store all keys, save them in a portable file, and make them hook to a single user private key…should allow the OS to activate and restore the settings to any application that complies with the rules.

And now we come to the topper, which is about OS transitions, and about realities:

  • For my legacy applications I need Visual Studio .NET 2003. It’s a requirement, since some folks will not pay to have the code bases updated when the application functions as desired. Vista killed the VS 2003 product because the debugger got buggered; Windows 7 is the same. Now, that’s fine; that’s acceptable transitional progress. But why is it so damn hard to install VS 2003 in a Virtual Machine running a copy of Windows XP SP3, 32-bit version? Six hours, and three tries…and finally a functional VS 2003 in a VM. Unacceptable only because the problems were avoidable, and focused around strange quirks like setup failing due to long path names because of network shares. In a 64-bit host system, this should be avoidable; in a well-designed VM it should be easily rectified. Of all the installs, this was the most wickedly damaging, because to even install a development tool (and that’s all) I had to install web services (though I didn’t need them in the VM), extensions the tool doesn’t even use, and jump through flaming hoops to get anything to work. (XP Mode in VM settings is nice, though.) Still, six hours? It was a punishing process after a smooth OS install. And…ultimately, all because the upgrade path doesn’t exist.

Last Thoughts

Windows 7 is good, capable, and solid; but the absence of an XP upgrade path, and the complications of rebuilding a workstation from scratch, will hinder its uptake except on new boxes. That’s a shame, and could have been solved so easily.

Final Advice for Anyone Needing VS 2003 in a VM

  • Beware you need to update the XP Mode image Windows 7 uses to contain IIS and the FrontPage Server Extensions before launching the installer. It will choke otherwise.
  • Beware you need to move the installers et to a local folder, or map to a drive, to shorten the paths, It will choke otherwise.
  • Beware you cannot develop mobile products on the emulated VM, because an emulator cannot run inside an emulator. Sensible, but problematic if you have old CE handheld code.
  • You can access the host web server if you pull a fast one:
    • Set the host IIS (Internet Information Server) to bind (www.mySite.com for example);
    • Set the host to have a static IP;
    • Edit the VM hosts file (system32/drivers/etc/hosts) to point the static IP at the pretend host name (192.168.2.2 www.mySite.com, for example); and
    • from that point you can browse the host Internet Information Server for development purposes.
  • You can also configure IIS 7 under Windows 7 to run ASP.NET 1.1 applications if you wish, and configure FrontPage Extensions to the IIS 7 environment. With some tweaking you can even debug remotely against it from the VM.

Ciao for now. The next posts will be very, very short.