News for hackers. Stuff that matters.
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".