News for hackers. Stuff that matters.
Re:Simplify Your Code: Functional Core, Imperative Shell by globular-toast on Tuesday October 28, 2025 @05:06AM (#45730625)
Irrelevant. The "bad" code does it too. It's talking about something specific and not "let's fix all the problems with this code".
Re:Simplify Your Code: Functional Core, Imperative Shell by procaryote on Tuesday October 28, 2025 @02:24PM (#45736781)
If you write one method poorly so you select too much and filter in a for loop, you just have a bad method you can fix.

If you pick and recommend a pattern where filtering should happen separately from retrieving, all your code will be bad

Give a man a fish / teach a man to fish, but bad.