[-] prma@programming.dev 1 points 1 week ago

This is pathetic. The whole point of this report is undermining Drew's attack on Stallman, who for years published pieces supporting sex with underage teens and having defending predators, by saying that it is a double standard, because there is a user with a similar username that has viewed anime sexual contents that looks underage? For sure you are right. He is a monster, unlike saint Stallman. Jesus. Even the name of the website is reactionary. What the hell were you thinking?

[-] prma@programming.dev 2 points 3 months ago

Sure thing! Awesome!

[-] prma@programming.dev 1 points 3 months ago

OK so, for example if you have to change the structure of the configuration file, in a statically typed language. You have to have two representation of the data, the old one, and the new one.You have to first deserialize the data, in the old format, then convert it back to the new format, then replace the old files. The FAMF alternative, allows you just to easily use copy and paste and delete to achieve the same goal. Please keep in mind that you can just make configuration data structure that you can keep in-memory. It is just that the representation of the persisted information is spread between different files and not just one file.

[-] prma@programming.dev 1 points 3 months ago

OK so, you are very much right. You should definitely benchmark it using a simulation of what your data might look like. It should not be that hard. Just make script, that creates bunch of files similar to your data. About the trailing white space, when I am in terminal I just use sed to remove the latest '\n' and in rust I just use .trim(), in go I think there is strings.trim(). It is honestly not that hard. The data structure and parser is not formed the same way as the json, where you have to parse the whole thing. So you don't have to. You just open the files you need read their content. It is a bit more difficult at first since you can't just translate a whole struct directly, but it pays for itself when you want to migrate the data to a new format. So if your structure never changes, probably those formats are easier.

[-] prma@programming.dev 1 points 3 months ago

You are right. Fat32 is not recommended for implementing FAMF.

[-] prma@programming.dev 2 points 3 months ago

Oh goody! F2 is great, but the developers are craaazy! They packages commandline Go application with npm!

I also like vimv and vidir for simpler stuff.

[-] prma@programming.dev 1 points 3 months ago

Sure. You should use whatever you are comfortable with. That's the point. When you don't need special parsers or tools, you can more easily adopt your tooling for the job, because almost every language has tools to deal with files. ( I assume there is some language that doesn't, who knows?)

[-] prma@programming.dev 2 points 3 months ago

Definitely. But you would need need something other than those for the working with 100 json files as well. The question is, which kinds of things you would like to have as extra. You can go with jq and prettier syntax highlighting or you can go with tree and cat (and dog). It is the matter of taste. But also, I am always right, because my mom told me I am special .

[-] prma@programming.dev 1 points 3 months ago

I know! right?

Some say thay since you can use 'tree' and things like ranger to navigate the files, it should work alright. But I guess if you have one giant metadatafile for all the posts on your blog, it should be much easier to see the whole picture.

As for upd_at, it does not contain information about when the files have been edited, but when the content of the post was meaningfully edited.

So if for example I change the formatting of my times form ISO3339 to another standard, it changes the file metadata, but it does not update the post content, as far as the readers of the blog are concerned with. But I get why you chuckled.

[-] prma@programming.dev 1 points 3 months ago

Well I'd you have so many data entry, yaml and toml are not that helpful either. They would present different sets of problems. You should use a database (perhaps sqlite) for that purpose.

[-] prma@programming.dev 1 points 3 months ago

I have one that has 69 (noice) files changed.

[-] prma@programming.dev 1 points 3 months ago

I really likes this package. And I may use it immediately. Very complete and detailed documentation. It lacks in some conveniences like iso8601, rfc3339 or other presets for formatting. But those can be handled manually. Thanks for this!

view more: ‹ prev next ›

prma

joined 3 months ago