Comment

Comment by rolenthedeep

It took me an embarrassing amount of time to fully grok what object oriented programming really means. It's one thing to have someone tell you what an object is, but it's another thing entirely to build a fully object oriented system.

I remember what made it click: I was designing an animation system, which had a bunch of different interdependent moving parts. Once I started treating each part like an object and letting it manage its own state it all just clicked. I started with this massively complex functional-like system that managed four or five different motions, but once it was broken into objects most of the code just fell off and it became a nice clean system.

I was super proud of it at the time, but it's pretty bad by my current standards.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton