• expr@programming.dev
    link
    fedilink
    English
    arrow-up
    22
    ·
    2 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
      6
      ·
      2 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.

      • notfromhere@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        19 hours 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.