Skip to content

Recommend to use similar relational operator in entire project. #31

@sbimochan

Description

@sbimochan

Relational Operators usage recommendation

I recommend using either >= / <= or > / < relationals operators on entire project.

Scenario:

In front end, there are logics like >=256 && <=512 and in other components/files or in backend there is >255 && <511.

Benefits:

No high stress to the human mind. Searching for those ints in entire project will result accurate.

My personal preference is to use >= or <= sign. e.g foo.length >= 1, foo >= 256 && bar <= 512.

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