Hacker News new | past | comments | ask | show | jobs | submit login

So here we have again how "Worse is better" works in practice, and how we got here regarding /tmp in 2024.



As if C:\TEMP or %tmpdir% were any better.

Or using letters as drivers.

Worse is better? A lot of tech in Win32 is built as if it were for DOS 1.0 or CP/M. See AUX, PRN, COM and so.


Backward compatibility, innit.

Microsoft have tried to get people to use the newer, more heavily sandboxed APIs like UWP, but only very weakly, and they haven't committed to transitioning their own apps over as dogfood. Nearest they've got is actually migrating a lot of office to the cloud as Office365.

Sunsetting Win32, or even having significant backwards-compatibility breaks, would upset so many corporate customers who would then refuse to upgrade.


> Sunsetting Win32, or even having significant backwards-compatibility breaks, would upset so many corporate customers who would then refuse to upgrade.

Creating solutions in search of a problem doesn't work. I have to do my job and my computer shall halp me not get in the way. We are at the end of 2024 and i need admin access to install and use an USB to serial converter (or any other HW device) in Windows.


Yeah, nice jab attempt, except no one sells MS-DOS decisions as some grandiose OS architecture design.

Its origins are quite clear, QDOS, Quick and Dirty Operating System.

https://en.m.wikipedia.org/wiki/86-DOS


> As if C:\TEMP or %tmpdir% were any better.

I mean, yes? %tmp% is in the user's directory, not accessible by the world.


TMPDIR can be trivially set at $HOME/tmp too with just a file at /etc/profile


But how many things on Unix hardcode /tmp though?

On DOS it wasn't a thing because it didn't have a standard temp directory to begin with, so when the need arose, it was bolted on in an adhoc way (I remember the apps couldn't even agree on whether it should be %TEMP% or %TMP% or something else). Windows introduced it as a proper first party concept, but then moved it around so much that you pretty much had to use the API to retrieve the actual value if you wanted it to work. And then NT made that API return a path to a per-user directory by default.


Most things in Unix are libre software. Recompiling them to use another path it woudn't be rocket science.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: