Log in Sign up
2 Matching Annotations
  1. Jun 2023
  2. stackoverflow.com stackoverflow.com
    Private vs Protected - Visibility Good-Practice Concern
    2
    1. TylerRick 19 Jun 2023
      in Public
      I'm not saying never mark methods private. I'm saying the better rule of thumb is to "make methods protected unless there's a good reason not to".
      reasonable defaults rule of thumb member visibility: make it protected unless you have a good reason not to can't predict the future you can't know for sure never say never
    2. TylerRick 19 Jun 2023
      in Public
      Marking methods protected by default is a mitigation for one of the major issues in modern SW development: failure of imagination.
      what does this actually mean? please elaborate failure of imagination software development extensibility member visibility: make it protected unless you have a good reason not to
    Visit annotations in context

    Tags

    • rule of thumb
    • can't predict the future
    • reasonable defaults
    • failure of imagination
    • member visibility: make it protected unless you have a good reason not to
    • you can't know for sure
    • never say never
    • what does this actually mean?
    • extensibility
    • software development
    • please elaborate

    Annotators

    • TylerRick

    URL

    stackoverflow.com/questions/8353272/private-vs-protected-visibility-good-practice-concern
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy