Do not store your user-editable settings in Perl scripts using Data::Dumper!

There are many modules for storing/retrieving settings. Dumping a dictionary does not maintain the key order, and trying to diff config files after changes is a real PITA. (Especially when your default config file has never been run through that process, which changes whitespace, etc.)

· · Web · 2 · 0 · 0

@CarlCravens And when you ask for a consistent order on a lot of dictionary or hash related outputs (JSON.stringify, JsonNet), the first answer is "why? the order isn't important" and it turns into an argument of "have you ever QA'd a half million lines manually?"

I also don't like "rolling my own" just to get consistent order.

We have an entire category of review rejects in our project: "relies on natural database order". :)

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!