Tuesday 12 July 2011

I like Windows 7

I really do, and was quite quick in doing the switch from XP on my home machine (albeit I do keep a fondness for Mac OS X)

One of its most annoying quirks tho, is that most people keep developing applications with two misconceptions in mind:
- The user is still using windows XP
- The user is a local administrator and UAC has been disabled.

Two different programs, two different problems, one unique reason: Poor design.

An application wouldn't run without admin privileges. The reason was it needed to punch a hole in the firewall, on a unprivileged port, on an already disabled firewall. Good job. Using tools like the Application Compatibility Toolkit is a good start, by forcing the program to run anyway.
A better idea would have been to check whether the port was already open, and if not request permission to open it indefinitely.

Second application was even trickier. This plugin for 3DS max would display no warnings, no pop ups, just plain nothing. The whole issue boiled down to the developer trying to edit a log file in the plugin sub folder. Since windows 7, said folder is actually protected in write access, unless you specifically run a program as administrator. Once again, poor design at its best, when it would have been much easier to call the local variable %TEMP% and write the file there...

No comments:

Post a Comment