3 ms·
OO just helps me understand the code (assuming that it is well-written, which isn't always the case). I don't understand the hate. I have always imagined that
by ap22213 12y ago
OO just helps me understand the code (assuming that it is well-written, which isn't always the case). I don't understand the hate.
I have always imagined that it was just a natural progression from procedural code:
1. Put a bunch of functions in a file.
2. Ok, now we have too many functions to keep track of, so let's put functions in separate files.
3. That worked for a while, but now too much repeated code, let's put some functions into modules.
4. Now, we have all of these variables to keep track of, so let's hide some of them to lessen any confusion.
5. Etc. Etc. Etc.
6. Wow, now we have a complex language with all sorts of patterns that perhaps confuses things more than intended.
That's why I like languages that are lean and have pragmatic features. OO, functions, whatever works to make my life easier.