• plyth@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    25
    ·
    edit-2
    4 days ago

    lol hardcoded shit everywhere

    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?

    • expr@programming.dev
      link
      fedilink
      English
      arrow-up
      29
      ·
      3 days ago

      Just because code is open source doesn’t mean shit code can’t be called out. Shit code is shit code.

      • plyth@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        9
        ·
        3 days ago

        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.

        • Fushuan [he/him]@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          12 hours ago

          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.

        • notfromhere@lemmy.ml
          link
          fedilink
          English
          arrow-up
          9
          ·
          edit-2
          2 days ago

          Open source just means people are free to edit it and distribute their changes. Hardcoding things like this is bad practice no matter if it’s open source or not. It’s not maintainable. Maintainable as in easily maintainable, I.e., configuration files not code edits.

    • BB84@mander.xyz
      link
      fedilink
      English
      arrow-up
      28
      arrow-down
      1
      ·
      3 days ago

      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.

      • lambalicious@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        2
        ·
        3 days ago

        So it’s funny that it’s even stricter “moderation” AND NOW ITS HARDCODED so it affects every instance.

        Lol, people so afraid of Lemmy devs bowing to the CCP that they migrate to the fediverse option that actually implements CCP societal control features. McCarthysim really did a number on the Amerikkkan brain, dunno if it is impacting people from elsewhere that much. This surely was not in my 2026 Bingo card!

      • plyth@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        6
        ·
        3 days ago

        ITS HARDCODED so it affects every instance.

        It’s open source. Every instance can change it and if something is common, people can maintain the patch together.

        Lenmy devs who are unpalatably heavy handed in their “moderation” on the ml instance.

        Which is their instance. I don’t like the hate they receive. They have established a social network that allows everybody to run their own instance with their own moderation. To present them as the villains must be nurtured by the establishment.

        So it’s funny that it’s even stricter

        Absolutely

        • notfromhere@lemmy.ml
          link
          fedilink
          English
          arrow-up
          12
          ·
          2 days ago

          That isn’t how it works. They would have to FORK the code and maintain their changes going forward with every update. That is poor software development practices no matter how you look at it.

          • plyth@feddit.org
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            3
            ·
            2 days ago

            I think the Brave browser does it with Chrome. Wouldn’t the source control tool do most of the maintenance?

            • BB84@mander.xyz
              link
              fedilink
              English
              arrow-up
              7
              ·
              edit-2
              2 days ago

              Chromium is a well-organized and mature codebase, which makes syncing changes relatively easy (also Brave’s chageset is limited in scope, so less conflicts to worry about). PieFed is neither mature nor well-organized. Maintaining a downstream project from it would be a nightmare.