11
Fun fact: you can't upload this image on piefed.social
(lemmy.dbzer0.com)
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, Mbin, etc).
If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)
It's open source. Why not? People who want a configuration menu can create a patch.
Downvoters, do you have an argument? What is it but entitlement to demand that free open source software should be written differently from what the programmer wants?
I didn't downvote your comment. But let me argue anyway.
Lots of people flock to PieFed because it is not made by the Lenmy devs who are unpalatably heavy handed in their "moderation" on the ml instance. One would hope this means PieFed offers more freedom to use the software how you like. So it's funny that it's even stricter "moderation" AND NOW ITS HARDCODED so it affects every instance.
Just because code is open source doesn't mean shit code can't be called out. Shit code is shit code.
But why is hardcoding shit code for open source code? The code is easier to read because no if or switch statements are needed to distinguish between the options. No configiration menu has to be maintained.
That if chain is horrendous. You should have a config json file with an array of links and then use a for and check for each of them.
The advantage of having a config file is that it's easily for others to see everything that can be changed dynamically without touching the code, and it's much easier to maintain forks that change or extend the configurable behaviour.
Hard coding shit is bad because it's actually harder to maintain. No programmer worth their salt has difficulty checking the json file that has the configuration for X list, hard coding an if chain is bad coding.