Works fine for me. Is it possible that your experience is different
from mine? Nah.
Same technical thing, no PRNG involved? Nah indeed.
You have not demonstrated that it adds up to anything significant.
I think that should be fairly obvious. If it takes you two extra seconds
to select a file, you select ten files every hour, and you work
forty-hour work-weeks, then in one year you spend an extra 52*40*10*2 =
41600 seconds. That's almost half a DAY of cumulative time -- more than
one day's work shift. Basically, without that extra two seconds per file
selection you could be equally productive and yet get one more vacation
day a year.
If you chronically have overtime to meet deadlines, as programmers
normally do, make that two vacation days.
I'll wager it doesn't. Certainly it's far less than the time I've
spent over the last two decades writing Usenet posts.
Perhaps you should consider writing fewer Usenet posts, then.
How rude. And why in hell would I have a set of Microsoft API manuals
around anyway?
They're the Unicode versions of the File APIs.
And these aren't what the native tools, like Explorer, use, even though
those tools seem to support localization, to judge by the proliferation
of Windows versions in other languages?
cmd.exe doesn't support them properly (it does for some builtins, but
it has its own path length limitations that are separate from the OS
ones)
Even wackier.
because Microsoft frankly doesn't give a damn about cmd.exe.
Even wackier still. It's no wonder they're doing so poorly in the server
space, with that attitude.
But that's rather beside the point, which is that the
short path length limitation was corrected in Windows long ago - I
think with NT 4.0.
Not so a user working with the built-in tools such as Explorer and
cmd.exe would notice.
Did you specify it correctly?
new File("C:\\path\\to\\file.ext"); -- how else? Unless you're now going
to tell me there's some other Java File API, perhaps buried several
packages deep under java.nio?
And of course like any Java string that path is made of Unicode
characters by the time the File class sees it. It would be strange if
File wasn't then punting to the Unicode versions of the Windows file
APIs under the hood.
C:\tmp>java -cp . test
\\?\c:\tmp\longdir123456789012345678901234567890123456789
What the **** is that? Certainly not a pathname in normal Windows syntax
(that would be C:\tmp\longdir...). Isn't that some syntax used for
referencing network volumes or something?
Anyway, that's a lot of ridiculous hoop jumping and it's moot anyway
since Java doesn't use those funny paths. For instance, try creating
C:\Z\150-character-dirname\150-character-filename in the manner I
described and then
new FileInputStream((new
File("C:\Z\150-character-dirname")).listFiles()[0]);
and see how far you get. You can't use Java's own filesystem APIs to get
handles on such files in a manner that will work. So unless the user
hand-enters every such path into the application ...
And of course the user *doesn't* enter every such path into javac,
bringing us back to the trouble you'll get if your package hierarchy
results in long enough path names and anyone tries to build the app on
Windows.
I've never had that problem.
Lucky you.
Junctions are a facility of NTFS, built on top of reparse points.
So?
If you're going to complain about Windows, maybe you should learn how it
works first.
Who says I didn't?
Whereas in Unix and Linux installations, all possible actions are
available in the various GUI file managers?
All actions of a basic nature such as "make symlink here" are, I'd
expect, in a typical GUI file manager, or what good is it?
Actually, it was a conclusion drawn from available evidence. It would
have been an ad hominem if I'd said "Microsoft plays anticompetitive
dirty tricks, therefore you can't trust their stuff to work", but I
didn't; I said "You can't trust their stuff to work and most of it is
shoddily copied from competitors, therefore their creativity must be
being spent on anticompetitive dirty tricks instead of on software
development" instead.
Let's all watch as Zapotec loses the ability
to formulate an actual argument.
Sorry, but that show was canceled due to Zapotec doing something
different instead.
Not anywhere a normal user would find it, such as the right-drag menu in
Explorer.
Not junctions; Explorer dings and says something silly along the lines
of you need permission to do that -- silly because it says it even if
you're logged in as root.
I agree that being able to make links and junctions from Explorer
would be useful for lazy whiners who can't be bothered to learn how
their OS works.
It would also be useful for the general populace of users who prefer to
use preview-providing browsing tools like Explorer instead of typing
everything out longhand at the shell, particularly given how poor a job
the cmd.exe shell does at being a shell.