4 ms·
I may be confused about the thrust of this article, but I don't like polymorphism. Independent of my appreciation for FP, I hate when I have to do a bit of code
by OtterCoder 8y ago
I may be confused about the thrust of this article, but I don't like polymorphism. Independent of my appreciation for FP, I hate when I have to do a bit of code in Java or similar languages, because instead of manipulating dumb data, I have to learn 10,000 micro-APIs.
I would much rather have a short list of simple, powerful functions, that operate over sequences. Array Oriented, if you will, or perhaps even Map Oriented. If you need to construct a full name from an object, whether it's a user or a client, or a character, or a cat or whatever, that can be passed quickly over my lists to return the relevant strings.
This function-and-array style of programming forces you to standardize your data formats and types across your program, and is easily tested. While the OO approach allows you to indulge a thousand different quirks of naming and style and logic, that will take far longer to test, and will likely still have quirks and inconsistencies.