News for hackers. Stuff that matters.
Re:The controller pattern is awful (and other OO heresy) by willio58 on Monday July 10, 2023 @12:43PM (#36668944)
I remember learning and using OOP in computer science classes and then going to apply it to a game I was working on. I object-ified everything! It felt like it all just made sense.

Then I ran the game. And it crawled at 15fps and I wondered why.

Of course I was new to programming so I can’t just blame OOP but it was my first lesson in how OOP isn’t a magic wand by any means. And later I got into more functional programming and today I find myself writing function-based components in react for a living and loving it. It’s funny how things go like that.

There are no comments on this comment yet.