• collapse_already@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    21 days ago

    No, no, one of the main benefits of OOP is information hiding. If your code is too greppable, developers can circumvent the information hiding.

    (Sarcasm)

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    21 days ago

    Very good points. A codebase that gets this VERY wrong is Gitlab. I think it might be a dumb characteristic of Ruby programs, but they generate identifiers all over the place. I once had to literally give up following some code because I could not find what it was calling anywhere. Insanity.

    Another point: don’t use - in names. Eventually you’ll have to write them down in a programming language, at which point you have to change the name. CSS made this mistake. foo-bar in CSS maps to fooBar in Javascript. Rust also made this mistake with crate names. A crate called foo-bar magically becomes foo_bar in Rust code.