A third alternative (to OOP and FP) is ECS (Entity Component System), which turns composition into a 1st class citizen, and organizes behavior around the attributes of an object, rather than what an object "is".
--
I write lots of code.
Love podcasts or audiobooks? Learn on the go with our new app.