this post was submitted on 17 Sep 2026
13 points (100.0% liked)
FOSS - Freie Software
1421 readers
1 users here now
Deutschsprachige Community zum Austausch über Freie Software
Postet hier gerne News, Artikel, Empfehlungen und Fragen mit Bezug zu FOSS - Open Source - Freier Software…
Dies ist eine Lemmy-Community (Was ist Lemmy?) Wie Ihr auch von anderen Fediverse-Accounts aus teilnehmen könnt, ist auch hier beschrieben.
Bildquelle Icon: Colin Viebrock, CC BY 2.5 via Wikimedia Commons
#fedi22 #FOSS #OpenSource
Nachfolge von @foss_de@feddit.de
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Here is an example. Given the following list of strings:
list2regexp will return the following pattern:
This regexp is literally the worst fucking thing I have ever seen. Please never ever use a regexp of that size ever in your production system.
Congrats Frau Kuh, you got a special FAQ entry in the README just for you
As funny as that would be, this has been a surprisingly common misconception.
This drive-by criticism is the worst fucking thing I have ever seen. Please never ever use drive-by criticism without any code or references which back up its claims to inform your opinion on others work.
The reason this is horrible is because its absolutely horrible if you ever have to manually touch this regex ever again.
This was not meant as a way to criticise your tool, because it is cool what you did there, but using regexp of that size is something I would advise against in an production environment.
So, your criticism is that machine-generated code can be hard to edit when a human needs to touch it. I don't see how that is relevant here, being human-legible or editable is not a stated goal of the project. Rather than lobbing criticism against any software which machine-generates code for machine consumption, it makes more sense to use your best judgement and choose the software which is right for your use-case. I don't even want to know why you would ever machine-generate a regexp from a list, not save the list, and then somehow need to edit the regexp without access to the original items. That's not a software problem.
Yeah its Kind of like that and I do have to admit, that my original comment was bad and that I should have specified it in the original comment.