Nov 29, 2022
Well, if you want to take it to an extreme I'd advise you to look into how I code Stores in my recent articles. it is extreme as I dont rely on classes, but function-tuples to manage the state. it has just very few lines but is as easily handled, as a class object. it does the bare minimum — but it illustrates that even more sophisticated versions dont need to be complex.
I believe that all problems in coding stem from on single factor: complexity — and we only can fight that with simplicity.