Microsoft does not use Windows9 instead of using Windows 10 to name the next-generation Windows operating system.

  

Recently, Microsoft introduced and provided a preview of the Windows 10 operating system for the first time. The most surprising news of this is the next-generation operating system after Windows 8, not called Windows 9, but directly named Windows 10.

According to Microsoft's historical practice, this version of the operating system should be named "Windows 9".

Why did Microsoft break this practice, and the tech media made various analysis and speculations. There is a view that Microsoft is so named, hoping to show that the version of the operating system has been greatly improved and updated from Windows 8, so "two levels" can reflect the innovative value of the new system.

However, this analysis is untenable. In fact, at this media briefing, Microsoft executives responsible for system demonstrations also made it clear that the Windows 8 operating system is not balanced in touch control and keyboard and mouse control, and the new system needs to be changed.

In Windows 10, there are more familiar interfaces for traditional Windows 7 users. The characteristics of this system are more innovative than the “return to ancient”.

In recent days, many IT industry insiders pointed out on Twitter and the media that Microsoft skipped the most important reason for Windows 9— — and the existence of Windows 95 and Windows 98 technology released more than ten years ago. conflict.

A number of people pointed out that in some software developed in the past, the operating system version was checked with the relevant function, and the characters in front of Windows 95 and Windows 98, and "Windows 9" were consistent, due to the current year. The application software developed is not well thought out and may result in errors and problems.

In other words, the programmer of the year judged that if the operating system name contains "Windows 9", it is judged to be Windows 95 or Windows 98. Because these softwares have been in use for many years, it is no longer possible to modify the code for the new system. If Microsoft uses "Windows 9", it will cause a lot of problems in the legacy software set.

According to the analysis, for this reason, Microsoft decided to skip directly "Windows 9", named ""Windows 10”.

Explain from a technical point of view why Microsoft does not use Windows 9

So from a technical point of view, why does Microsoft skip 9 and use 10 directly? According to Microsoft's internal developers, it is considered for the version number of the previous operating system.



The example code is as follows:


Copy the code
The code is as follows: if ( version.StartsWith("Windows 9") ){ /*Windows 95, Windows 98 */</p><p>} else{</p><p>}

When software developers use: “ If the version number starts at xxx, then yyy” is executed, and two cases will be judged correctly

Windows 9

Windows 9* (Windows 95 Windows 98) 95 and 98 are also included at the beginning In summary, in the early days of testing, Microsoft found that many third-party software developers used the above method to determine the operating system, which would cause the program to use the above code when running on Windows 95 and Windows 98. The program will be mistakenly judged as WIndows “9″.

So Microsoft developers had to name Windows 10 in order to avoid this instability.


How do you still write code like this? Oracle also really wrote this in openJDK.

http://cr.openjdk.java.net/~simonis/…c.java.sdiff.html

Line 602

The same way of writing There is a famous jEdit editor! ‍



https://searchcode.com/codesearch/view/1393856/

Line 48

Copyright © Windows knowledge All Rights Reserved