Victoria Lauri’s Post

We call both #JavaScript and #Ruby object-oriented, but they don’t really behave the same way. So what does “object-oriented” really mean? I recently started exploring Ruby, and this question suddenly feels less straightforward than I thought. In Ruby, everything is an object. Numbers, strings, and even nil. You’re always calling methods on something. In JavaScript, things can behave like objects, but not everything actually is. Primitives get wrapped when needed, null and undefined break the pattern, and different paradigms coexist. Same #OOP label, but quite different mental models. I’m starting to feel like the debate isn’t really about whether a language is “true OOP”, but about how much structure a language enforces vs how much it leaves up to the developer. Curious how others think about this, especially if you’ve worked across both. #SoftwareEngineering #LearnInPublic #FullStack #JuniorDev

  • text

To view or add a comment, sign in

Explore content categories