There are so many definitions of OOP out there, varying between different books, documentation and articles.

What really defines OOP?

  • HyonoKo@lemmy.ml
    link
    fedilink
    arrow-up
    47
    arrow-down
    2
    ·
    10 months ago

    Instead of making one big mess, you make multiple smaller messes and stuff them into objects.

    • MajorHavoc
      link
      fedilink
      arrow-up
      25
      arrow-down
      6
      ·
      edit-2
      10 months ago

      Yep. State is bad, so in OOP we take the huge ugly ball of unnecessary state, and we spread it across the program ecosystem as a thin ugly brittle venier of unnecessary state.

      • Hexarei
        link
        fedilink
        arrow-up
        14
        ·
        10 months ago

        Let’s just not talk about the part where the computer is inherently stateful though 😉