I have received word that there are people combing through the PieFed code looking for anything that might be harmful. This is excellent and can only make PieFed better and less harmful.

We appreciate their interest in PieFed and look forward to answering any questions and showing people around the code. Please join us at https://chat.piefed.social/ or https://matrix.to/#/#piefed-developers:matrix.org.

There’s no need to listen to rumors and amateur speculation when we’re right here and happy to help. Come on in, the water’s fine!

  • sga@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago

    the bad thing oabout regex parsing html (or xml) in general is that how often it just works. like 90% of times, it works 100%, it is just the last 10% where shit breaks. I in most of my scripts use regex or grep, or in language with string methods, use find, and the amount of times it works is just so appealing to implement because all xml parsing libraries suck, and their bindings suck and it is just way to much work when grep ‘title’ gets you 90% there. I feel this.

    • Rimu@piefed.socialOPM
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 days ago

      It’s somewhat ok in our situation though because the HTML we’re dealing with was generated from Markdown rather than typed by people so it’s well structured and the same each time.

      The code is very not fun to read though, regex is just impossible gibberish.

      • Barbarian@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        8 days ago

        I mean, it’s not that bad if you’ve spent far far too long on regex101.com

        I guess I’m one of the few weirdos who actually likes messing around with multiple capture groups and complex patterns.