pull down to refresh
87 sats \ 1 reply \ @chaoticalHeavy 30 Nov 2024 \ on: Object oriented programming rant devs
I think state belongs in a database. This allows you to base your logic on pure functions. Anything that is mutable can be managed by the db.
That's the tradeoff when not using OOP usually, a global data store, but OOP programs usually end up with one anyway. And, the benefit of most data stores is they feature a declarative access language, so IMO it's not much of a tradeoff.
reply