Skip to content

Naming Conventions and private variables #145

@joseph-jja

Description

@joseph-jja

I disagree with the idea that naming a private variable should begin with _. If you really need a private variable why not create an object and wrap your variable with setters and getters. If you use _ and someone thinks they need that variable or method they will use it. I have seen it before lots of times. Conventions work when you are doing ruby and rails type implementation and the conventions are required for things to work right, but when conventions are guidlines there is no stopping people from behaving badly. Also this conflicts with the _this, which someone could easily do this._this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions