News for hackers. Stuff that matters.
Re:Show HN: Scanning the Web for Security.txt Files by reaperducer on Friday January 01, 2021 @01:41PM (#25605478)
An aside, but it would be nice if the tech industry could move beyond three-character extensions. There's zero reason this couldn't be security.text.

It's been at least 35 years since I first saw a non-three-character file name extension (Amiga 1000), there are probably older examples. Computers are supposed to work for people, not the other way around.

Re:Show HN: Scanning the Web for Security.txt Files by chrismorgan on Friday January 01, 2021 @02:19PM (#25605884)
.txt is an ancient and extremely well-established extension, and so will not cause any trouble anywhere—it’ll be mapped to text/plain in all standard servers, out of the box.

.text is not a common extension. Some things know that it’s text/plain (my Arch Linux /etc/mime.types and /etc/nginx/mime.types both do), but I expect some common server software won’t handle it properly out of the box (haven’t checked beyond nginx’s mime.types), and common OSes won’t have a handler for .text files set up (Windows, for example, comes with .text set to PerceivedType text like .txt has, so that it’ll suggest the right sort of apps to open it, but it’s still not hooked up to any app by default, unlike .txt which is “Text Document”).

Re:Show HN: Scanning the Web for Security.txt Files by reaperducer on Friday January 01, 2021 @03:18PM (#25606563)
I stand by my previous statement. Computers should work for us. We shouldn't work for computers.

Dump .txt for .text.

Dump .jsn for .json.

Keep .html, .jpeg, etc because they are abbreviations for standards.

Sucks for Windows that it can't handle ".text" like other operating systems have since the 1980's.

Dumping three-letter extensions will also help avoid all the extension namespace collisions that happen all the time.

Re:Show HN: Scanning the Web for Security.txt Files by kiallmacinnes on Friday January 01, 2021 @05:28PM (#25607897)
.json is roughly the same as .txt - an abbreviated version of "JavaScript Object Notation". We humans still have to do the translation to the final name.

And, I've never seen ".jsn". I've seen ".json" hundreds of thousands of times, but never ".jsn".

Re:Show HN: Scanning the Web for Security.txt Files by jrootabega on Saturday January 02, 2021 @07:14AM (#25612268)
jsn is yml
Re:Show HN: Scanning the Web for Security.txt Files by johnr2 on Friday January 01, 2021 @04:15PM (#25607241)
>Computers should work for us. We shouldn't work for computers. Dump .txt for .text.

If my computer expects me to type an extra letter every time I name a file it isn't working for me. The short extensions make for more efficient typing.

Re:Show HN: Scanning the Web for Security.txt Files by scpedicini on Friday January 01, 2021 @09:17PM (#25609616)
This is the first time I've heard of a jsn file. In my experience as a developer, they're always named with the full four letters. Also I really don't understand your statement about computers working for us, they're perfectly happy to interpret an extension anyway you set it up in the vast majority of file association systems of any modern day OS.

I don't know why you're getting hung up on TXT in particular, that extension has been around for so long that virtually everyone who has even a passing knowledge of computers knows what it stands for.

Also for CLI purposes, I'd sure as hell rather type "ls .bmp" than "ls .bitmap".

Re:Show HN: Scanning the Web for Security.txt Files by Minor49er on Friday January 01, 2021 @05:13PM (#25607767)
Speaking from my own experience, I've seen plenty of ".json" in the wild, but have never seen ".jsn".
Re:Show HN: Scanning the Web for Security.txt Files by ffpip on Friday January 01, 2021 @01:51PM (#25605582)
Imagine a .JavaScriptObjectNotation instead of .json. Or .firefox-extension instead of .xpi

There are only a few important extensions. just remember them.

> Computers are supposed to work for people, not the other way around.

Extensions are not for average computer users. They have icons and filenames. Windows also hides extensions by default.

Re:Show HN: Scanning the Web for Security.txt Files by chrismorgan on Friday January 01, 2021 @02:27PM (#25605944)
.JavaScriptObjectNotation would be terrible, because of its verbosity and because people call the language JSON: so .json is good.

.xpi is a rather poor example: no one talks about XPInstall (and the majority of its surface area is now even obsolete), so .xpi is to most people completely meaningless unless they have encountered it before and know what it is. .firefox-extension would be a vast improvement over .xpi, because it says what it actually is.

Re:Show HN: Scanning the Web for Security.txt Files by corty on Friday January 01, 2021 @02:02PM (#25605704)
There actually was a short period where Windows 95 was new and had just introduced long filenames with long extensions to former DOS users. Then, for a short time, stuff like .SomeSoftwaresDocument was actually popular.
Re:Show HN: Scanning the Web for Security.txt Files by 0df8dkdf on Friday January 01, 2021 @07:04PM (#25608715)
Well to be fare, file extensions are more of a Unix/PC thing. In the old day, MacOS Pre-OSX extension doesn't matter, extra info about a file are stored in another meta file.

Extension are only made for backward/universal compatibility file compatibility on different platform. However I do agree with the parent post, computer ought to work for us, not the other way around. Then again changing convention is harder than just type 3 letter extension.

Re:Show HN: Scanning the Web for Security.txt Files by schwartzworld on Sunday January 03, 2021 @10:17AM (#25622206)
Seriously, I would understand not wanting to introduce new 3 letter extensions, but .txt is pretty ubiquitous. I'd feel weirder about seeing .text
Re:Show HN: Scanning the Web for Security.txt Files by reaperducer on Friday January 01, 2021 @03:19PM (#25606585)
Or .firefox-extension instead of .xpi

That's an excellent suggestion. WTF does ".xpi" even mean to someone who just wants to install a browser extension?

Re:Show HN: Scanning the Web for Security.txt Files by glandium on Saturday January 02, 2021 @04:20AM (#25611451)
What do ".zip" or ".exe" mean to someone who doesn't already know the answer?
Re:Show HN: Scanning the Web for Security.txt Files by remexre on Friday January 01, 2021 @03:05PM (#25606387)
JSON is bad, but as someone who doesn't know what an XPI is offhand, .firefox-extension seems kinda nice?
Re:Show HN: Scanning the Web for Security.txt Files by throwaway201103 on Friday January 01, 2021 @04:01PM (#25607065)
> Extensions are not for average computer users. They have icons and filenames. Windows also hides extensions by default.

As far as I recall, extensions became a thing with DOS. They actually had meaning to the OS, e.g. naming a file .exe would make it executable, as there was no other concept of file ownership or permissions.

In Unix/Linux systems, filename extensions have always been for the user. Before GUIs and icons, they were a convention that let the user know something about the file contents. As far as the operating system is concerned, "." is just another character in the name and extensions are meaningless. Note that most binary executables don't have an extension at all, and other files have more than one (e.g. .tar.gz)

Re:Show HN: Scanning the Web for Security.txt Files by reaperducer on Friday January 01, 2021 @04:10PM (#25607176)
As far as I recall, extensions became a thing with DOS

CP/M had extensions in 1974, five years before DOS. There may be older examples, but that's the first operating system I ever used.

Re:Show HN: Scanning the Web for Security.txt Files by wglb on Friday January 01, 2021 @06:08PM (#25608276)
And PDP-10 had them back in the 70s
Re:Show HN: Scanning the Web for Security.txt Files by lokedhs on Saturday January 02, 2021 @03:17AM (#25611262)
PDP-10 was an architecture, and there were many operating systems running on them. You may be thinking of TOPS-20, which indeed used filename.ext, where the extension was limited to 3 characters.

There was also ITS, which was one of the famous operating systems on the PDP-10. On ITS, filenames consisted of two parts, rach being 6 characters separated with a space. So you could have a file named "abc def". The second half was often used in the same way we use extensions today, but executable files were named "ts name", where name was the name of the command.

I'm not sure what format filenames had on TENEX and TOPS-10.

Re:Show HN: Scanning the Web for Security.txt Files by wglb on Sunday January 03, 2021 @03:35PM (#25624977)
Very good point. I was referencing Tops-10, which I am the most familiar with.
Re:Show HN: Scanning the Web for Security.txt Files by throwaway201103 on Friday January 01, 2021 @04:15PM (#25607246)
Makes sense. I think DOS took a lot of inspiration from CP/M.
Re:Show HN: Scanning the Web for Security.txt Files by ivanhoe on Friday January 01, 2021 @01:54PM (#25605619)
Why? Is there a single person in Universe that would ever be looking at these files and not know that txt is short for text? Perhaps in some other cases it makes sense, and perhaps we don't even need extensions at all for many files, they can be misleading (not to mention that what 'text' means is just another convention). Microsoft even hides extensions from average users.

But the common extensions that we all know by heart, why change, what's the gain?

Re:Show HN: Scanning the Web for Security.txt Files by tomc1985 on Friday January 01, 2021 @04:58PM (#25607632)
Please, lets not make computing any more cavemanlike than it already it. Is a world of obnoxious push-button apps with zero options or customizability not enough for you? Learn to love the contours of what you got and it will serve you even better!