Skip to content

Remove magic strings #59

@bsmmoon

Description

@bsmmoon

Currently there are far too many magic strings, and the system is prone to silent failure from typo, change, etc.

One suggestion is to make constant package files. For example, a library that needs Form related constants will need to have use FormConstants and use getter like getDefaultHeader() to use a constant. This way, changing the value will not break anything, and some mistakes like typo will be caught by the compiler.

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