2 ms·
I'm an infrequent programmer, of the Turbo Pascal and descendants kind. The OOP I learned was only used to deal with GUI elements, or perhaps databases, but not
by mikewarot 2y ago
I'm an infrequent programmer, of the Turbo Pascal and descendants kind. The OOP I learned was only used to deal with GUI elements, or perhaps databases, but not for each and every line of code ever. I've always felt this was the appropriate use for it. Like ingredients in food, you need balance.
The push towards "functional" programming mystified me until learning that it's really, really helpful when you've got threads running on multiple cores, which "rewrites the software laws of physics", according to Kevlin Henney. Once I got that, Rust made sense... I hate it, but at least it makes sense.
I get the reasons for preferring immutable data, avoiding globals, etc.. but sometimes you just need the global variable, and have to jump through the hoops to support it.
Note that you could take the article, and replace "Object oriented" with "Functional Programming", and it reads about the same, and it'll be relevant in a decade.