3 ms·
Objects aren't an ideal tool for modeling the world, and immutable objects and variables even less so. Objects and classes often come in handy for modeling some
by c_crank 3y ago
Objects aren't an ideal tool for modeling the world, and immutable objects and variables even less so. Objects and classes often come in handy for modeling something obviously fake, like a video game.
I've never thought, 'Gee, this game would be so much easier to program if I had to copy every data structure when I wanted to update it, and have programs be impossible to step through because I'd rather write a pure program with no good debugging tools just to sound cool.'
- jononomo 3y agoIt is interesting that you think functional programming is somehow more difficult or less powerful than object-oriented programming. I have found the opposite to be the case. Functional programming makes it easier for me to debug programs, frankly. That's why I like it. Once I got the hang of it it honestly felt like a huge weight off my shoulders.