News for hackers. Stuff that matters.
Re:Dart 3.1 and a retrospective on functional style programm... by lelanthran on Saturday August 19, 2023 @03:28AM (#37186407)
I read this thread through, and I think you both make some good points.

I think (i.e. just my opinion) you are talking past each other. There are situations where I'd prefer @trashburger's approach (instances that react to stimuli) and situations where I'd prefer your approach (functions that capture the effect of applying stimuli on simple data structures).

I don't think it is as clear or as cut-and-dried as either of you are making it out to be.

A certain amount of discretion and restraint is required to prevent an OO architecture that is unreadable and tangled spaghetti, as well as a certain amount of discretion and restraint being required to prevent a functional architecture devolving into an equally unreadable mess.

If the primary goal is neither readability nor maintainability, then all of this arguing is moot.

There are no comments on this comment yet.