• 18 Posts
  • 113 Comments
Joined 2 years ago
cake
Cake day: July 13th, 2024

help-circle











  • BB84@mander.xyzOPtoFediverse memes@feddit.uk•"content curation"
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    12
    ·
    8 months ago

    Hard coding (also hard-coding or hardcoding) is the software development practice of embedding data directly into the source code of a program or other executable object, as opposed to obtaining the data from external sources or generating it at runtime.

    Hardcoding has nothing to do with whether or not the filter can be disabled. It is about how the filter is implemented (comparing against a string in the code, as opposed to a string loaded from config file or database).


  • BB84@mander.xyzOPtoFediverse memes@feddit.uk•"content curation"
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    18
    ·
    8 months ago

    Hard coding (also hard-coding or hardcoding) is the software development practice of embedding data directly into the source code of a program or other executable object, as opposed to obtaining the data from external sources or generating it at runtime.

    Hardcoding has nothing to do with whether or not the filter can be disabled. It is about how the filter is implemented (comparing against a string in the code, as opposed to a string loaded from config file or database).


  • BB84@mander.xyzOPtoFediverse memes@feddit.uk•"content curation"
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    12
    ·
    8 months ago

    Hard-coded data typically can be modified only by editing the source code and recompiling the executable, although it can be changed in memory or on disk using a debugger or hex editor.

    Exactly. If you want to make the same code logic block “notenoughmuskspam” (for example) instead, you would have to patch the source code. In this case there is no “recompiling the executable”, since its Python. I don’t really see that undermining my point though.

    Your comments sound very angry so I am blocking you for the sake of the mental wellbeing of both of us. Have a nice day.


  • BB84@mander.xyzOPtoFediverse memes@feddit.uk•"content curation"
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    14
    ·
    8 months ago

    do you not know what hardcoding is

    Yes, to quote from Wikipedia

    Hard coding (also hard-coding or hardcoding) is the software development practice of embedding data directly into the source code of a program or other executable object, as opposed to obtaining the data from external sources or generating it at runtime.

    This is precisely what PieFed does.

    As I have noted in the post, the block can be disabled/circumvented by the admin. But the rule is still in the .py file where all the business logic are, hence hardcoded.



  • Having features does not make it good software. It remains true that the code quality is abysmal and there ARE hardcoded blocks based on what the dev(s) dislike.

    What we see from time to time is people spreading literal misinformation about Piefed, saying that those filters can’t be disabled by an admin (they can), and/or that a fork is needed to do so (it’s not) .

    I hope I am not spreading any misinformation. If any of my complaints is factually incorrect, please point it out.