Re:How to Stop Functional Programming
by jmmv on Sunday September 21, 2025 @12:32PM
(#45324200)
Missed chance to do something like:
and then, somewhere else...
Yes, I've seen code like this many, many, many times where class members are used as "global variables" to pass state across functions. And I've noticed AI likes to generate code like this too (possibly because of the former (large presence of this "pattern" in the training data), which means I'm encountering this now in pull requests...
[ Parent
| on HN ]