I find most criticisms of OO to be disingenuous - this one in particular is a very simple situation that you reduce the line count by like 5 lines. I’m more interested in seeing cases where you can take a complex state management system and convert it to a functional paradigm that improves the readability and comprehension. Like rewrite the discord.py client using a bag of functions technique and tell me it’s just as readable.
I find most criticisms of OO to be disingenuous - this one in particular is a very simple situation that you reduce the line count by like 5 lines. I’m more interested in seeing cases where you can take a complex state management system and convert it to a functional paradigm that improves the readability and comprehension. Like rewrite the discord.py client using a bag of functions technique and tell me it’s just as readable.