Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'(searchcode.com) |
Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'(searchcode.com) |
The Windows C/C++ API returns a structure with version numbers [1], same with the C# one [2]. Other languages just wrap the native C API call, GetVersionEx.
The most troubled framework is Java: because of some strange design decision, you can only get the version as a string (see [3]), and that makes impressively easy for programmers to screw up version checks. However, as other commenters have said, those apps could run on compatibility mode and Windows would solve the issue itself instead of completely changing an operating system's name.
1: http://msdn.microsoft.com/en-us/library/windows/desktop/ms72... 2: http://msdn.microsoft.com/en-us/library/system.environment.o... 3: http://stackoverflow.com/questions/228477/how-do-i-programma...
Or they could rename the entire OS.
So I don't buy this rumor at all. The number of real applications that 1) remember Windows 9x exist, 2) aren't completely broken on modern Windows anyway, and 3) go out of their way to use some convoluted version checking method has to be extremely small.
Remember Windows 95? That was 19 years ago!
It's easy to imagine someone like you in 1995 proclaiming there would not be a Windows 2015, or anything close to that.
Nothing has fundamentally changed, Internet and all. Even tablets, smartphones and multitouch interfaces are still basically the same old thing.
IPv4 address space seemed plenty enough.
640 k should be enough.
So that's why they went with 10 - it makes sense now.
IPv4 was enough, the use case changed.
640K should be enough is an urban legend.
This isn't meant to come across as rude, but you're missing the forest for the trees.
Everyone needs the post office, how else will you be able to send a letter. Everyone needs news, newspapers will be around forever. Everyone needs a travel agent, people like to travel. They'll be around forever. Everyone will always have a land line. Video stores will exist forever... Everyone needs a watch... Etc...
For every example you come up with, I can come up with three in which the majority of the population no longer complies. We progress more than you realize. A commercial windowing computer interface has been around for 30 years next year, it's still in it's infancy. Touch interfaces have transformed digital adoption to numbers greater than I would have ever been able to comprehend back in 92 when I sent my mom, who worked at the University of Calgary while I was at the University of Alberta, an email. It was magical. And yet, in no way did I think it would ever grow to a point where every person would hold not only email, but the internet (which existed, but not really at that point). If you're under 30, it'll be a lot harder to see the rate of increase.
Python for example wraps GetVersionEx appropriately with sys.getwindowsversion()
[1] https://searchcode.com/?q=if%28version%2Cstartswith%28%22win...
[2] http://docs.oracle.com/javase/tutorial/essential/environment...