The feeling when it's 2025 and software has encoding bugs.

Then the feeling when it's your own software.

🥶

I wonder what to do. I feel like writing software such that it runs on Linux with ext4 filesystem and let other people figure it out if they use the software. Because I know the secret shame of every developer who thinks of using part of the URL path as a filename, like I do: UTF-8 NFC is the default, but UTF-8 NFD is used for HFS+ filesystems and UTF-16 is used for Windows and Go offers a system-agnostic layer on top of that (but you still have to do forward and backward slashes even though Windows can handle forward slashes) and then I get tired.
So now I feel bad because I use a lot of filepath.FromSlash and filepath.ToSlash and I never test it on other operating systems. It's interoperability theatre.

Follow

@alex how did the API look in Netscape Portable Runtime, and in Apache Portable Runtime? I guess is Yet Another Portable Runtime. and also seemed to have some abstraction of file paths.

Also, how about using s (file://) in the code instead of file paths?

@tetrislife I wondered about using IRIs as a type in the code, clearly separating them from filenames. Sadly the program uses files for storage, so every page in the browser is also a file on the filesystem. I fear the two are inextricably linked.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.