Live data from Hacker News

Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

searchcode.com

31–37 of 37 posts

Re: Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

#31

Earlier quoted context omitted.

Source for that?

Yeah, the OP[1]. A lot of the returned results are Java code, alternatively there's also [2]. [1] https://searchcode.com/?q=if%28version%2Cstartswith%28%22win... [2] http://docs.oracle.com/javase/tutorial/essential/environment...

No. He said that it was the 'default' way of doing it. Yes, it has happened X times, that does not mean it's the default way of doing it. Maybe there's some other method which is done a lot more often and hence should be considered the 'default' way.

Re: Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

#32
post #16

So, when they get to Windows 19 do they need to skip to 21 to avoid all the 2000 checks?

There won't be a windows 20, or anything closet to that. If we're still using computers the way we are now in 20 years, then we've seriously failed as a species.

We are still using computers now the way we were 20 years ago!

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.

Re: Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

#33
post #16

So, when they get to Windows 19 do they need to skip to 21 to avoid all the 2000 checks?

There won't be a windows 20, or anything closet to that. If we're still using computers the way we are now in 20 years, then we've seriously failed as a species.

[deleted]

Re: Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

#34
post #32

Earlier quoted context omitted.

There won't be a windows 20, or anything closet to that. If we're still using computers the way we are now in 20 years, then we've seriously failed as a species.

We are still using computers now the way we were 20 years ago! 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.

I'm quite aware. Make note.

Re: Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

#35
post #16

So, when they get to Windows 19 do they need to skip to 21 to avoid all the 2000 checks?

There won't be a windows 20, or anything closet to that. If we're still using computers the way we are now in 20 years, then we've seriously failed as a species.

2 digit dates seemed safe enough because lol no one would be using this software in the year 2000.

IPv4 address space seemed plenty enough.

640 k should be enough.

Re: Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

#36
post #35

Earlier quoted context omitted.

There won't be a windows 20, or anything closet to that. If we're still using computers the way we are now in 20 years, then we've seriously failed as a species.

2 digit dates seemed safe enough because lol no one would be using this software in the year 2000. IPv4 address space seemed plenty enough. 640 k should be enough.

The first wasn't thought about, it was done to save bytes, not because people weren't going to be using the software.

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.

Re: Windows 10: Code that uses 'os.StartsWith(“Windows 9”)'

#37
post #26
post #23

I ran into some code a few days ago that wouldn't install because it was checking OS X version as a string and '10.10' < '10.5'. Bad code will always find a way

Any chance it was Matlab? I had to change version to 9 or 90 to run Matlab

It was PyObjC.
Post reply on HN