this post was submitted on 14 Jan 2026
106 points (99.1% liked)

PieFed Meta

2200 readers
3 users here now

Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.

Wiki

founded 2 years ago
MODERATORS
 

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!

you are viewing a single comment's thread
view the rest of the comments
[–] sga@piefed.social 7 points 2 weeks ago (1 children)

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.social 9 points 2 weeks ago (1 children)

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 5 points 2 weeks 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.