News for hackers. Stuff that matters.
Re:Coconut: Simple, elegant, Pythonic functional programming by pizza on Thursday November 04, 2021 @12:45PM (#29109444)
This is basically code golfed. You could always break up a regex into named variables of its constituent logical parts; same with FP.

This is kind of like calling js ugly because you could come up with a minified js script that is really complex and fits in one line, or if you inlined all function calls in a long C file into the main() function body. There's a sweet spot of the complexity density per LOC that humans are seemingly more-or-less tuned for, where it's often possible to get a computer to handle more complexity-dense code.

Personally, the shorter the code and the stronger the types, the faster I can tell if I made a mistake and the fewer places there are for me to make one, and that's why I like terse FP languages.

Re:Coconut: Simple, elegant, Pythonic functional programming by kristianbrigman on Thursday November 04, 2021 @01:06PM (#29109762)
I personally like regex as well, but it can be hard to read… there are other similar things like python parse (https://pypi.org/project/parse/,”parse is format in reverse”) which are a little easier for easy cases.